Skip to content

Commit d7810a9

Browse files
committed
positioning
1 parent ae45979 commit d7810a9

1 file changed

Lines changed: 24 additions & 28 deletions

File tree

styles/Card.module.scss

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -97,42 +97,38 @@
9797
height: 25rem;
9898
// position: absolute;
9999
top: -150%;
100-
z-index: 11;
100+
z-index: 12;
101101
}
102-
}
103-
104-
// @include tablet {
105-
// height: 42rem;
106-
// }
107102

108-
.card__image {
109-
max-width: 100%;
110-
// position: relative;
111-
height: 5rem;
112-
margin: 3rem 0;
103+
.card__image {
104+
max-width: 100%;
105+
position: relative;
106+
height: 5rem;
107+
margin: 3rem 0;
113108

114-
.img {
115-
margin: 0;
116-
// position: absolute;
117-
left: -60% !important;
118-
object-fit: contain !important;
119-
}
120-
121-
@include desktop {
122109
.img {
123-
left: -75% !important;
110+
margin: 0;
111+
position: absolute;
112+
left: -60% !important;
113+
object-fit: contain !important;
124114
}
125-
}
126115

127-
@include small-mobile {
128-
.img {
129-
left: -45% !important;
116+
@include desktop {
117+
.img {
118+
left: -75% !important;
119+
}
130120
}
131-
}
132121

133-
@include tablet {
134-
.img {
135-
left: -65% !important;
122+
@include small-mobile {
123+
.img {
124+
left: -45% !important;
125+
}
126+
}
127+
128+
@include tablet {
129+
.img {
130+
left: -65% !important;
131+
}
136132
}
137133
}
138134
}

0 commit comments

Comments
 (0)