Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/css/main.css

Issue 29453600: Issue 4961 - Fix card group field alignment on acceptableads.com (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Implement .cards class, Fix alignment inn group-5, Minor fixes Created June 21, 2017, 7:41 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 .m-a-na { 1 .m-a-na {
2 margin: 0 0 !important; } 2 margin: 0 0 !important; }
3 3
4 .m-t-na { 4 .m-t-na {
5 margin-top: 0 !important; } 5 margin-top: 0 !important; }
6 6
7 .m-b-na { 7 .m-b-na {
8 margin-bottom: 0 !important; } 8 margin-bottom: 0 !important; }
9 9
10 .m-x-na { 10 .m-x-na {
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 .card { 938 .card {
939 padding: 32px; 939 padding: 32px;
940 color: #161616; 940 color: #161616;
941 border: 1px solid #161616; 941 border: 1px solid #161616;
942 background-color: #FFFFFF; } 942 background-color: #FFFFFF; }
943 943
944 .card h1, .card h2, .card .center blockquote, .center .card blockquote, .card h3 , .card .group.items .item::before, .group.items .card .item::before, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .card .h4, .card .h5 , .card .h6 { 944 .card h1, .card h2, .card .center blockquote, .center .card blockquote, .card h3 , .card .group.items .item::before, .group.items .card .item::before, .card h4, .card h5, .card h6 .h1, h6 .card .h1, .card .h2, .card .h3, .card .h4, .card .h5 , .card .h6 {
945 height: 48px; 945 height: 48px;
946 margin: 16px 0 16px 0; } 946 margin: 16px 0 16px 0; }
947 947
948 .card article .card-heading {
949 height: auto; }
950 @media (min-width: 768px) {
951 .card article .card-heading {
952 height: 120px; } }
953
948 .card-icon { 954 .card-icon {
949 margin: 16px 0; } 955 margin: 16px 0; }
950 956
951 .center .card-icon { 957 .center .card-icon {
952 margin: 48px 0 32px 0; } 958 margin: 48px 0 32px 0; }
953 959
954 img.card-icon, 960 img.card-icon,
955 .card-icon img { 961 .card-icon img {
956 height: 48px; } 962 height: 48px; }
957 963
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 margin-left: 0; } } 1175 margin-left: 0; } }
1170 1176
1171 @media (max-width: 544px) { 1177 @media (max-width: 544px) {
1172 .group > div { 1178 .group > div {
1173 width: 100%; } 1179 width: 100%; }
1174 .group > div:nth-child(4), 1180 .group > div:nth-child(4),
1175 .group > div:nth-child(3), 1181 .group > div:nth-child(3),
1176 .group > div:nth-child(5) { 1182 .group > div:nth-child(5) {
1177 margin-left: 0; } } 1183 margin-left: 0; } }
1178 1184
1185 @supports (display: grid) {
1186 .group.cards {
1187 display: grid;
1188 grid-template-columns: repeat(1, 1fr); }
1189 @media (min-width: 350px) {
1190 .group.cards {
1191 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); } }
1192 .group.cards .card {
1193 display: inline-grid;
1194 width: 100%;
1195 grid-template-rows: auto 1fr auto; }
1196 @media all {
1197 .group.cards .card-summary {
1198 height: auto; } }
1199 @media (min-width: 992px) {
1200 .group-4.cards {
1201 grid-template-columns: repeat(auto-fit, minmax(25%, 1fr)); } }
1202 @media (min-width: 768px) {
1203 .group-5.cards {
1204 grid-template-columns: repeat(auto-fit, minmax(33.3%, 1fr)); } }
1205 @media (min-width: 992px) {
1206 .group-5.cards {
1207 grid-template-columns: repeat(auto-fit, minmax(20%, 1fr)); } }
1208 @media all {
1209 .group-5.cards > div:nth-child(4),
1210 .group-5.cards > div:nth-child(5) {
1211 margin-left: 0; } }
1212 @media (min-width: 768px) and (max-width: 992px) {
1213 .group-5.cards > div:nth-child(4) {
1214 margin-left: 50%; } }
1215 @media (min-width: 700px) and (max-width: 992px) {
1216 .group-5.cards > div:nth-child(5) {
1217 margin-left: 50%; } } }
1218
1179 .masthead-img > img { 1219 .masthead-img > img {
1180 width: 100%; 1220 width: 100%;
1181 margin: 32px 0; } 1221 margin: 32px 0; }
1182 1222
1183 @media (max-width: 767px) { 1223 @media (max-width: 767px) {
1184 .masthead.bg-info { 1224 .masthead.bg-info {
1185 background-color: #FFFFFF; } } 1225 background-color: #FFFFFF; } }
1186 1226
1187 @media (min-width: 768px) { 1227 @media (min-width: 768px) {
1188 .masthead-body > div { 1228 .masthead-body > div {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 height: 0; 1590 height: 0;
1551 content: " "; 1591 content: " ";
1552 border-top: 2px solid #FFFFFF; } 1592 border-top: 2px solid #FFFFFF; }
1553 #footer a { 1593 #footer a {
1554 color: #FFFFFF; } 1594 color: #FFFFFF; }
1555 #footer a:hover { 1595 #footer a:hover {
1556 text-decoration: underline; 1596 text-decoration: underline;
1557 color: #8CC63E !important; } 1597 color: #8CC63E !important; }
1558 #footer p { 1598 #footer p {
1559 color: #E1E1E1; } 1599 color: #E1E1E1; }
OLDNEW

Powered by Google App Engine
This is Rietveld