-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.scss
83 lines (70 loc) · 1.77 KB
/
styles.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
$main-color: rgb(35, 35, 163);
span {
display: flex;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 18px;
margin: 0 auto;
max-width: 1000px;
padding: 30px 6px;
}
.options {
display: grid;
gap: 1.5rem 0;
margin: 40px auto;
max-width: 1000px;
width: 90vw;
@media (min-width: 481px) {
gap: 1.5rem;
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 769px) {
grid-template-columns: repeat(3, 1fr);
//max-width: 800px;
width: 60vw;
}
.options__element {
border: 1px solid $main-color;
border-radius: 10px;
color: rgb(30, 30, 151);
display: grid;
font-family: Verdana, Geneva, Tahoma, sans-serif;
overflow: hidden;
text-align: center;
text-decoration: none;
transition: 0.5s;
.options__element-image {
display: flex;
align-items: center;
border-bottom: 1px solid $main-color;
height: 130px;
overflow: hidden;
position: relative;
width: 100%;
&::before {
content: '';
background-color: rgba(0, 0, 0, 0.3);
display: block;
height: 100%;
width: 100%;
z-index: 1;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
img {
min-width: 100%;
min-height: 100%;
object-fit: cover;
}
}
&:hover {
background-color: $main-color;
color: #fff;
}
h4 {
margin: 1rem;
}
}
}