Skip to content

Commit c6073f8

Browse files
committed
Remove now unneeded styles
1 parent f755e21 commit c6073f8

File tree

6 files changed

+7
-105
lines changed

6 files changed

+7
-105
lines changed

src/_sass/_site.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ main .content {
345345

346346
.content {
347347
position: relative;
348-
padding: $content-padding;
348+
padding: 2rem;
349349
}
350350

351351
.button {
@@ -446,7 +446,7 @@ main .content {
446446
.container {
447447
position: relative;
448448
max-width: 100%;
449-
width: $live-content-width;
449+
width: 1280px;
450450
margin: 0 auto;
451451
}
452452

src/_sass/components/_header.scss

-82
Original file line numberDiff line numberDiff line change
@@ -60,88 +60,6 @@
6060
}
6161
}
6262

63-
.navbar-collapse {
64-
bottom: 0;
65-
height: auto !important; // override bootstrap's height calculation
66-
left: 0;
67-
position: fixed;
68-
right: 0;
69-
top: 0;
70-
transition-duration: 0s;
71-
z-index: $site-z-header;
72-
73-
@include bootstrap.media-breakpoint-down(sm) {
74-
pointer-events: none;
75-
76-
&:not(.show) {
77-
display: block;
78-
}
79-
80-
&.show {
81-
pointer-events: auto;
82-
transition-duration: 0.35s;
83-
84-
.site-header__sheet {
85-
transform: translateX(0);
86-
}
87-
88-
.site-header__sheet-bg {
89-
opacity: 1;
90-
}
91-
}
92-
93-
.navbar-nav {
94-
margin-bottom: bootstrap.bs-spacer(5);
95-
overflow-y: auto;
96-
overscroll-behavior: contain;
97-
}
98-
}
99-
100-
@include bootstrap.media-breakpoint-up(md) {
101-
position: static;
102-
}
103-
}
104-
105-
&__sheet {
106-
display: flex;
107-
108-
@include bootstrap.media-breakpoint-down(sm) {
109-
background: $site-color-white;
110-
bottom: 0;
111-
flex-direction: column;
112-
left: 0;
113-
position: absolute;
114-
right: 60px;
115-
top: 0;
116-
transform: translateX(-100%);
117-
transition: transform 0.35s ease-in-out;
118-
119-
> * {
120-
margin: 0 $site-nav-mobile-side-padding;
121-
}
122-
}
123-
124-
@include bootstrap.media-breakpoint-up(md) {
125-
align-items: center;
126-
flex-direction: row;
127-
}
128-
}
129-
130-
&__sheet-bg {
131-
cursor: pointer; // needed for iOS to recognize the div as clickable
132-
133-
@include bootstrap.media-breakpoint-down(sm) {
134-
background: rgba(0, 0, 0, .4);
135-
bottom: 0;
136-
left: 0;
137-
opacity: 0;
138-
position: absolute;
139-
right: 0;
140-
top: 0;
141-
transition: opacity 0.35s ease-in-out;
142-
}
143-
}
144-
14563
&__cta {
14664
margin-left: bootstrap.bs-spacer(2);
14765
padding: bootstrap.bs-spacer(2) bootstrap.bs-spacer(4) !important;

src/_sass/components/_search.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
display: none;
2121
flex-shrink: 0;
2222
margin: 0;
23-
padding: 0 $site-nav-mobile-side-padding;
23+
padding: 0 1.25rem;
2424
order: -1;
2525

2626
// Override of _header.scss

src/_sass/components/_sidebar.scss

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use '../core/variables' as *;
2-
@use '../core/utils';
2+
@use '../core/mixins';
33

44
$sidenav-divider-color: #e7e8ed;
55

@@ -9,8 +9,7 @@ $sidenav-divider-color: #e7e8ed;
99
width: 15rem;
1010
min-width: 15rem;
1111
height: calc(100vh - $site-header-height);
12-
padding: 0.75rem;
13-
padding-bottom: 2.25rem;
12+
padding: 0.75rem 0.75rem 2.25rem;
1413
position: sticky;
1514
top: 0;
1615
scrollbar-width: thin;
@@ -102,11 +101,11 @@ $sidenav-divider-color: #e7e8ed;
102101
}
103102

104103
&:hover {
105-
@include utils.interaction-style(3%);
104+
@include mixins.interaction-style(3%);
106105
}
107106

108107
&:active {
109-
@include utils.interaction-style(5%);
108+
@include mixins.interaction-style(5%);
110109
}
111110

112111
&:not(.collapsed) {

src/_sass/core/_utils.scss

-3
This file was deleted.

src/_sass/core/_variables.scss

-12
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ $site-color-primary: $brand-primary;
7272
// Sidenav, toc, and footer
7373
$font-size-small: 14px;
7474

75-
// Spacing
76-
$live-content-width: 1280px;
77-
$content-padding: 32px;
78-
7975
// Fonts
8076
$site-font-family-gsans: 'Google Sans', 'Roboto', sans-serif;
8177
$site-font-family-gsans-display: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
@@ -93,15 +89,7 @@ $font-family-monospace: $site-font-family-monospace;
9389

9490
// Layout
9591
$site-header-height: 3.25rem;
96-
$site-header-with-banner-height: 98px; // 50 + 48
97-
$site-header-with-obsolete-height: 131px; // 50 + 81
98-
$site-header-with-banner-obsolete-height: 179px; // 50 + 81 + 48
99-
$site-footer-md-default-height: 140px;
10092
$site-content-top-padding: 2rem;
101-
$site-content-max-width: 960px;
102-
$site-sidebar-top-padding: 24px;
103-
$site-sidebar-side-padding: 20px;
104-
$site-nav-mobile-side-padding: 20px;
10593
$site-snackbar-padding: 20px;
10694
$site-spacer: 1rem;
10795

0 commit comments

Comments
 (0)