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: Created June 1, 2017, 1:10 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 h1, .card article h2, .card article .center blockquote, .card .cen ter article blockquote, .center .card article blockquote, .card article h3, .car d article h4, .card article h5, .card article h6 .h1, .card h6 article .h1, h6 . card article .h1, .card article .h2, .card article .h3, .card article .h4, .card article .h5, .card article .h6, .card article .group.items .item::before, .grou p.items .card article .item::before {
949 height: auto; }
950 @media (min-width: 700px) {
951 .card article h1, .card article h2, .card article .center blockquote, .card .center article blockquote, .center .card article blockquote, .card article h3, .card article h4, .card article h5, .card article h6 .h1, .card h6 article .h1, h6 .card article .h1, .card article .h2, .card article .h3, .card article .h4, . card article .h5, .card article .h6, .card article .group.items .item::before, . group.items .card article .item::before {
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 .card {
1020 display: inline-grid; } }
1021
1012 .items { 1022 .items {
1013 counter-reset: group; } 1023 counter-reset: group; }
1014 1024
1015 .item { 1025 .item {
1016 position: relative; 1026 position: relative;
1017 padding-left: 1.5em; } 1027 padding-left: 1.5em; }
1018 1028
1019 .items .item::before { 1029 .items .item::before {
1020 display: block; 1030 display: block;
1021 position: absolute; 1031 position: absolute;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 margin-left: 0; } } 1179 margin-left: 0; } }
1170 1180
1171 @media (max-width: 544px) { 1181 @media (max-width: 544px) {
1172 .group > div { 1182 .group > div {
1173 width: 100%; } 1183 width: 100%; }
1174 .group > div:nth-child(4), 1184 .group > div:nth-child(4),
1175 .group > div:nth-child(3), 1185 .group > div:nth-child(3),
1176 .group > div:nth-child(5) { 1186 .group > div:nth-child(5) {
1177 margin-left: 0; } } 1187 margin-left: 0; } }
1178 1188
1189 @supports (display: grid) {
1190 .group {
1191 display: grid;
1192 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
1193 @media (min-width: 992px) {
1194 .group-4 {
1195 grid-template-columns: repeat(auto-fit, minmax(25%, 1fr)); } }
1196 .group-4 > div {
1197 width: 100%; } }
1198
1179 .masthead-img > img { 1199 .masthead-img > img {
1180 width: 100%; 1200 width: 100%;
1181 margin: 32px 0; } 1201 margin: 32px 0; }
1182 1202
1183 @media (max-width: 767px) { 1203 @media (max-width: 767px) {
1184 .masthead.bg-info { 1204 .masthead.bg-info {
1185 background-color: #FFFFFF; } } 1205 background-color: #FFFFFF; } }
1186 1206
1187 @media (min-width: 768px) { 1207 @media (min-width: 768px) {
1188 .masthead-body > div { 1208 .masthead-body > div {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 height: 0; 1570 height: 0;
1551 content: " "; 1571 content: " ";
1552 border-top: 2px solid #FFFFFF; } 1572 border-top: 2px solid #FFFFFF; }
1553 #footer a { 1573 #footer a {
1554 color: #FFFFFF; } 1574 color: #FFFFFF; }
1555 #footer a:hover { 1575 #footer a:hover {
1556 text-decoration: underline; 1576 text-decoration: underline;
1557 color: #8CC63E !important; } 1577 color: #8CC63E !important; }
1558 #footer p { 1578 #footer p {
1559 color: #E1E1E1; } 1579 color: #E1E1E1; }
OLDNEW

Powered by Google App Engine
This is Rietveld