File tree Expand file tree Collapse file tree 2 files changed +38
-23
lines changed Expand file tree Collapse file tree 2 files changed +38
-23
lines changed Original file line number Diff line number Diff line change @@ -108,23 +108,27 @@ article.card {
108
108
font-size : em (30 );
109
109
}
110
110
111
- .card a {
112
- & :hover {
113
- .card-text {
114
- background-color : rgba ($black , .86 );
115
- }
116
- .card-meta {
117
- & :before {
118
- transform : translate (0 ,0 );
119
- opacity : 1 ;
120
- @include transition (all 200ms $easeOutQuad );
111
+ @media screen and (min-width : 800px ) {
112
+ .card a {
113
+ & :hover {
114
+ .card-text {
115
+ background-color : rgba ($black , .60 );
121
116
}
122
- }
123
-
124
- .card-image {
125
- transform : translate (20px ,0 );
126
- @include transition (all 400ms $easeOutQuad );
127
- }
128
- }
117
+ .card-meta {
118
+ & :before {
119
+ transform : translate (0 ,0 );
120
+ opacity : 1 ;
121
+ @include transition (all 200ms $easeOutQuad );
122
+ }
123
+ }
124
+
125
+ .card-image {
126
+ transform : translate (20px ,0 );
127
+ @include transition (all 400ms $easeOutQuad );
128
+ }
129
+ }
130
+ }
129
131
}
130
132
133
+
134
+
Original file line number Diff line number Diff line change @@ -79,11 +79,6 @@ img.rounded,
79
79
font-weight : 600 ;
80
80
}
81
81
82
- .quad_image {
83
- display :grid ;
84
- grid-template-columns : 25% 25% 25% 25% ;
85
- }
86
-
87
82
.card-header {
88
83
overflow : hidden ;
89
84
text-overflow : ellipsis ;
@@ -121,12 +116,28 @@ a.btn {
121
116
margin-bottom : 1em ;
122
117
}
123
118
124
- @media screen and (max-width : 600 px ) {
119
+ @media screen and (max-width : 570 px ) {
125
120
.quad_image {
126
121
display : block ;
127
122
}
128
123
}
129
124
125
+ @media screen and (min-width : 571px ) {
126
+ .quad_image {
127
+ display :grid ;
128
+ grid-template-columns : 50% 50% ;
129
+ }
130
+ }
131
+
132
+ @media screen and (min-width : 1100px ) {
133
+ .quad_image {
134
+ display :grid ;
135
+ grid-template-columns : 25% 25% 25% 25% ;
136
+ }
137
+ }
138
+
139
+
140
+
130
141
@import " typography" ;
131
142
@import " nav" ;
132
143
@import " slider" ;
You can’t perform that action at this time.
0 commit comments