-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
125 lines (116 loc) · 2.24 KB
/
Copy pathstyle.css
File metadata and controls
125 lines (116 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.container {
text-align: center;
border: 2px solid gold;
border-radius: 10px;
background-color: black;
padding: 15px;
}
h1 {
margin-top: 50px;
text-transform: uppercase;
font-size: 24px;
color: gold;
font-family: "Courier New", Courier, monospace;
background-color: #000;
padding: 20px 20px;
border-radius: 5px;
border: 1px solid #ddd;
}
#hexColor {
color: #fefefe;
font-family: "Courier New", Courier, monospace;
}
#hexBtn {
padding: 10px;
text-transform: uppercase;
border: 2px solid #fefefe;
border-radius: 4px;
color: #fefefe;
background: rgba(0, 0, 0, 0.56);
cursor: pointer;
outline: none;
}
#hexBtn:hover {
background: rgb(0, 0, 0);
}
#copy-btn {
padding: 10px;
text-transform: uppercase;
border: 2px solid #fefefe;
border-radius: 4px;
color: #fefefe;
background: rgba(0, 0, 0, 0.56);
cursor: pointer;
outline: none;
}
#copy-btn:hover {
background: rgb(0, 0, 0);
}
.footer {
margin-top: 200px;
color: #fefefe;
font-size: 18px;
font-family: "Courier New", Courier, monospace;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
@keyframes rotate {
100% {
transform: rotate(1turn);
}
}
.container {
position: relative;
z-index: 0;
width: 500px;
height: 300px;
border-radius: 10px;
overflow: hidden;
padding: 2rem;
&::before {
content: "";
position: absolute;
z-index: -2;
left: -50%;
top: -50%;
width: 200%;
height: 200%;
background-color: #399953;
background-repeat: no-repeat;
background-size: 50% 50%, 50% 50%;
background-position: 0 0, 100% 0, 100% 100%, 0 100%;
background-image: linear-gradient(#399953, #399953),
linear-gradient(#fbb300, #fbb300), linear-gradient(#d53e33, #d53e33),
linear-gradient(#377af5, #377af5);
animation: rotate 4s linear infinite;
}
&::after {
content: "";
position: absolute;
z-index: -1;
left: 6px;
top: 6px;
width: calc(100% - 12px);
height: calc(100% - 12px);
background: white;
border-radius: 5px;
animation: opacityChange 3s infinite alternate;
}
}
@keyframes opacityChange {
50% {
opacity: 1;
}
100% {
opacity: 0.5;
}
}