diff options
author | Ian Lewis <ianmlewis@gmail.com> | 2019-10-18 00:19:24 -0400 |
---|---|---|
committer | Ian Lewis <ianlewis@google.com> | 2019-11-13 13:03:16 -0800 |
commit | a2b055de52cb90180ad57c26119fe72e61d70494 (patch) | |
tree | a156c39ba5e044fa42600a6c2d7ddd7dd91c350c /themes/docsy/assets/scss | |
parent | cf5b8ec088eac99ede97a6c9e381485695638dee (diff) |
Updated to Docsy HEAD
This updates the vendored docsy to https://github.com/google/docsy/tree/1a09abe6d7eaf02e44f79de3eadf8178a3792e81
Diffstat (limited to 'themes/docsy/assets/scss')
-rw-r--r-- | themes/docsy/assets/scss/_boxes.scss | 30 | ||||
-rw-r--r-- | themes/docsy/assets/scss/_code.scss | 5 | ||||
-rw-r--r-- | themes/docsy/assets/scss/_pageinfo.scss | 18 | ||||
-rw-r--r-- | themes/docsy/assets/scss/_variables.scss | 2 | ||||
-rw-r--r-- | themes/docsy/assets/scss/main.scss | 10 | ||||
-rw-r--r-- | themes/docsy/assets/scss/section-index.scss | 18 | ||||
-rw-r--r-- | themes/docsy/assets/scss/support/_mixins.scss | 6 |
7 files changed, 76 insertions, 13 deletions
diff --git a/themes/docsy/assets/scss/_boxes.scss b/themes/docsy/assets/scss/_boxes.scss index cc685706f..7fa99fcfe 100644 --- a/themes/docsy/assets/scss/_boxes.scss +++ b/themes/docsy/assets/scss/_boxes.scss @@ -77,6 +77,34 @@ @include td-box-height-modifiers(".td-box"); +// Styling for section boxes +.td-box { + .row.section { + padding-left: 5rem; + padding-right: 5rem; + flex-direction: column; + + > table { + @extend .table-striped; + + @extend .table-responsive; + + @extend .table; + } + } + + .row { + padding-left: 5rem; + padding-right: 5rem; + flex-direction: row; + } +} +// Styling for community page link boxes + +.td-box.linkbox { + padding: 5rem; +} + // This allows "painting by numbers" @for $i from 1 through length($td-box-colors) { $c: nth($td-box-colors, $i); @@ -96,4 +124,4 @@ @each $color, $value in $grays { @include box-variant(".td-box", $color, $value); -}
\ No newline at end of file +} diff --git a/themes/docsy/assets/scss/_code.scss b/themes/docsy/assets/scss/_code.scss index a5633d353..fa2974393 100644 --- a/themes/docsy/assets/scss/_code.scss +++ b/themes/docsy/assets/scss/_code.scss @@ -20,11 +20,12 @@ } // Inline code - p code, li > code { + p code, li > code, table code { color: inherit; padding: 0.2em 0.4em; margin: 0; font-size: 85%; + word-break: normal; background-color: rgba($black, 0.05); border-radius: $border-radius; @@ -50,4 +51,4 @@ border: 0; } } -}
\ No newline at end of file +} diff --git a/themes/docsy/assets/scss/_pageinfo.scss b/themes/docsy/assets/scss/_pageinfo.scss new file mode 100644 index 000000000..1144db9de --- /dev/null +++ b/themes/docsy/assets/scss/_pageinfo.scss @@ -0,0 +1,18 @@ +.pageinfo { + font-weight: $font-weight-medium; + background: $gray-100; + color: inherit; + border-radius: 0; + margin: 2rem; + padding: 1.5rem; + padding-bottom: 0.5rem; + + @each $color, $value in $theme-colors { + &-#{$color} { + + border-style: solid; + border-color: $value; + } + } + +} diff --git a/themes/docsy/assets/scss/_variables.scss b/themes/docsy/assets/scss/_variables.scss index 4c99baed1..e133638cd 100644 --- a/themes/docsy/assets/scss/_variables.scss +++ b/themes/docsy/assets/scss/_variables.scss @@ -13,7 +13,7 @@ $enable-shadows: true; // Theme flags. -$td-enable-google-fonts: true; +$td-enable-google-fonts: true !default; // Theme colors diff --git a/themes/docsy/assets/scss/main.scss b/themes/docsy/assets/scss/main.scss index 66c036c7b..7d4995b7f 100644 --- a/themes/docsy/assets/scss/main.scss +++ b/themes/docsy/assets/scss/main.scss @@ -5,9 +5,9 @@ @import "../vendor/bootstrap/scss/bootstrap"; -@import "../vendor/Font-Awesome//web-fonts-with-css/scss/fontawesome.scss"; -@import "../vendor/Font-Awesome//web-fonts-with-css/scss/fa-solid.scss"; -@import "../vendor/Font-Awesome//web-fonts-with-css/scss/fa-brands.scss"; +@import "../vendor/Font-Awesome/scss/fontawesome.scss"; +@import "../vendor/Font-Awesome/scss/solid.scss"; +@import "../vendor/Font-Awesome/scss/brands.scss"; @import "support/utilities"; @import "colors"; @@ -24,6 +24,8 @@ @import "search"; @import "main-container"; @import "blocks/blocks"; +@import "section-index"; +@import "pageinfo"; @if $td-enable-google-fonts { @import url($web-font-path); @@ -55,4 +57,4 @@ footer { } } -@import "styles_project"; +@import "styles_project";
\ No newline at end of file diff --git a/themes/docsy/assets/scss/section-index.scss b/themes/docsy/assets/scss/section-index.scss new file mode 100644 index 000000000..e00b00453 --- /dev/null +++ b/themes/docsy/assets/scss/section-index.scss @@ -0,0 +1,18 @@ +.section-index { + + .entry { + padding: .75rem; + } + + h5 { + margin-bottom: 0; + + a { + font-weight: 700; + } + } + + p { + margin-top: 0; + } +} diff --git a/themes/docsy/assets/scss/support/_mixins.scss b/themes/docsy/assets/scss/support/_mixins.scss index 8fcbd7fd6..24e2cd1ab 100644 --- a/themes/docsy/assets/scss/support/_mixins.scss +++ b/themes/docsy/assets/scss/support/_mixins.scss @@ -13,10 +13,6 @@ @if $underline { text-decoration: underline; } - - @include hover-focus { - color: $hover-color; - } } } @@ -46,4 +42,4 @@ @include optional-at-root(":-ms-input-placeholder") { @content; } -}
\ No newline at end of file +} |