Skip to content

Commit 5ac2b16

Browse files
authored
Refactor extra and footer SCSS, add footer border (#2491)
1 parent ca4a67e commit 5ac2b16

File tree

6 files changed

+70
-71
lines changed

6 files changed

+70
-71
lines changed

assets/scss/td/_footer.scss

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
.td-footer {
2+
--td-footer-border-top: 1px solid var(--bs-border-color);
3+
4+
@extend .td-box--dark;
5+
6+
min-height: 150px;
7+
padding-top: map-get($spacers, 5);
8+
9+
@include media-breakpoint-down(lg) {
10+
min-height: 200px;
11+
}
12+
13+
/* &__left { } */
14+
15+
&__center {
16+
@extend .small;
17+
text-align: center;
18+
}
19+
20+
&__right {
21+
text-align: right;
22+
}
23+
24+
&__about {
25+
font-size: initial;
26+
}
27+
28+
&__links {
29+
&-list {
30+
@extend .list-inline;
31+
margin-bottom: 0;
32+
}
33+
34+
&-item {
35+
@extend .list-inline-item;
36+
@include font-size(map-get($font-sizes, 4));
37+
38+
a {
39+
color: inherit !important;
40+
}
41+
}
42+
}
43+
44+
&__authors,
45+
&__all_rights_reserved {
46+
padding-left: map-get($spacers, 1);
47+
}
48+
49+
&__all_rights_reserved {
50+
display: none;
51+
}
52+
}
53+
54+
@include color-mode(dark) {
55+
.td-footer {
56+
border-top: var(--td-footer-border-top);
57+
}
58+
}

assets/scss/td/extra/_index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Experimental extra styles that projects can test run. These styles might
2+
// eventually be merged into the core Docsy theme.
3+
4+
@import 'navbar';
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
// Experimental extra styles that projects can test run.
2-
// These styles might eventually be merged into the core Docsy theme.
3-
4-
// ------------------------------------------------------------
5-
// Navbar
6-
// ------------------------------------------------------------
7-
// Use underline decoration for active and hover nav-link states.
1+
// Navbar styles: use underline decoration for active and hover nav-link states.
82

93
.td-navbar {
104
.nav-link {

assets/scss/td/main.scss

Lines changed: 4 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
@import '../variables_project_after_bs';
1818

1919
@import 'support/utilities';
20-
@import 'colors';
21-
@import 'table';
22-
@import 'boxes';
2320
@import 'blog';
21+
@import 'boxes';
2422
@import 'code';
23+
@import 'colors';
24+
@import 'footer';
2525
@import 'nav';
26+
@import 'table';
2627
@import 'sidebar-tree';
2728
@import 'sidebar-toc';
2829
@import 'breadcrumb';
@@ -43,57 +44,6 @@
4344
@import url($td-web-font-path);
4445
}
4546

46-
.td-footer {
47-
@extend .td-box--dark;
48-
49-
min-height: 150px;
50-
padding-top: map-get($spacers, 5);
51-
52-
@include media-breakpoint-down(lg) {
53-
min-height: 200px;
54-
}
55-
56-
/* &__left { } */
57-
58-
&__center {
59-
@extend .small;
60-
text-align: center;
61-
}
62-
63-
&__right {
64-
text-align: right;
65-
}
66-
67-
&__about {
68-
font-size: initial;
69-
}
70-
71-
&__links {
72-
&-list {
73-
@extend .list-inline;
74-
margin-bottom: 0;
75-
}
76-
77-
&-item {
78-
@extend .list-inline-item;
79-
@include font-size(map-get($font-sizes, 4));
80-
81-
a {
82-
color: inherit !important;
83-
}
84-
}
85-
}
86-
87-
&__authors,
88-
&__all_rights_reserved {
89-
padding-left: map-get($spacers, 1);
90-
}
91-
92-
&__all_rights_reserved {
93-
display: none;
94-
}
95-
}
96-
9747
// Adjust anchors vs the fixed menu.
9848
@include media-breakpoint-up(md) {
9949
.td-offset-anchor:target {

docsy.dev/assets/scss/_navbar.scss

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.td-navbar {
2-
// Illustrate translucent background for regular pages (without blocks/cover)
2+
// Illustrates translucent background for regular pages (without blocks/cover)
33
@include media-breakpoint-up(md) {
44
--td-navbar-bg-color: rgba(var(--bs-body-bg-rgb), 0.85);
55
--td-navbar-backdrop-filter: blur(8px);
@@ -19,14 +19,7 @@
1919
// Make search box border more visible
2020
--bs-border-color: #{$gray-500};
2121

22-
.nav-link {
23-
@at-root .td-home & {
24-
// On home page use more visible active color for all links
25-
// --bs-nav-link-color: var(--bs-navbar-active-color) !important;
26-
}
27-
}
28-
29-
// Illustrate tinted transparent background color on desktop:
22+
// Illustrates tinted transparent background color on desktop:
3023
@include media-breakpoint-up(md) {
3124
&.td-navbar-transparent {
3225
$rgba-primary: rgba($primary-darker, 0.65);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsy",
3-
"version": "0.14.0-dev+73-g7cc86a3e",
3+
"version": "0.14.0-dev+74-gca4a67eb",
44
"repository": "github:google/docsy",
55
"homepage": "https://www.docsy.dev",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)