Skip to content

Migrate remaining styles to use sass nesting #4024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/resources/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dev_dependencies:
dart_style: ^3.0.0
lints: ^5.0.0
matcher: ^0.12.15
sass: ^1.85.1
sass: ^1.86.0
test: ^1.24.2
test_descriptor: ^2.0.1
test_process: ^2.0.3
Expand Down
2 changes: 1 addition & 1 deletion web/sig.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
77FD7967080D3865482753638F7833E7
76460F3B17D947F654BCE4B231EBE30F
75 changes: 37 additions & 38 deletions web/styles/_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,59 +6,58 @@
list-style: none;
padding: 0;
margin: 0;
}

.gt-separated li {
display: inline-block;
}

.gt-separated li:before {
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%23DDDDDD' d='M6.7,4L5.7,4.9L8.8,8l-3.1,3.1L6.7,12l4-4L6.7,4z'/></svg>");
background-position: center;
content: "\00a0";
margin: 0 6px 0 4px;
padding: 0 3px 0 0;
}

.gt-separated.dark li:before {
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%23727272' d='M6.7,4L5.7,4.9L8.8,8l-3.1,3.1L6.7,12l4-4L6.7,4z'/></svg>");
}
&.dark {
li:before {
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%23727272' d='M6.7,4L5.7,4.9L8.8,8l-3.1,3.1L6.7,12l4-4L6.7,4z'/></svg>");
}
}

.gt-separated li:first-child:before {
background-image: none;
content: "";
margin: 0;
padding: 0;
li {
display: inline-block;

&:before {
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%23DDDDDD' d='M6.7,4L5.7,4.9L8.8,8l-3.1,3.1L6.7,12l4-4L6.7,4z'/></svg>");
background-position: center;
content: "\00a0";
margin: 0 6px 0 4px;
padding: 0 3px 0 0;
}

&:first-child:before {
background-image: none;
content: "";
margin: 0;
padding: 0;
}
}
}

.breadcrumbs {
padding: 0;
margin: 8px 0 8px 0;
white-space: nowrap;
line-height: 1;
}

@media screen and (min-width: 840px) {
nav ol.breadcrumbs {
float: left;
.gt-separated .dark .hidden-xs li + li:before {
color: var(--main-h-text);
}
}

@media screen and (max-width: 840px) {
.breadcrumbs {
li a {
color: var(--main-hyperlinks-color);
}

@media screen and (max-width: 840px) {
margin: 0 0 24px 0;
overflow-x: hidden;
}
}

.breadcrumbs .gt-separated .dark .hidden-xs li + li:before {
color: var(--main-h-text);
}

ol.breadcrumbs li a {
color: var(--main-hyperlinks-color);
}
.self-crumb {
color: var(--main-h-text);
}

.self-crumb {
color: var(--main-h-text);
.self-name {
color: #555;
display: none;
}
}
60 changes: 30 additions & 30 deletions web/styles/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,40 +27,40 @@ code {
border-radius: 3px;
}

// Syntax highlighting, for highlightjs rendered code:

.hljs-string, .hljs-doctag {
color: var(--main-string-color);
}

.hljs-number, .hljs-literal, .hljs-variable, .hljs-template-variable, .hljs-tag .hljs-attr {
color: var(--main-var-color);
}

.hljs-comment, .hljs-quote {
color: var(--main-comment-color);
font-style: italic;
}

.hljs-title, .hljs-section, .hljs-selector-id {
color: var(--main-section-color);
font-weight: bold;
}

.hljs-tag, .hljs-name, .hljs-attribute {
color: var(--main-tag-color);
font-weight: normal;
}

.hljs-keyword, .hljs-selector-tag, .hljs-subst {
color: var(--main-keyword-color);
font-weight: bold;
}

// Syntax highlighting, for highlightjs rendered code.
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: var(--main-text-color);
background: var(--main-code-bg);

.hljs-string, .hljs-doctag {
color: var(--main-string-color);
}

.hljs-number, .hljs-literal, .hljs-variable,
.hljs-template-variable, .hljs-tag .hljs-attr {
color: var(--main-var-color);
}

.hljs-comment, .hljs-quote {
color: var(--main-comment-color);
font-style: italic;
}

.hljs-title, .hljs-section, .hljs-selector-id {
color: var(--main-section-color);
font-weight: bold;
}

.hljs-tag, .hljs-name, .hljs-attribute {
color: var(--main-tag-color);
font-weight: normal;
}

.hljs-keyword, .hljs-selector-tag, .hljs-subst {
color: var(--main-keyword-color);
font-weight: bold;
}
}
4 changes: 4 additions & 0 deletions web/styles/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ header {
padding-right: 30px;
background-color: var(--main-header-color);

@media (max-width: 840px) {
padding-left: 0;
}

ol {
list-style: none;
margin: 0;
Expand Down
Loading