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/wiki/_common.scss | |
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/wiki/_common.scss')
-rw-r--r-- | scss/pysite/pages/wiki/_common.scss | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/scss/pysite/pages/wiki/_common.scss b/scss/pysite/pages/wiki/_common.scss new file mode 100644 index 00000000..c5ab3a2f --- /dev/null +++ b/scss/pysite/pages/wiki/_common.scss @@ -0,0 +1,82 @@ +@import "variables"; + +$quote_colour: #99AAB5; +$sidebar_button_border_colour: rgba(0, 0, 0, .11); + +$page_classes: ( + blueprint-wiki, // All wiki pages +); + +@each $class in $page_classes { + .#{$class} { + .quote { + border-left: 3px solid $primary_background; + color: $quote_colour; + margin-bottom: 1rem; + padding-left: 20px; + } + + #wiki-nav .uk-nav-divider { + min-width: 8rem; + } + + #wiki-sidebar { + transition: width ease 1s; + } + + #wiki-page { + overflow-x: hidden; + } + + #wiki-sidebar-button { + align-items: center; + border: 1px solid $sidebar_button_border_colour; + color: $white; + height: 3rem; + justify-content: center; + min-height: 3rem; + min-width: 3rem; + width: 3rem; + } + + #doc-view { + width: calc(100% - 6rem); + } + + @media (max-width: 639px) { + #doc-view { + width: calc(100% - 1rem); + } + } + + #editor { + min-height: 50vh; + resize: vertical; + } + + .sidebar-search-input { + border-left: 0; + border-right: 0; + margin-top: 5px; + padding-right: 0; + } + + .search-button { + border: 0; + width: 100%; + } + + .content { + flex-grow: 1; + margin: 0 1rem 1rem; + } + + .location-input { + margin-left: 15px; + } + + .preview-title { + padding: 1rem 1rem .1rem; + } + } +} |