Skip to content
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

Utilize sass's support for nesting #3942

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
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
3,585 changes: 1,703 additions & 1,882 deletions lib/resources/docs.dart.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions lib/resources/docs.dart.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/resources/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/sig.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
E8ACF6F50B82736C814C1F0BDE7849EE
FF06C1F54B90644DAA9CA63462604EAE
2 changes: 0 additions & 2 deletions web/styles/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ body {
display: flex;
flex-direction: column;
-webkit-overflow-scrolling: touch;
}

body {
-webkit-text-size-adjust: 100%;
overflow-x: hidden;
font-family: Roboto, sans-serif;
Expand Down
82 changes: 41 additions & 41 deletions web/styles/_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,64 @@
list-style: none;
padding: 0;
margin: 0;
}

.gt-separated li {
display: inline-block;
}
&.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: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;
}
li {
display: inline-block;

.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>");
}
&: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 li:first-child:before {
background-image: none;
content: "";
margin: 0;
padding: 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 {
margin: 0 0 24px 0;
overflow-x: hidden;
li a {
color: var(--main-hyperlinks-color);
}
}

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

ol.breadcrumbs li a {
color: var(--main-hyperlinks-color);
}
@media screen and (max-width: 840px) {
margin: 0 0 24px 0;
overflow-x: hidden;
}

.self-crumb {
color: var(--main-h-text);
}
.self-crumb {
color: var(--main-h-text);
}

.self-name {
color: #555;
display: none;
.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;
}
}
48 changes: 19 additions & 29 deletions web/styles/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ h1 {
margin-top: 0;
margin-bottom: 0.67em;

&.title {
overflow: hidden;
text-overflow: ellipsis;
}

@media(max-width: 840px) {
font-size: 24px;
}
Expand All @@ -70,35 +75,20 @@ p {

a {
color: var(--main-hyperlinks-color);

&:hover {
color: #13B9FD;
}
}

a:hover {
color: #13B9FD;
button {
padding: 0;
}

.fixed {
white-space: pre;
}

header a,
header p,
header li {
color: #0175C2;
}

header a:hover {
color: #0175C2;
}

header h1 .kind {
color: #555;
}

header h1 {
font-weight: 400;
margin-bottom: 16px;
}

dt {
font-weight: normal;
}
Expand All @@ -107,16 +97,16 @@ dd {
color: var(--main-text-color);
margin-bottom: 1em;
margin-left: 0;
}

dd.callable, dd.constant, dd.property {
margin-bottom: 24px;
}
&.callable, &.constant, &.property {
margin-bottom: 24px;
}

dd p {
overflow-x: hidden;
text-overflow: ellipsis;
margin-bottom: 0;
p {
overflow-x: hidden;
text-overflow: ellipsis;
margin-bottom: 0;
}
}

table {
Expand Down
28 changes: 13 additions & 15 deletions web/styles/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@ footer {
flex: 0 0 16px;
text-align: center;
padding: 16px 20px;
}

footer {
color: #fff;
background-color: var(--main-footer-background);
width: 100%;
}

footer p {
margin: 0;
}
p {
margin: 0;
}

footer .no-break {
white-space: nowrap;
}
.no-break {
white-space: nowrap;
}

footer .container {
padding-left: 0;
padding-right: 0;
}
.container {
padding-left: 0;
padding-right: 0;
}

footer a, footer a:hover {
color: #fff;
a, a:hover {
color: #fff;
}
}
Loading
Loading