Skip to content

Commit

Permalink
fix(scss): Use consistent spacing instead of tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousLearner committed Feb 20, 2023
1 parent 53a6186 commit 2f4420e
Show file tree
Hide file tree
Showing 22 changed files with 4,065 additions and 1,477 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ indent_size = 2
trim_trailing_whitespace = false

[*.{scss,js}]
indent_style = tab
indent_size = tab
indent_style = space
indent_size = 4


# Customizations for third party libraries
Expand Down
14 changes: 8 additions & 6 deletions djangoproject/scss/_console-tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@
box-sizing: border-box;
}

> input {
>input {

&.c-tab-unix,
&.c-tab-win {
display: none;
}
&:checked + label {

&:checked+label {
color: var(--console-tabs-color);
border: 1px solid #ddd;
border-top: 2px solid var(--console-tabs-border);
border-bottom: 1px solid var(--white-color);
}
}

> label {
>label {
display: inline-block;
padding: 4px 8px;
font-weight: normal;
Expand All @@ -29,7 +31,7 @@
font-family: fontawesome;
}

> section {
>section {
display: none;
text-align: left;

Expand All @@ -38,8 +40,8 @@
}
}

> .c-tab-unix:checked ~ .c-content-unix,
> .c-tab-win:checked ~ .c-content-win {
>.c-tab-unix:checked~.c-content-unix,
>.c-tab-win:checked~.c-content-win {
display: block;
}
}
Loading

0 comments on commit 2f4420e

Please sign in to comment.