diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-05-22 14:18:57 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-05-22 14:18:57 +0300 |
commit | 26bc542b8b66aa9dd3177602c99d1841aa20576c (patch) | |
tree | 5bd4acb1b784ae010ed8b847af8fe103d6a0abab | |
parent | 7ba69458f2ad969f681deae1eee1b877f72560e5 (diff) |
Run npx prettier --write assets/**/*.scss
6 files changed, 59 insertions, 63 deletions
diff --git a/assets/scss/slate/_icon-font.scss b/assets/scss/slate/_icon-font.scss index d286876..892ddb1 100644 --- a/assets/scss/slate/_icon-font.scss +++ b/assets/scss/slate/_icon-font.scss @@ -1,17 +1,17 @@ @font-face { - font-family: 'slateeee'; - src: url('../fonts/slate.eot?-syv14m'); - src: url('../fonts/slate.eot?#iefix-syv14m') format('embedded-opentype'), - url('../fonts/slate.woff2?-syv14m') format('woff2'), - url('../fonts/slate.woff?-syv14m') format('woff'), - url('../fonts/slate.ttf?-syv14m') format('truetype'), - url('../fonts/slate.svg?-syv14m#slate') format('svg'); + font-family: "slateeee"; + src: url("../fonts/slate.eot?-syv14m"); + src: url("../fonts/slate.eot?#iefix-syv14m") format("embedded-opentype"), + url("../fonts/slate.woff2?-syv14m") format("woff2"), + url("../fonts/slate.woff?-syv14m") format("woff"), + url("../fonts/slate.ttf?-syv14m") format("truetype"), + url("../fonts/slate.svg?-syv14m#slate") format("svg"); font-weight: normal; font-style: normal; } %icon { - font-family: 'slateeee'; + font-family: "slateeee"; speak: none; font-style: normal; font-weight: normal; diff --git a/assets/scss/slate/_styles.scss b/assets/scss/slate/_styles.scss index 6729067..13c949b 100644 --- a/assets/scss/slate/_styles.scss +++ b/assets/scss/slate/_styles.scss @@ -1,17 +1,16 @@ .content { - // prevent clearing of highlight divs - &>div.highlight { - clear:none; - } + // prevent clearing of highlight divs + & > div.highlight { + clear: none; } - - .toc-wrapper .toc-h3 { - padding-left: 50px; - font-size: 12px; - } - - .da-toc-list-h2 { - background-color: $nav-subitem-bg; - font-weight: 500; - } -
\ No newline at end of file +} + +.toc-wrapper .toc-h3 { + padding-left: 50px; + font-size: 12px; +} + +.da-toc-list-h2 { + background-color: $nav-subitem-bg; + font-weight: 500; +} diff --git a/assets/scss/slate/_variables.scss b/assets/scss/slate/_variables.scss index a0dd54b..122b74f 100644 --- a/assets/scss/slate/_variables.scss +++ b/assets/scss/slate/_variables.scss @@ -1,25 +1,24 @@ -@import 'docuapi_overrides'; +@import "docuapi_overrides"; // BACKGROUND COLORS //////////////////// -$nav-bg: #2E3336 !default; -$examples-bg: #2E3336 !default; -$code-bg: #1E2224 !default; -$code-annotation-bg: #191D1F !default; -$nav-subitem-bg: #1E2224 !default; -$nav-active-bg: #0F75D4 !default; -$nav-active-parent-bg: #1E2224 !default; // parent links of the current section +$nav-bg: #2e3336 !default; +$examples-bg: #2e3336 !default; +$code-bg: #1e2224 !default; +$code-annotation-bg: #191d1f !default; +$nav-subitem-bg: #1e2224 !default; +$nav-active-bg: #0f75d4 !default; +$nav-active-parent-bg: #1e2224 !default; // parent links of the current section $lang-select-border: #000 !default; -$lang-select-bg: #1E2224 !default; +$lang-select-bg: #1e2224 !default; $lang-select-active-bg: $examples-bg !default; // feel free to change this to blue or something $lang-select-pressed-bg: #111 !default; // color of language tab bg when mouse is pressed -$main-bg: #F3F7F9 !default; +$main-bg: #f3f7f9 !default; $aside-notice-bg: #8fbcd4 !default; $aside-warning-bg: #c97a7e !default; $aside-success-bg: #6ac174 !default; $search-notice-bg: #c97a7e !default; - // TEXT COLORS //////////////////// $main-text: #333 !default; // main content text color @@ -30,7 +29,6 @@ $lang-select-text: #fff !default; // color of unselected language tab text $lang-select-active-text: #fff !default; // color of selected language tab text $lang-select-pressed-text: #fff !default; // color of language tab text when mouse is pressed - // SIZES //////////////////// $nav-width: 230px !default; // width of the navbar @@ -45,16 +43,19 @@ $h1-margin-bottom: 21px !default; // padding under the largest header tags $tablet-width: 930px !default; // min width before reverting to tablet size $phone-width: $tablet-width - $nav-width !default; // min width before reverting to mobile size - // FONTS //////////////////// -$font-default-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default; +$font-default-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol" !default; $font-default-size: 14px !default; $font-default-weight: 400 !default; $font-header-weight: 700 !default; -$font-code-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif !default; +$font-code-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", + "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, + serif !default; $font-code-size: 12px !default; %default-font { @@ -74,24 +75,21 @@ $font-code-size: 12px !default; line-height: 1.5; } - // OTHER //////////////////// $nav-footer-border-color: #666 !default; $search-box-border-color: #666 !default; - //////////////////////////////////////////////////////////////////////////////// // INTERNAL //////////////////////////////////////////////////////////////////////////////// // These settings are probably best left alone. %break-words { - word-break: break-all; - hyphens: auto; + word-break: break-all; + hyphens: auto; } // DocuAPI overrides. //////////////////// -@import 'styles'; - +@import "styles"; diff --git a/assets/scss/slate/docuapi_overrides.scss b/assets/scss/slate/docuapi_overrides.scss index a98250d..eb3a27e 100644 --- a/assets/scss/slate/docuapi_overrides.scss +++ b/assets/scss/slate/docuapi_overrides.scss @@ -1,4 +1,3 @@ // This is the recommended place for user overrides. -// See _variables.scss for available tweaks. +// See _variables.scss for available tweaks. // Also see exampleSite/assets/scss/slate/docuapi_overrides.scss for some example tweaks. - diff --git a/exampleSite/resources/_gen/assets/scss/scss/slate/print.css.scss_c14439616ffbc3ae1827507340d6c08b.content b/exampleSite/resources/_gen/assets/scss/scss/slate/print.css.scss_c14439616ffbc3ae1827507340d6c08b.content index 404743e..eaa01b8 100644 --- a/exampleSite/resources/_gen/assets/scss/scss/slate/print.css.scss_c14439616ffbc3ae1827507340d6c08b.content +++ b/exampleSite/resources/_gen/assets/scss/scss/slate/print.css.scss_c14439616ffbc3ae1827507340d6c08b.content @@ -382,18 +382,18 @@ body, .content h3, .content h4, .content h2, .content h1 { font-size: 12px; } .da-toc-list-h2 { - background-color: #1E2224; + background-color: #1e2224; font-weight: 500; } @font-face { - font-family: 'slateeee'; + font-family: "slateeee"; src: url("../fonts/slate.eot?-syv14m"); src: url("../fonts/slate.eot?#iefix-syv14m") format("embedded-opentype"), url("../fonts/slate.woff2?-syv14m") format("woff2"), url("../fonts/slate.woff?-syv14m") format("woff"), url("../fonts/slate.ttf?-syv14m") format("truetype"), url("../fonts/slate.svg?-syv14m#slate") format("svg"); font-weight: normal; font-style: normal; } .content aside.success:before, .content aside.notice:before, .content aside.warning:before { - font-family: 'slateeee'; + font-family: "slateeee"; speak: none; font-style: normal; font-weight: normal; diff --git a/exampleSite/resources/_gen/assets/scss/scss/slate/screen.css.scss_d18af36970f1f09b308ef20ee65e3a03.content b/exampleSite/resources/_gen/assets/scss/scss/slate/screen.css.scss_d18af36970f1f09b308ef20ee65e3a03.content index 1052cc6..29682ba 100644 --- a/exampleSite/resources/_gen/assets/scss/scss/slate/screen.css.scss_d18af36970f1f09b308ef20ee65e3a03.content +++ b/exampleSite/resources/_gen/assets/scss/scss/slate/screen.css.scss_d18af36970f1f09b308ef20ee65e3a03.content @@ -382,18 +382,18 @@ html, body, .content h3, .content h4, .content h5, .content h6, .content h2, .co font-size: 12px; } .da-toc-list-h2 { - background-color: #1E2224; + background-color: #1e2224; font-weight: 500; } @font-face { - font-family: 'slateeee'; + font-family: "slateeee"; src: url("../fonts/slate.eot?-syv14m"); src: url("../fonts/slate.eot?#iefix-syv14m") format("embedded-opentype"), url("../fonts/slate.woff2?-syv14m") format("woff2"), url("../fonts/slate.woff?-syv14m") format("woff"), url("../fonts/slate.ttf?-syv14m") format("truetype"), url("../fonts/slate.svg?-syv14m#slate") format("svg"); font-weight: normal; font-style: normal; } .toc-wrapper > .search:before, .content aside.success:before, .content aside.notice:before, .content aside.warning:before { - font-family: 'slateeee'; + font-family: "slateeee"; speak: none; font-style: normal; font-weight: normal; @@ -434,7 +434,7 @@ html, body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - background-color: #F3F7F9; + background-color: #f3f7f9; height: 100%; -webkit-text-size-adjust: none; /* Never autoresize text */ } @@ -495,7 +495,7 @@ html, body { transition-property: height, margin; transition-duration: 180ms; transition-timing-function: ease-in-out; - background: #1E2224; } + background: #1e2224; } .toc-wrapper .search-results.visible { height: 30%; margin-bottom: 1em; } @@ -518,14 +518,14 @@ html, body { transition-timing-function: linear; transition-duration: 200ms; } .toc-wrapper .toc-link.active { - background-color: #0F75D4; + background-color: #0f75d4; color: #fff; } .toc-wrapper .toc-link.active-parent { - background-color: #1E2224; + background-color: #1e2224; color: #fff; } .toc-wrapper .toc-list-h2 { display: none; - background-color: #1E2224; + background-color: #1e2224; font-weight: 500; } .toc-wrapper .toc-h2 { padding-left: 25px; @@ -588,7 +588,7 @@ html, body { margin-left: 230px; position: relative; z-index: 10; - background-color: #F3F7F9; + background-color: #f3f7f9; min-height: 100%; padding-bottom: 1px; } .page-wrapper .dark-box { @@ -605,7 +605,7 @@ html, body { .lang-selector { display: flex; - background-color: #1E2224; + background-color: #1e2224; width: 100%; font-weight: bold; overflow-x: auto; } @@ -676,7 +676,7 @@ html, body { .content hr { margin: 2em 0; border-top: 2px solid #002642; - border-bottom: 2px solid #F3F7F9; } + border-bottom: 2px solid #f3f7f9; } .content table { margin-bottom: 1em; overflow: auto; } @@ -740,7 +740,7 @@ html, body { clear: none; } .content pre, .content blockquote { - background-color: #1E2224; + background-color: #1e2224; color: #fff; margin: 0; width: 50%; @@ -760,7 +760,7 @@ html, body { padding: 2em 28px; } .content blockquote > p { - background-color: #191D1F; + background-color: #191d1f; padding: 13px 2em; color: #eee; } @@ -796,7 +796,7 @@ html, body { color: #909090; } .highlight, .highlight .w { - background-color: #1E2224; } + background-color: #1e2224; } .copy-clipboard { float: right; |