-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
128 lines (109 loc) · 2.27 KB
/
style.css
File metadata and controls
128 lines (109 loc) · 2.27 KB
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
.taxonomy-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust the minmax values as needed */
gap: 20px; /* Adjust the gap between cards as needed */
grid-auto-rows: 1fr; /*make all grid children the same height*/
}
.taxonomy-card {
position:relative;
border-radius: 0.75rem;
overflow:hidden;
box-shadow: 4px 4px 8px color(21);
}
/*content wrapper to space element on card*/
.taxonomy-card__content-wrap{
padding: 16% 8%;
gap:2em;
display:flex;
height:100%;
flex-direction: column;
align-items:center;
justify-content:end;
}
/*remove list styles*/
.taxonomy-card ul{
list-style-type:none;
padding: 0;
gap:3%;
font-family: Raleway;
font-weight: 600;
text-align:center;
}
/*link styles for the treatment lists*/
.taxonomy-card li a {
position:relative;
z-index:5;
opacity:0;
color:color(5);
text-decoration:none;
text-transform: capitalize;
transition: .5s ease-out;
}
/*chang list element color on hover*/
.taxonomy-card li a:hover {
color: color(22);
}
.taxonomy-card li a:after {
content: '';
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
background-color: color(22);
transform-origin: center;
transition: 0.4s ease-out;
}
.taxonomy-card li a:hover:after {
transform: scaleX(1);
transform-origin: center;
}
/*display card elements on hovering the card*/
.taxonomy-card:hover li a {
opacity:1;
}
/*make list elements clickable over image overlay*/
.taxonomy-card li a:before {
position:absolute;
content:'';
inset:0;
z-index:5;
}
.taxonomy-card__title {
z-index:3;
color: color(5);
font-family: Raleway;
font-weight: 700;
text-transform:uppercase;
text-align:center;
font-size:var(--fs-crd-l);
text-shadow: 1px 1px 4px color(26);
}
.taxonomy-card__title a:before {
position:absolute;
content:'';
inset:0;
z-index:3
}
/*background images styles*/
.taxonomy-card__img{
position:absolute;
z-index:0;
object-fit: cover;
inset:0;
height:100%;
width:100%;
}
/*Overlay effect*/
.taxonomy-card__overlay {
position:absolute;
content:'';
inset:0;
z-index:2;
background:color(18);
transition: 0.4s ease-out;
}
.taxonomy-card:hover .taxonomy-card__overlay {
background:color(25);
}