-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
88 lines (75 loc) · 1.53 KB
/
style.scss
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
body {
margin: 2rem auto;
font-family: Arial, sans-serif;
.palettes-collection {
width: 70%;
margin: 0 auto;
h1 {
margin-bottom: 2rem;
margin-left: 0.25rem;
font-weight: 600;
}
}
.palette {
position: relative;
display: inline-block;
width: calc(16% - 0.25rem);
margin: 0.5rem;
padding: 1.5rem 1rem;
border-radius: 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
text-align: center;
font-family: Arial, sans-serif;
transition: transform 0.2s ease-in-out;
&:hover {
transform: translateY(-5px);
}
div {
color: var(--text-color);
}
}
.footer {
text-align: center;
margin: 2rem auto;
}
.hex-values-line {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 10px;
display: flex;
align-items: flex-end;
justify-content: center;
.hex-color {
height: 100%;
width: 50%;
cursor: pointer;
}
.primary-color {
background-color: var(--primary-color);
}
.secondary-color {
background-color: var(--secondary-color);
}
}
.copied-alert {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: white;
padding: 10px 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
.palettes-collection {
width: 100%;
.palette {
width: calc(31% - 0.5rem); /* For 2 palettes per row */
}
}
}
}