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: Rebase Created July 5, 2017, 9:19 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
« no previous file with comments | « pages/tool-certification/index.md ('k') | static/img/png/blog/aac-structure-detailed.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 html[dir="ltr"] .items .item::before { 1034 html[dir="ltr"] .items .item::before {
1029 left: 0; } 1035 left: 0; }
1030 1036
1031 html[dir="rtl"] .items .item::before { 1037 html[dir="rtl"] .items .item::before {
1032 right: 0; } 1038 right: 0; }
1033 1039
1034 .group-container { 1040 .group-container {
1035 width: 100%; 1041 width: 100%;
1036 max-width: 1140px; 1042 max-width: 1140px;
1037 margin: 0 auto; 1043 margin: 0 auto;
1038 padding: 32px 0; } 1044 padding: 96px 0; }
1039 1045
1040 .group-container > h1, .group-container > h2, .center .group-container > blockqu ote, .group-container > h3, .group.items .group-container > .item::before, .grou p-container > h4, .group-container > h5, h6 .group-container > .h1, .group-conta iner > .h2, .group-container > .h3, .group-container > .h4, .group-container > . h5, .group-container > .h6, 1046 .group-container > h1, .group-container > h2, .center .group-container > blockqu ote, .group-container > h3, .group.items .group-container > .item::before, .grou p-container > h4, .group-container > h5, h6 .group-container > .h1, .group-conta iner > .h2, .group-container > .h3, .group-container > .h4, .group-container > . h5, .group-container > .h6,
1041 .group-container > p { 1047 .group-container > p {
1042 margin: 32px auto; 1048 margin: 96px auto;
1043 padding: 0 16px; } 1049 padding: 0 16px; }
1044 1050
1045 .group { 1051 .group {
1046 display: table; 1052 display: table;
1047 width: 100%; 1053 width: 100%;
1048 table-layout: fixed; } 1054 table-layout: fixed; }
1049 1055
1050 .group-container .group { 1056 .group-container .group {
1051 margin-bottom: 0; } 1057 margin-bottom: 0; }
1052 1058
(...skipping 116 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 #navbar img { 1262 #navbar img {
1223 height: 16px; 1263 height: 16px;
1224 margin: 0; } 1264 margin: 0; }
1225 1265
1226 .js #navbar { 1266 .js #navbar {
1227 position: fixed; 1267 position: fixed;
1228 z-index: 1; 1268 z-index: 1;
1229 top: 0; 1269 top: 0;
1230 left: 0; } 1270 left: 0; }
1231 1271
1232 .site-title {
1233 margin: 0;
1234 font-size: 17px;
1235 line-height: 64px;
1236 word-spacing: -2px; }
1237
1238 .site-title a {
1239 color: #161616;
1240 text-decoration: none;
1241 font-weight: 300; }
1242
1243 .site-title a strong {
1244 font-weight: 400; }
1245
1246 @media (min-width: 1200px) { 1272 @media (min-width: 1200px) {
1247 html[dir="rtl"] .site-title { 1273 html[dir="rtl"] #navbar-logo {
1248 margin-right: 208px; } 1274 margin-right: 208px; }
1249 html[dir="ltr"] .site-title { 1275 html[dir="ltr"] #navbar-logo {
1250 margin-left: 208px; } } 1276 margin-left: 208px; } }
1251 1277
1252 @media (max-width: 1199px) { 1278 @media (max-width: 1199px) {
1253 .js #navbar { 1279 .js #navbar {
1254 display: none; } } 1280 display: none; } }
1255 1281
1256 #sidebar { 1282 #sidebar {
1257 text-transform: uppercase; 1283 text-transform: uppercase;
1258 color: #FFFFFF; 1284 color: #FFFFFF;
1259 background-color: #161616; 1285 background-color: #161616;
1260 font-size: 16px; 1286 font-size: 16px;
1261 font-weight: 400; 1287 font-weight: 400;
1262 line-height: 100%; } 1288 line-height: 100%; }
1263 #sidebar ul, 1289 #sidebar ul,
1264 #sidebar li { 1290 #sidebar li {
1265 margin: 0; 1291 margin: 0;
1266 padding: 0; 1292 padding: 0;
1267 text-align: inherit; } 1293 text-align: inherit; }
1294 #sidebar a,
1295 #sidebar a:hover,
1296 #sidebar a:active {
1297 display: block;
1298 text-decoration: none;
1299 color: inherit; }
1268 #sidebar #sidebar-brand { 1300 #sidebar #sidebar-brand {
1269 height: 64px; 1301 height: 64px;
1270 line-height: 64px; } 1302 line-height: 64px; }
1271 #sidebar #sidebar-logo { 1303 #sidebar #sidebar-logo {
1272 display: block; 1304 display: block;
1273 padding: 0 32px; 1305 padding: 0 32px;
1274 text-align: inherit; 1306 text-align: inherit;
1275 background-color: #8CC63E; } 1307 background-color: #8CC63E; }
1276 #sidebar #sidebar-logo img { 1308 #sidebar #sidebar-logo img {
1277 width: 32px; 1309 width: 32px;
1278 height: 32px; 1310 height: 32px;
1279 vertical-align: middle; } 1311 vertical-align: middle; }
1280 #sidebar #sidebar-open, 1312 #sidebar #sidebar-open,
1281 #sidebar #sidebar-close, 1313 #sidebar #sidebar-close,
1282 #sidebar .site-title { 1314 #sidebar #sidebar-title {
1283 display: none; } 1315 display: none; }
1284 #sidebar #sidebar-close img { 1316 #sidebar #sidebar-close img {
1285 width: 20px; 1317 width: 20px;
1286 height: 20px; } 1318 height: 20px; }
1287 #sidebar #sidebar-open img { 1319 #sidebar #sidebar-open img {
1288 width: 36px; 1320 width: 36px;
1289 height: 18px; } 1321 height: 18px; }
1290 1322
1291 #sidebar-menus a,
1292 #sidebar-menus a:hover,
1293 #sidebar-menus a:active {
1294 display: block;
1295 text-decoration: none;
1296 color: inherit; }
1297
1298 @media (min-width: 1200px) { 1323 @media (min-width: 1200px) {
1299 #sidebar { 1324 #sidebar {
1300 position: absolute; 1325 position: absolute;
1301 top: 0; 1326 top: 0;
1302 width: 208px; } 1327 width: 208px; }
1303 .js #sidebar { 1328 .js #sidebar {
1304 position: fixed; 1329 position: fixed;
1305 z-index: 2; 1330 z-index: 2;
1306 height: 100%; } 1331 height: 100%; }
1307 html[dir="ltr"] #sidebar { 1332 html[dir="ltr"] #sidebar {
(...skipping 11 matching lines...) Expand all
1319 left: 0; 1344 left: 0;
1320 overflow: hidden; 1345 overflow: hidden;
1321 width: 100%; 1346 width: 100%;
1322 height: 64px; } 1347 height: 64px; }
1323 .js #sidebar.open { 1348 .js #sidebar.open {
1324 height: 100%; } 1349 height: 100%; }
1325 html[dir="ltr"].js #sidebar { 1350 html[dir="ltr"].js #sidebar {
1326 text-align: left; } 1351 text-align: left; }
1327 html[dir="rtl"].js #sidebar { 1352 html[dir="rtl"].js #sidebar {
1328 text-align: right; } 1353 text-align: right; }
1329 #sidebar .site-title, 1354 #sidebar #sidebar-title,
1330 #sidebar #sidebar-open { 1355 #sidebar #sidebar-open {
1331 display: block; } 1356 display: block; }
1332 #sidebar.open #sidebar-open { 1357 #sidebar.open #sidebar-open {
1333 display: none; } 1358 display: none; }
1334 #sidebar.open #sidebar-close { 1359 #sidebar.open #sidebar-close {
1335 display: block; } 1360 display: block; }
1336 #sidebar #sidebar-brand { 1361 #sidebar #sidebar-brand {
1337 background-color: #FFFFFF; } 1362 background-color: #FFFFFF; }
1338 #sidebar #sidebar-open, 1363 #sidebar #sidebar-open,
1339 #sidebar #sidebar-close, 1364 #sidebar #sidebar-close,
1340 #sidebar #sidebar-logo, 1365 #sidebar #sidebar-logo,
1341 #sidebar .site-title { 1366 #sidebar #sidebar-title {
1342 padding: 0 16px; } 1367 padding: 0 16px; }
1343 #sidebar #sidebar-open, 1368 #sidebar #sidebar-open,
1344 #sidebar #sidebar-close, 1369 #sidebar #sidebar-close,
1345 #sidebar .site-title { 1370 #sidebar #sidebar-title {
1346 height: 64px; 1371 height: 64px;
1347 line-height: 64px; } 1372 line-height: 64px; }
1348 #sidebar #sidebar-open, 1373 #sidebar #sidebar-open,
1349 #sidebar #sidebar-close { 1374 #sidebar #sidebar-close {
1350 width: 64px; 1375 width: 64px;
1351 min-width: 64px; 1376 min-width: 64px;
1352 margin: 0; 1377 margin: 0;
1353 color: #FFFFFF; 1378 color: #FFFFFF;
1354 border: none; 1379 border: none;
1355 background-color: #161616; 1380 background-color: #161616;
1356 font-size: 32px; } 1381 font-size: 32px; }
1382 #sidebar #sidebar-title img {
1383 display: inline-block;
1384 height: 16px;
1385 vertical-align: middle; }
1357 html[dir="ltr"] #sidebar-open, 1386 html[dir="ltr"] #sidebar-open,
1358 html[dir="ltr"] #sidebar-close, 1387 html[dir="ltr"] #sidebar-close,
1359 html[dir="ltr"] #sidebar-logo, 1388 html[dir="ltr"] #sidebar-logo,
1360 html[dir="ltr"] #sidebar .site-title { 1389 html[dir="ltr"] #sidebar-title {
1361 float: left; } 1390 float: left; }
1362 html[dir="rtl"] #sidebar-open, 1391 html[dir="rtl"] #sidebar-open,
1363 html[dir="rtl"] #sidebar-close, 1392 html[dir="rtl"] #sidebar-close,
1364 html[dir="rtl"] #sidebar-logo, 1393 html[dir="rtl"] #sidebar-logo,
1365 html[dir="rtl"] #sidebar .site-title { 1394 html[dir="rtl"] #sidebar-title {
1366 float: right; } } 1395 float: right; } }
1367 1396
1368 #primary-navigation li { 1397 #primary-navigation li {
1369 position: relative; } 1398 position: relative; }
1370 1399
1371 #primary-navigation ul ul li { 1400 #primary-navigation ul ul li {
1372 color: #8CC63E; 1401 color: #8CC63E;
1373 font-size: 14px; } 1402 font-size: 14px; }
1374 1403
1375 #primary-navigation .active > a { 1404 #primary-navigation .active > a {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 height: 0; 1590 height: 0;
1562 content: " "; 1591 content: " ";
1563 border-top: 2px solid #FFFFFF; } 1592 border-top: 2px solid #FFFFFF; }
1564 #footer a { 1593 #footer a {
1565 color: #FFFFFF; } 1594 color: #FFFFFF; }
1566 #footer a:hover { 1595 #footer a:hover {
1567 text-decoration: underline; 1596 text-decoration: underline;
1568 color: #8CC63E !important; } 1597 color: #8CC63E !important; }
1569 #footer p { 1598 #footer p {
1570 color: #E1E1E1; } 1599 color: #E1E1E1; }
OLDNEW
« no previous file with comments | « pages/tool-certification/index.md ('k') | static/img/png/blog/aac-structure-detailed.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld