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

Unified Diff: static/css/main.css

Issue 29564718: Issue 5742 - Added container and 4 column grid to adblockplus.org (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Patch Set: Created Oct. 4, 2017, 7:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | static/css/main-desktop.css » ('j') | static/css/main-desktop.css » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/css/main.css
===================================================================
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -1,8 +1,100 @@
+/*******************************************************************************
+ * Base styles
juliandoucette 2017/10/04 19:13:52 Note: This will be automated ASAP.
ire 2017/10/04 22:17:10 Sorry, not sure what you mean. What will be automa
+ ******************************************************************************/
+html {
ire 2017/10/04 22:17:10 The formatting doesn't follow our coding style.
ire 2017/10/09 09:34:51 I realised I forgot to follow up on this. Can you
+ color: #212121;
+ background-color: #fff;
+ font-family: sans-serif;
+ line-height: 1.5; }
+
+/**
+ * Stretch content full-width
+ */
+.full-width {
+ display: block;
+ width: 100%;
+ margin: 1em 0px; }
+
+/**
+ * Center content within a (responsive) fixed width
+ */
+.container {
+ width: auto;
+ max-width: 100%;
+ margin: 0px auto;
+ padding: 0px 1em; }
+
+@media (min-width: 768px) {
+ .container {
+ width: 720px; } }
+
+@media (min-width: 1200px) {
+ .container {
+ width: 1170px; } }
+
+/*******************************************************************************
+ * Grid component
+ ******************************************************************************/
+/**
+ * - .row contains one or more .column(s)
+ * - .row clears .column(s)
+ * - .row negates the left & right padding of it's left-most & right-most
+ * .column(s) while preserving consistent padding between .column(s)
+ */
+.row {
+ margin: 0px -1em; }
+
+.row:after {
+ display: block;
+ clear: both;
+ content: ""; }
+
+/**
+ * - .column is 100% width by default
+ * - Modifier classes are applied to .column to change it's width
+ * - Modifier classes behave differently on different device widths
+ */
+.column {
+ position: relative;
+ width: 100%;
+ min-height: 1px;
+ padding: 0px 1em; }
+
+/* - .column(s) within .row .reverse appear in reverse order
+ * - .column(s) within [dir=rtl] appear in reverse order respectively
+ */
+.column,
+[dir="rtl"] .reverse .column {
+ float: left; }
+
+.row,
+.column {
+ box-sizing: border-box: }
+
+.reverse .column,
+[dir="rtl"] .column {
+ float: right; }
+
+@media (min-width: 768px) {
+ .one-half,
+ .one-fourth {
+ width: 50%; } }
+
+@media (min-width: 1200px) {
juliandoucette 2017/10/04 19:13:52 Note: I customized this breakpoint and width to ma
ire 2017/10/04 22:17:10 Acknowledged.
+ .one-third {
+ width: 33.333333%; }
+ .two-thirds {
+ width: 66.666667%; }
+ .one-fourth {
+ width: 25%; }
+ .three-fourths {
+ width: 75%; } }
+
*
{
font-family: Arial, sans;
font-size: 16px;
}
body
{
« no previous file with comments | « no previous file | static/css/main-desktop.css » ('j') | static/css/main-desktop.css » ('J')

Powered by Google App Engine
This is Rietveld