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: Restructure card markup and fixes Created June 13, 2017, 4:44 p.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: 700px) {
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 padding: 4px 0; 1008 padding: 4px 0;
1003 border-bottom: 1px dotted #8CC63E; } 1009 border-bottom: 1px dotted #8CC63E; }
1004 1010
1005 .card.list a { 1011 .card.list a {
1006 text-decoration: none; 1012 text-decoration: none;
1007 color: #161616; } 1013 color: #161616; }
1008 1014
1009 .card.list a:hover, .card.list a:active { 1015 .card.list a:hover, .card.list a:active {
1010 color: #8CC63E; } 1016 color: #8CC63E; }
1011 1017
1018 @supports (display: grid) {
1019 .group .card {
1020 width: 100%;
1021 grid-template-rows: auto 1fr auto; }
1022 @media all {
1023 .group .card .card-summary {
1024 height: auto; } }
1025 .card-footer .m-t-md {
1026 margin-top: 0 !important; } }
1027
1012 .items { 1028 .items {
1013 counter-reset: group; } 1029 counter-reset: group; }
1014 1030
1015 .item { 1031 .item {
1016 position: relative; 1032 position: relative;
1017 padding-left: 1.5em; } 1033 padding-left: 1.5em; }
1018 1034
1019 .items .item::before { 1035 .items .item::before {
1020 display: block; 1036 display: block;
1021 position: absolute; 1037 position: absolute;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 margin-left: 0; } } 1185 margin-left: 0; } }
1170 1186
1171 @media (max-width: 544px) { 1187 @media (max-width: 544px) {
1172 .group > div { 1188 .group > div {
1173 width: 100%; } 1189 width: 100%; }
1174 .group > div:nth-child(4), 1190 .group > div:nth-child(4),
1175 .group > div:nth-child(3), 1191 .group > div:nth-child(3),
1176 .group > div:nth-child(5) { 1192 .group > div:nth-child(5) {
1177 margin-left: 0; } } 1193 margin-left: 0; } }
1178 1194
1195 @supports (display: grid) {
1196 .group {
1197 display: grid;
1198 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
1199 .group .card {
1200 display: inline-grid; }
1201 @media (min-width: 992px) {
1202 .group-4 {
1203 grid-template-columns: repeat(auto-fit, minmax(25%, 1fr)); } }
1204 @media (min-width: 992px) {
1205 .group-5 {
1206 grid-template-columns: repeat(auto-fit, minmax(20%, 1fr)); } }
1207 @media all {
1208 .group-5 > div:nth-child(4) {
1209 margin-left: 0; } } }
1210
1179 .masthead-img > img { 1211 .masthead-img > img {
1180 width: 100%; 1212 width: 100%;
1181 margin: 32px 0; } 1213 margin: 32px 0; }
1182 1214
1183 @media (max-width: 767px) { 1215 @media (max-width: 767px) {
1184 .masthead.bg-info { 1216 .masthead.bg-info {
1185 background-color: #FFFFFF; } } 1217 background-color: #FFFFFF; } }
1186 1218
1187 @media (min-width: 768px) { 1219 @media (min-width: 768px) {
1188 .masthead-body > div { 1220 .masthead-body > div {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 height: 0; 1582 height: 0;
1551 content: " "; 1583 content: " ";
1552 border-top: 2px solid #FFFFFF; } 1584 border-top: 2px solid #FFFFFF; }
1553 #footer a { 1585 #footer a {
1554 color: #FFFFFF; } 1586 color: #FFFFFF; }
1555 #footer a:hover { 1587 #footer a:hover {
1556 text-decoration: underline; 1588 text-decoration: underline;
1557 color: #8CC63E !important; } 1589 color: #8CC63E !important; }
1558 #footer p { 1590 #footer p {
1559 color: #E1E1E1; } 1591 color: #E1E1E1; }
OLDNEW

Powered by Google App Engine
This is Rietveld