diff options
author | 2018-06-05 16:07:35 +0100 | |
---|---|---|
committer | 2018-06-05 16:07:35 +0100 | |
commit | 13a3c1e29473aa9f563e8db4ad94cb3eee9bdfe6 (patch) | |
tree | 290c6d668ec9161a39065456a33ec634215907cc /scss/pysite/pages/main | |
parent | documentation metadata API (#57) (diff) |
Move from CSS to SCSS (#86)
* Rewrite existing style.css with sass
* Add "uses-rst" class for pages that use rendered RST
This replaces the previous method of just listing
every page in the sass
* Remove old debug print
* Mixins and error pages
* Newly built CSS
* Add SASS cache to .gitignore
* New error SASS
* Slight changes to error template
* Add UIKit SCSS to repo
This includes the LICENSE and our customizations, which
makes life way easier for contributors
* Reorganize sass folder; your watchers can avoid uikit now
* Sass folder should be called scss
* Change variable names
* [SCSS] Linting
* Fix scss_lint gem name [ci skip]
* [SCSS] Now you can compile with just Python!
* Temporary hack to make the wiki editor taller
* [SCSS] @jchristgit
* [SCSS.py] Require specification of include dir to simplify the SCSS imports
* [SCSS] All inline styles have been removed
* [SCSS] Update UIKit theme to import from our variables
* [SCSS] Remove extra newlines in errors/_common.scss
Diffstat (limited to 'scss/pysite/pages/main')
-rw-r--r-- | scss/pysite/pages/main/_index.scss | 11 | ||||
-rw-r--r-- | scss/pysite/pages/main/about/_partners.scss | 12 | ||||
-rw-r--r-- | scss/pysite/pages/main/about/_privacy.scss | 12 | ||||
-rw-r--r-- | scss/pysite/pages/main/info/_resources.scss | 29 | ||||
-rw-r--r-- | scss/pysite/pages/main/jams/_index.scss | 11 | ||||
-rw-r--r-- | scss/pysite/pages/main/jams/_join.scss | 33 |
6 files changed, 108 insertions, 0 deletions
diff --git a/scss/pysite/pages/main/_index.scss b/scss/pysite/pages/main/_index.scss new file mode 100644 index 00000000..36a046cf --- /dev/null +++ b/scss/pysite/pages/main/_index.scss @@ -0,0 +1,11 @@ +$page_classes: ( + page-main-index, +); + +@each $class in $page_classes { + .#{$class} { + #invite-button { + padding: 0; + } + } +} diff --git a/scss/pysite/pages/main/about/_partners.scss b/scss/pysite/pages/main/about/_partners.scss new file mode 100644 index 00000000..280d9a46 --- /dev/null +++ b/scss/pysite/pages/main/about/_partners.scss @@ -0,0 +1,12 @@ +$page_classes: ( + page-main-about-partners, +); + +@each $class in $page_classes { + .#{$class} { + #partner-cards .uk-card-default { + margin-top: 2em; + text-align: center; + } + } +} diff --git a/scss/pysite/pages/main/about/_privacy.scss b/scss/pysite/pages/main/about/_privacy.scss new file mode 100644 index 00000000..b4203f8d --- /dev/null +++ b/scss/pysite/pages/main/about/_privacy.scss @@ -0,0 +1,12 @@ +$page_classes: ( + page-main-about-privacy, +); + +@each $class in $page_classes { + .#{$class} { + td, + th { + max-width: 30rem; + } + } +} diff --git a/scss/pysite/pages/main/info/_resources.scss b/scss/pysite/pages/main/info/_resources.scss new file mode 100644 index 00000000..ec2854d7 --- /dev/null +++ b/scss/pysite/pages/main/info/_resources.scss @@ -0,0 +1,29 @@ +$page_classes: ( + page-main-info-resources, +); + +@each $class in $page_classes { + .#{$class} { + .payment-icon { + margin-right: 1em; + + img { + height: 2em; + } + } + + .payment-description { + height: 3.7rem; + margin-right: .5rem; + vertical-align: text-bottom; + } + + .resource-title { + margin-bottom: -1rem; + + div { + padding-bottom: 0; + } + } + } +} diff --git a/scss/pysite/pages/main/jams/_index.scss b/scss/pysite/pages/main/jams/_index.scss new file mode 100644 index 00000000..80e6fd3d --- /dev/null +++ b/scss/pysite/pages/main/jams/_index.scss @@ -0,0 +1,11 @@ +$page_classes: ( + page-main-jams-index, +); + +@each $class in $page_classes { + .#{$class} { + .date-separator { + vertical-align: middle; + } + } +} diff --git a/scss/pysite/pages/main/jams/_join.scss b/scss/pysite/pages/main/jams/_join.scss new file mode 100644 index 00000000..6281edee --- /dev/null +++ b/scss/pysite/pages/main/jams/_join.scss @@ -0,0 +1,33 @@ +$page_classes: ( + page-main-jams-join, +); + +@each $class in $page_classes { + .#{$class} { + .question-label { + margin-top: 0; + } + + .checkbox-label { + padding-left: .7rem; + } + + .radio-label { + padding-left: .7rem; + padding-right: 1rem; + } + + .range-label { + padding-left: .3rem; + } + + .textarea { + min-height: 15rem; + resize: vertical; + } + + .slider-label { + margin-right: 1rem; + } + } +} |