-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
127 lines (106 loc) · 2.3 KB
/
index.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
/* To remove the extra padding in the input:color field */
input[type="color"]::-webkit-color-swatch-wrapper {
padding: 0;
}
* {
box-sizing: border-box;
}
html, body {
max-width: 600px;
margin: 0 auto;
padding: 0;
font-family: 'Roboto Mono', monospace;
/* background-color: #251B37; */
}
/*
The reason why I set the background here, seperate than the html
because, I want to each time I pick a color, the background change to it
but unfortunately html was prevent me on this
*/
body {
background-color: #251B37;
}
/* ======================================================
The header to select wchich color you wanna generate
========================================================= */
header.container {
margin: 1rem ;
padding: .5rem 0;
display: flex;
justify-content: space-between;
}
.color-input,
.mode-list,
.btn-get-sheme {
color: white;
background-color: inherit;
border-color: #EDEDED;
height: 35px;
}
.color-input {
border: 3px solid #EDEDED;
margin: 0;
padding: 0;
width: 55px;
}
.mode-list {
padding: 5px;
width: 270px;
background-color: inherit;
border-color: #EAEAEA;
border-radius: 5px;
font-size: .84rem;
}
.mode-list option {
background-color: #251B37;
}
.btn-get-sheme {
width: 120px;
border: none;
background-color: #3C4048;
border-radius: 5px;
font-size: .85rem;
transition: all .5s;
}
.btn-get-sheme:hover {
background: orange;
color: whitesmoke;
font-size: .86rem;
cursor: pointer;
}
/* ===================================
The Results gonna renderd from JS
================================ ===== */
.results {
display: flex;
}
.output-color {
width: 100%;
height: 60vh;
display: flex;
justify-content: center;
cursor: pointer;
}
.output-hex {
align-self: flex-end;
margin-bottom: -31px;
color: #EAEAEA;
font-size: .9rem;
cursor: pointer;
}
/* ==============================
Alert hex code when copyied
================================= */
.hex-alert {
text-align: center;
color: white;
background-color: gray;
margin-top: 0;
padding: .5rem;
border-radius: 4px;
animation: hex-alert 2s;
}
@keyframes hex-alert {
0% {opacity: 1;}
100% {opacity: 0;}
}