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 {
108108 font-size : em (30 );
109109}
110110
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 );
121116 }
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+ }
129131}
130132
133+
134+
Original file line number Diff line number Diff line change @@ -79,11 +79,6 @@ img.rounded,
7979 font-weight : 600 ;
8080 }
8181
82- .quad_image {
83- display :grid ;
84- grid-template-columns : 25% 25% 25% 25% ;
85- }
86-
8782.card-header {
8883 overflow : hidden ;
8984 text-overflow : ellipsis ;
@@ -121,12 +116,28 @@ a.btn {
121116 margin-bottom : 1em ;
122117}
123118
124- @media screen and (max-width : 600 px ) {
119+ @media screen and (max-width : 570 px ) {
125120 .quad_image {
126121 display : block ;
127122 }
128123}
129124
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+
130141@import " typography" ;
131142@import " nav" ;
132143@import " slider" ;
You can’t perform that action at this time.
0 commit comments