forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize SCSS without changing any of the properties or values (git…
…hub#18963) * Reorganize SCSS without changing any of the properties or values * Mis-moved a few files * Split up "other"
- Loading branch information
Showing
20 changed files
with
374 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Notes, tips, warning, and danger styles | ||
------------------------------------------------------------------------------*/ | ||
|
||
.note, | ||
.tip, | ||
.warning, | ||
.danger { | ||
// remove extra space under lists inside of notes | ||
ul, | ||
ol { | ||
margin-bottom: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
/* Breadcrumbs | ||
------------------------------------------------------------------------------*/ | ||
|
||
.breadcrumbs-wrapper { | ||
@include breakpoint(xl) { | ||
height: 39px; | ||
} | ||
} | ||
|
||
.breadcrumbs a:not(:last-child)::after, | ||
.breadcrumbs span:not(:last-child)::after { | ||
content: "/"; | ||
color: var(--color-auto-gray-4); | ||
padding-right: $spacer-1; | ||
padding-left: $spacer-2; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Arrow links | ||
.Bump-link-symbol { | ||
display: inline-block; | ||
transition: $transition-time / 2; | ||
transform: translateX(0); | ||
} | ||
|
||
.Bump-link:hover .Bump-link-symbol { | ||
transform: translateX(3px); | ||
} | ||
|
||
.Bump-link--hover .Bump-link-symbol { | ||
color: inherit; | ||
opacity: 0; | ||
transition: $transition-time / 2; | ||
transform: translateX(0); | ||
} | ||
|
||
.Bump-link--hover:hover .Bump-link-symbol { | ||
opacity: 1; | ||
transform: translateX(3px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* Code style overrides | ||
------------------------------------------------------------------------------*/ | ||
|
||
.markdown-body .highlight pre, | ||
.markdown-body pre { | ||
margin-top: 10px; | ||
} | ||
|
||
.height-constrained-code-block pre { | ||
max-height: 500px; | ||
overflow: auto; | ||
} | ||
|
||
.markdown-body .code-extra { | ||
margin-top: $spacer-4; | ||
|
||
pre { | ||
margin-top: 0 !important; | ||
border-top-left-radius: 0 !important; | ||
border-top-right-radius: 0 !important; | ||
border-left: 1px var(--color-auto-gray-2) solid !important; | ||
border-bottom: 1px var(--color-auto-gray-2) solid !important; | ||
border-right: 1px var(--color-auto-gray-2) solid !important; | ||
} | ||
} | ||
|
||
/* code styles */ | ||
pre .redbox { | ||
border: 2px solid var(--color-auto-red-5); | ||
padding: 2px; | ||
border-radius: 2px; | ||
margin-right: 2px; | ||
} | ||
|
||
pre .greenbox { | ||
border: 2px solid var(--color-auto-green-5); | ||
padding: 2px; | ||
border-radius: 2px; | ||
margin-right: 2px; | ||
} | ||
|
||
pre .bluebox { | ||
border: 2px solid var(--color-auto-blue-5); | ||
padding: 2px; | ||
border-radius: 2px; | ||
margin-right: 2px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* Deprecation banner | ||
------------------------------------------------------------------------------*/ | ||
.deprecation-banner { | ||
& + .alert { | ||
margin-top: 5px; | ||
} | ||
|
||
& > *:first-child { | ||
margin-top: 0; | ||
} | ||
|
||
& > *:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
b, | ||
strong { | ||
font-weight: bold; | ||
} | ||
|
||
p { | ||
margin: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.extended-markdown p { | ||
margin: 0; | ||
} | ||
|
||
.extended-markdown p:not(:first-child) { | ||
margin-top: 15px; | ||
} | ||
|
||
.extended-markdown.note pre { | ||
background: none; | ||
padding: 10px 10px 10px 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.extended-markdown.note pre code { | ||
color: var(--color-text-primary); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Getting Started and Popular Articles sections in article layout */ | ||
.markdown-body div.featured-links { | ||
padding-bottom: 30px; | ||
} | ||
|
||
.markdown-body div.featured-links-heading { | ||
padding-top: 24px; | ||
} | ||
|
||
.markdown-body div.featured-links p.link-with-intro-intro { | ||
margin-bottom: 5px; | ||
} | ||
|
||
.markdown-body div.featured-links h4.link-with-intro-title { | ||
margin-top: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
h1, | ||
h2, | ||
h3, | ||
h4 { | ||
a { | ||
color: var(--color-auto-gray-9); | ||
} | ||
} | ||
|
||
// all h3 headers that are links should be blue-500 | ||
// except those on each product's toc | ||
h3 a { | ||
color: var(--color-auto-blue-5); | ||
} | ||
|
||
.markdown-body { | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-family: $font-mktg; | ||
font-weight: $font-weight-semibold; | ||
padding-top: $spacer-3; | ||
} | ||
} | ||
|
||
// needs specificity to override | ||
.markdown-body .lead-mktg p { | ||
color: var(--color-auto-gray-9); | ||
} | ||
|
||
.product-callout p, | ||
.contributor-callout p { | ||
margin: 0; | ||
} |
Oops, something went wrong.