1
0
mirror of https://github.com/bitwarden/help synced 2025-12-06 00:03:30 +00:00
Files
help/_scss/_sidebar.scss
fred_the_tech_writer 906e2ca0dd Promote to Master (#748)
* initial commit

* adding quotes for the array error

* Create Gemfile

* Create Gemfile.lock

* add .nvmrc and .node-version

* removed /article from URL

* update links to work with netlify

* more fixed links

* link fixes

* update bad links

* Update netlify.toml

toml test for redirects

* article redirect

* link fixes

* Update index.html

* Update netlify.toml

* Update _config.yml

* Update netlify.toml

* Update netlify.toml

* Update netlify.toml

* Update netlify.toml

* Update netlify.toml

* add article back into URL for launch

* Update netlify.toml

* Update netlify.toml

* add order to categories front matter

* Update netlify.toml

* update

* sidemenu update

* Revert "sidemenu update"

This reverts commit 5441c3d35c.

* update order prop

* Navbar updates per Gary and compiler warnings

* font/style tweaks

* Update sidebar.html

* Stage Release Documentation (#739)

* initial drafts

* rewrite Custom Fields article to prioritize new context-menu option & better organize ancillary information

* edit

* edit

* Custom Field Context Menu & CAPTCHA item in release notes

* SSO relink event

* update rn

* small edits

* improve release notes titles

* fix side menu

* Edits courtest of mportune!

* update order

* link fixes

* link cleanup

* image updates and a link

* fix trailing slash

Co-authored-by: DanHillesheim <79476558+DanHillesheim@users.noreply.github.com>
2021-09-21 13:21:11 -04:00

129 lines
2.4 KiB
SCSS

.bd-sidebar {
order: 0;
background-color: $light;
border-bottom: 1px solid rgba(0, 0, 0, .1);
@include media-breakpoint-up(md) {
@supports (position: sticky) {
position: sticky;
top: 4rem;
z-index: 1000;
height: subtract(100vh, 4rem);
}
border-right: 1px solid rgba(0, 0, 0, .1);
}
@include media-breakpoint-up(xl) {
flex: 0 1 320px;
}
}
.bd-links {
margin-right: -15px;
margin-left: -15px;
@include media-breakpoint-up(md) {
display: block !important;
padding-top: 1rem;
padding-bottom: 1rem;
@supports (position: sticky) {
max-height: subtract(100vh, 4rem);
overflow-y: auto;
}
}
}
.bd-sidenav {
li {
width: 100%;
}
}
.bd-toc-link {
display: flex;
align-items: center;
padding: .25rem 1.5rem;
font-family: "Roboto", sans-serif;
font-weight: 500;
color: rgba(0, 0, 0, .65);
transition: all 0.5s ease;
&:hover {
color: rgba(0, 0, 0, .85);
text-decoration: none;
}
&[aria-expanded="true"] {
.fa-chevron-down {
transform: rotate(180deg);
}
}
}
.bd-toc-item {
border-top: 1px solid $border-color;
padding: 0.5rem 0;
&:first-child {
border-top: 0;
}
&.active {
padding-bottom: 1.5rem;
&:not(:first-child) {
padding-top: 1rem;
}
> .bd-toc-link {
color: rgba(0, 0, 0, .85);
&:hover {
background-color: transparent;
}
}
}
}
.search-header {
background-color: $light;
padding: 0.5rem;
.btn {
border: solid;
border-color: #ccd2d7;
border-width: thin;
background-color: #fff;
&:hover {
background-color: #F2F2F2;
}
}
}
.bd-sidebar .nav {
> li > a {
border-left: 2px solid transparent;
display: block;
margin: .25rem 1.5rem;
padding-left: 1rem;
@include font-size(90%);
color: rgba(0, 0, 0, .65);
&:hover {
background-color: transparent;
color: $primary;
text-decoration: none;
}
}
> .active > a,
> .active:hover > a {
font-weight: 600;
color: $primary;
background-color: transparent;
border-left-color: $primary;
}
}