Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed May 17, 2023
1 parent 3ac6434 commit 9d347dc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 31 deletions.
3 changes: 1 addition & 2 deletions templates/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "stylelint-config-standard-scss",
"ignoreFiles": [
"**/*.ts",
"**/docfx.scss"
"**/*.ts"
],
"rules": {
"selector-class-pattern": null,
Expand Down
37 changes: 10 additions & 27 deletions templates/modern/src/docfx.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
*/

$enable-important-utilities: false;

$container-max-widths: (
xxl: 1768px
) !default;

@import "bootstrap/scss/bootstrap.scss";
@import "highlight.scss";
@import "mixins";
@import "bootstrap/scss/bootstrap";
@import "highlight";
@import "layout";
@import "nav";
@import "toc";
@import "markdown";
@import "search";
@import "dotnet";

h1,
h2,
Expand Down Expand Up @@ -49,7 +55,7 @@ article {
max-height: 200px;
}

@media (max-width: 768px) {
@media (width <= 768px) {
#mobile-indicator {
display: block;
}
Expand All @@ -67,26 +73,3 @@ article {
display: none;
}
}

@mixin adjust-icon {
font-family: bootstrap-icons;
position: relative;
margin-right: 0.5em;
top: 0.2em;
font-size: 1.25em;
font-weight: normal;
}

@mixin underline-on-hover {
text-decoration: none;
&:hover, &:focus {
text-decoration: underline;
}
}

@import "layout.scss";
@import "nav.scss";
@import "toc.scss";
@import "markdown.scss";
@import "search.scss";
@import "dotnet.scss";
5 changes: 3 additions & 2 deletions templates/modern/src/highlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*/

@import "highlight.js/scss/vs.scss";
@import "highlight.js/scss/vs";

@include color-mode(dark) {
@import "highlight.js/scss/vs2015.scss";
/* stylelint-disable-next-line no-invalid-position-at-import-rule */
@import "highlight.js/scss/vs2015";
}

.hljs {
Expand Down
22 changes: 22 additions & 0 deletions templates/modern/src/mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/

@mixin adjust-icon {
font-family: bootstrap-icons;
position: relative;
margin-right: 0.5em;
top: 0.2em;
font-size: 1.25em;
font-weight: normal;
}

@mixin underline-on-hover {
text-decoration: none;

&:hover, &:focus {
text-decoration: underline;
}
}

0 comments on commit 9d347dc

Please sign in to comment.