diff --git a/foundation/public/css/erpnext-org-theme.css b/foundation/public/css/erpnext-org-theme.css index d90414ff..4f997c9e 100644 --- a/foundation/public/css/erpnext-org-theme.css +++ b/foundation/public/css/erpnext-org-theme.css @@ -32,7 +32,8 @@ .dark-bg { background-color: #2E3338; } -.left-aligned { +.left-aligned, +.text-left { text-align: left; } .right-aligned { @@ -50,6 +51,9 @@ .text-white { color: #fff; } +.text-normal { + font-size: 1rem; +} .text-medium { font-size: 1.5rem; } @@ -57,7 +61,8 @@ font-size: 0.5rem; } .centered { - margin: 0 auto; + margin-left: auto; + margin-right: auto; } .bold { font-weight: bold; @@ -71,6 +76,15 @@ .list-circle { list-style: circle; } +.bullet::before { + content: "\2022"; + display: inline-block; + width: 1em; + font-size: 1.25rem; +} +.half-width { + max-width: 50%; +} .border { border: 1px solid #d1d8dd; } @@ -83,6 +97,65 @@ .saturate:hover { filter: grayscale(0%); } +/* colors */ +.green-bullet::before { + color: #98d85b; +} +/* components */ +.grid-of-four, +.grid-of-three { + grid-gap: 2.5rem; + display: grid; +} +.grid-of-four { + grid-template-columns: repeat(1, 1fr); +} +@media screen and (min-width: 500px) { + .grid-of-four { + grid-template-columns: repeat(2, 1fr); + } +} +@media screen and (min-width: 767px) { + .grid-of-four { + grid-template-columns: repeat(3, 1fr); + } +} +@media screen and (min-width: 991px) { + .grid-of-four { + grid-template-columns: repeat(4, 1fr); + } +} +.grid-of-three { + grid-template-columns: repeat(1, 1fr); +} +@media screen and (min-width: 500px) { + .grid-of-three { + grid-template-columns: repeat(2, 1fr); + } +} +@media screen and (min-width: 767px) { + .grid-of-three { + grid-template-columns: repeat(3, 1fr); + } +} +.columns { + display: flex; + justify-content: space-between; + flex-direction: column; +} +@media screen and (min-width: 767px) { + .columns { + flex-direction: row; + } +} +.column { + margin-bottom: 1rem; +} +@media screen and (min-width: 767px) { + .column { + margin: 0; + } +} .indicator, .indicator-right { background: none; @@ -167,22 +240,23 @@ a:focus, a:visited { outline: 0; } +.header-1, +.header-2, +.header-3 { + line-height: 1.025; +} .header-1 { font-size: 2.5rem; - line-height: 1.025; } .header-2 { font-size: 1.5rem; - line-height: 1.025; } .header-3 { font-size: 1rem; - line-height: 1.025; } .navbar { padding: 1rem; background-color: #fff; - box-shadow: 0 5px 9px 0 rgba(0, 0, 0, 0.05); } @media screen and (min-width: 767px) { .navbar { @@ -249,6 +323,9 @@ a:visited { padding: 8rem 2.5rem; } } +.feature .bullet { + margin-bottom: 0.5rem; +} .page { padding: 0 1rem; border-top: 1px solid #EBEFF2; @@ -272,56 +349,6 @@ a:visited { .list-items:hover { box-shadow: 0 5px 9px 0 rgba(0, 0, 0, 0.05); } -.grid-of-four, -.grid-of-three { - grid-gap: 2.5rem; - display: grid; -} -.grid-of-four { - grid-template-columns: repeat(1, 1fr); -} -@media screen and (min-width: 500px) { - .grid-of-four { - grid-template-columns: repeat(2, 1fr); - } -} -@media screen and (min-width: 767px) { - .grid-of-four { - grid-template-columns: repeat(3, 1fr); - } -} -@media screen and (min-width: 991px) { - .grid-of-four { - grid-template-columns: repeat(4, 1fr); - } -} -.grid-of-three { - grid-template-columns: repeat(1, 1fr); -} -@media screen and (min-width: 500px) { - .grid-of-three { - grid-template-columns: repeat(2, 1fr); - } -} -@media screen and (min-width: 767px) { - .grid-of-three { - grid-template-columns: repeat(3, 1fr); - } -} -.two-column, -.three-column, -.four-column { - display: flex; - justify-content: space-between; - flex-direction: column; -} -@media screen and (min-width: 767px) { - .two-column, - .three-column, - .four-column { - flex-direction: row; - } -} .contact-content { max-width: 90%; } @@ -330,14 +357,6 @@ a:visited { max-width: 50%; } } -.columns { - margin-bottom: 1rem; -} -@media screen and (min-width: 767px) { - .columns { - margin: 0; - } -} .countries { max-width: 100%; } @@ -806,12 +825,6 @@ textarea.form-control { border-color: #5e5ec9; text-decoration: none; } -.screenshot, -.img-responsive { - max-width: 800px; - margin: auto; - width: auto; -} img.blog-cover-image, .blog-text img, .screenshot { diff --git a/foundation/public/css/reset.css b/foundation/public/css/reset.css index 0389a522..761931cd 100644 --- a/foundation/public/css/reset.css +++ b/foundation/public/css/reset.css @@ -200,7 +200,7 @@ figure { img { vertical-align: middle; border-style: none; - width: 100%; + max-width: 100%; border-radius: 0.25em; } diff --git a/foundation/public/less/base.less b/foundation/public/less/base.less index 485d6af7..8a9f2f4f 100644 --- a/foundation/public/less/base.less +++ b/foundation/public/less/base.less @@ -41,7 +41,8 @@ background-color: @text-dark; } -.left-aligned { +.left-aligned, +.text-left { text-align: left; } @@ -65,6 +66,10 @@ color: #fff; } +.text-normal { + font-size: 1rem; +} + .text-medium { font-size: 1.5rem; } @@ -74,7 +79,8 @@ } .centered { - margin: 0 auto; + margin-left: auto; + margin-right: auto; } .bold { @@ -93,6 +99,19 @@ list-style: circle; } +.bullet { + &::before { + content: "\2022"; + display: inline-block; + width: 1em; + font-size: 1.25rem; + } +} + +.half-width { + max-width: 50%; +} + .border { border: @border; } @@ -108,3 +127,65 @@ filter: grayscale(0%); } } + +/* colors */ + +.green-bullet { + &::before { + color: @indicator-green; + } +} + +/* components */ + +.grid-of-four, +.grid-of-three { + grid-gap: 2.5rem; + display: grid; +} + +.grid-of-four { + grid-template-columns: repeat(1, 1fr); + + @media screen and (min-width: @screen-palm) { + grid-template-columns: repeat(2, 1fr); + } + + @media screen and (min-width: @screen-xs) { + grid-template-columns: repeat(3, 1fr); + } + + @media screen and (min-width: @screen-sm) { + grid-template-columns: repeat(4, 1fr); + } +} + +.grid-of-three { + grid-template-columns: repeat(1, 1fr); + + @media screen and (min-width: @screen-palm) { + grid-template-columns: repeat(2, 1fr); + } + + @media screen and (min-width: @screen-xs) { + grid-template-columns: repeat(3, 1fr); + } +} + +.columns { + display: flex; + justify-content: space-between; + flex-direction: column; + + @media screen and (min-width: @screen-xs) { + flex-direction: row; + } +} + +.column { + margin-bottom: 1rem; + + @media screen and (min-width: @screen-xs) { + margin: 0; + } +} diff --git a/foundation/public/less/erpnext-org-theme.less b/foundation/public/less/erpnext-org-theme.less index 1791e836..26d87ae7 100644 --- a/foundation/public/less/erpnext-org-theme.less +++ b/foundation/public/less/erpnext-org-theme.less @@ -19,25 +19,27 @@ a { } } +.header-1, +.header-2, +.header-3 { + line-height: 1.025; +} + .header-1 { font-size: 2.5rem; - line-height: 1.025; } .header-2 { font-size: 1.5rem; - line-height: 1.025; } .header-3 { font-size: 1rem; - line-height: 1.025; } .navbar { padding: 1rem; background-color: #fff; - box-shadow: 0 5px 9px 0 rgba(0, 0, 0, 0.05); @media screen and (min-width: @screen-xs) { padding: 1rem 2.5rem; @@ -111,6 +113,10 @@ a { } } +.feature .bullet { + margin-bottom: 0.5rem; +} + .page { padding: 0 1rem; border-top: 1px solid @light-border-color; @@ -137,52 +143,6 @@ a { } } -.grid-of-four, -.grid-of-three { - grid-gap: 2.5rem; - display: grid; -} - -.grid-of-four { - grid-template-columns: repeat(1, 1fr); - - @media screen and (min-width: @screen-palm) { - grid-template-columns: repeat(2, 1fr); - } - - @media screen and (min-width: @screen-xs) { - grid-template-columns: repeat(3, 1fr); - } - - @media screen and (min-width: @screen-sm) { - grid-template-columns: repeat(4, 1fr); - } -} - -.grid-of-three { - grid-template-columns: repeat(1, 1fr); - - @media screen and (min-width: @screen-palm) { - grid-template-columns: repeat(2, 1fr); - } - - @media screen and (min-width: @screen-xs) { - grid-template-columns: repeat(3, 1fr); - } -} - -.two-column, -.three-column, -.four-column { - display: flex; - justify-content: space-between; - flex-direction: column; - - @media screen and (min-width: @screen-xs) { - flex-direction: row; - } -} - .contact-content { max-width: 90%; @@ -191,14 +151,6 @@ a { } } -.columns { - margin-bottom: 1rem; - - @media screen and (min-width: @screen-xs) { - margin: 0; - } -} - .countries { max-width: 100%; @@ -745,13 +697,6 @@ textarea.form-control { text-decoration: none; } -.screenshot, -.img-responsive { - max-width: 800px; - margin: auto; - width: auto; -} - img.blog-cover-image, .blog-text img, .screenshot { diff --git a/foundation/templates/includes/footer/footer.html b/foundation/templates/includes/footer/footer.html index 9c2f3faa..1c35098e 100644 --- a/foundation/templates/includes/footer/footer.html +++ b/foundation/templates/includes/footer/footer.html @@ -1,8 +1,8 @@