-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.less
147 lines (134 loc) · 1.98 KB
/
styles.less
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Alegreya Sans SC', sans-serif;
font-size: 1.2em;
overflow-x: hidden;
color: rgba(0, 0, 0, 0.54);
/*overflow-y: hidden;*/
}
a {
text-decoration: none;
color: rgba(0, 0, 0, 0.20);
cursor: pointer;
&.active {
color: rgba(0, 0, 0, 0.54);
}
}
.flex {
display: flex;
}
.center {
align-self: center;
}
.stretch {
align-self: stretch;
}
.col {
flex-direction: column;
}
header {
position: fixed;
height: 20vh;
/*display: flex;*/
top: 0;
right: 0;
left: 0;
align-items: stretch;
align-content: stretch;
justify-content: space-between;
background-color: #fff;
padding-left: 1em;
padding-right: 1em;
.format {
font-size: 0.8em;
}
h1 {
margin: 0.5em 0;
}
li {
padding: 0.5em;
}
}
.palettes {
display: flex;
flex-direction: column;
h1 {
height: 20vh;
display: flex;
align-self: center;
justify-content: center;
align-items: center;
text-transform: uppercase;
}
}
.palette {
display: flex;
flex-wrap: wrap;
height: 80vh;
align-items: stretch;
font-family: 'Alegreya Sans SC', sans-serif;
.color {
display: flex;
padding: 1em;
justify-content: space-between;
.rgb {
font-size: 0.7em;
}
transition: transform 0.1s ease-out;
}
.clicked {
transform: scale(1.05);
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}
.black-text {
color: #333;
}
.white-text {
color: #fff;
}
}
.touch .rgb, .notouch .color:hover .rgb {
visibility: visible;
opacity: 1;
}
.rgb {
display: flex;
align-self: flex-end;
visibility: hidden;
opacity: 0;
transition: opacity 0.1s ease-out;
}
@media screen and (max-width: 800px) {
body {
overflow-y: auto;
}
header {
flex-direction: column;
position: static;
height: auto;
}
.menu {
flex-wrap: wrap;
}
.about {
padding-top: 1em;
}
.palettes h1 {
height: 30vh;
a::after{
content: " \25b2";
}
}
.palette {
height: 70vh;
flex-direction: column;
height: auto;
}
.color {
width: 100% !important;
}
}