-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (106 loc) · 2.24 KB
/
style.css
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
126
127
*{
padding:0;
margin: 0;
box-sizing: border-box;
}
body{
min-height: 100vh;
min-height: 100dvh;
display: grid;
place-content: center;
background-color: var(--primary);
font-family: monospace;
transition: all .7s;
}
.color-container{
width: 250px;
height: 250px;
border-radius: 50px;
padding: 1em;
background: linear-gradient(225deg, #cacaca, #f0f0f0);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: .9em;
box-shadow: 0 1em 1.875em -0.625em rgba(70, 96, 187, 0.2);
}
.color-hex-container{
padding: 1em 0;
width: calc(100% - 1em);
height: 90px;
border-radius: calc(45px - 1em);
align-items: flex-end;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
letter-spacing: 5px;
font-size: 1.5rem;
cursor: pointer;
}
.generate-color-btn{
width: calc(100% - 1em);
height: 70px;
border-radius: calc(45px - 1em);
background-color: #e4e3e3;
padding: .6em 0;
border: none;
outline: none;
cursor: pointer;
letter-spacing: 5px;
font-size: 1rem;
font-weight:bold ;
}
.generate-color-btn:hover,.copy-icon:hover{
transform: scale(.90);
background-color: #aeaeae;
color: var(--primary);
}
.copy-icon:hover{
fill : var(--primary)
}
.generate-color-btn:focus,.copy-icon:focus{
outline: 3px solid var(--primary);
outline-offset: 2px;
}
.visually-hidden{
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.toast{
position: absolute;
justify-self: center;
top: 2em;
border-radius: calc(45px - 1em);
background-color: #e4e3e3;
color: black;
font-size: 1rem;
font-weight:bold ;
display: flex;
align-items: center;
justify-content: center;
gap:.9em;
padding: 1em 1em;
animation: fromTopToBottom .3s;
}
.hidden{
display: none;
}
@keyframes fromTopToBottom {
0% {
transform: translateY(-50%);
opacity: 0;
animation-timing-function: ease-in-out;
}
100% {
transform: translateY(0);
opacity: 1;
}
}