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

fix(scss): Use consistent spacing instead of tabs #1281

Merged
Merged
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
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
Loading