summaryrefslogtreecommitdiffhomepage
path: root/assets
diff options
context:
space:
mode:
authorIan Lewis <ianmlewis@gmail.com>2019-03-31 20:18:04 -0400
committerAdin Scannell <ascannell@google.com>2019-04-02 16:11:43 -0700
commit0803a82bffccdd609db03743d145c3d6656f220e (patch)
tree1838dcb9c5601bb047963def04563de70b97ee37 /assets
parent96dedf5dd6c42125b3c6f976a1447de96e804600 (diff)
Updated style for top page cover
Diffstat (limited to 'assets')
-rw-r--r--assets/scss/_custom_styles.scss43
-rw-r--r--assets/scss/_variables_project.scss18
-rw-r--r--assets/scss/main.scss58
3 files changed, 101 insertions, 18 deletions
diff --git a/assets/scss/_custom_styles.scss b/assets/scss/_custom_styles.scss
new file mode 100644
index 000000000..874fe0203
--- /dev/null
+++ b/assets/scss/_custom_styles.scss
@@ -0,0 +1,43 @@
+// Custom styles.
+
+// The table anchor for syscall references so that entries referenced
+// directly by an anchor aren't buried underneath the header.
+a.doc-table-anchor {
+ display: block;
+ position: relative;
+ top: -75px;
+ visibility: hidden;
+}
+
+// Adjust the width of the svg logo in the header. For smaller svg
+// files the width is too large.
+.td-navbar .navbar-brand .navbar-logo svg {
+ width: auto;
+}
+
+.td-navbar-cover .navbar-brand {
+ display: none;
+}
+.td-navbar-cover.navbar-bg-onscroll .navbar-brand {
+ display: inherit;
+}
+
+// Cover block.
+.td-default main section.td-cover-block h1 {
+ padding-bottom: 6rem;
+}
+
+.td-default main section.td-cover-block {
+ padding-top: 4rem;
+ padding-bottom: 8rem;
+}
+
+.td-default main section.td-cover-block p.lead {
+ width: 50%;
+ font-size: 2rem;
+}
+
+.td-default main section.td-cover-block p.lead strong {
+ font-weight: bold;
+}
+
diff --git a/assets/scss/_variables_project.scss b/assets/scss/_variables_project.scss
index eec4cfe30..8a48c650d 100644
--- a/assets/scss/_variables_project.scss
+++ b/assets/scss/_variables_project.scss
@@ -2,24 +2,6 @@
$primary: #262362;
$secondary: #ffffff;
-// Custom styles.
-a.doc-table-anchor {
- display: block;
- position: relative;
- top: -75px;
- visibility: hidden;
-}
-
-.td-navbar {
- .navbar-brand {
- .navbar-logo {
- svg {
- width: auto;
- }
- }
- }
-}
-
// Fonts.
$google_font_name: "Roboto";
$google_font_family: "Roboto";
diff --git a/assets/scss/main.scss b/assets/scss/main.scss
new file mode 100644
index 000000000..607e2cf23
--- /dev/null
+++ b/assets/scss/main.scss
@@ -0,0 +1,58 @@
+@import "support/functions";
+@import "variables_project";
+@import "variables";
+@import "support/mixins";
+
+@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 "support/utilities";
+@import "colors";
+@import "boxes";
+@import "blog";
+@import "code";
+@import "nav";
+@import "sidebar-tree";
+@import "sidebar-toc";
+@import "buttons";
+@import "breadcrumb";
+@import "alerts";
+@import "content";
+@import "search";
+@import "main-container";
+@import "blocks/blocks";
+
+@if $td-enable-google-fonts {
+ @import url($web-font-path);
+}
+
+footer {
+ min-height: 150px;
+
+ @include media-breakpoint-down(md) {
+ min-height: 200px;
+ }
+}
+
+// Adjust anchors vs the fixed menu.
+@include media-breakpoint-up(md) {
+ .td-offset-anchor:target {
+ display: block;
+ position: relative;
+ top: -4rem;
+ visibility: hidden;
+ }
+
+ h2[id]:before, h3[id]:before, h4[id]:before, h5[id]:before {
+ display: block;
+ content: " ";
+ margin-top: -5rem;
+ height: 5rem;
+ visibility: hidden;
+ }
+}
+
+@import "custom_styles";