Skip to content

Commit

Permalink
Add comments explaining unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Feb 29, 2024
1 parent 048d726 commit bdc4ed0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
3 changes: 3 additions & 0 deletions oioioi/contests/static/common/contests.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ $list-subheader-bgcolor: #eee !default;

.form-list-unstyled {
ul {
// Should be @extend .list-unstyled
// but it requires whole scss/style
// which increases bundle size dramatically
padding-left: 0;
list-style: none;
}
Expand Down
24 changes: 19 additions & 5 deletions oioioi/programs/static/common/programs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
}

.table-report {

// In table-report with table-responsive firefox makes new line for
// test-actions used with float-right on sm display.
// This is a workaround for this.
.fix-float-right {
white-space: normal !important;
}

.group-score {
vertical-align: middle;
}
Expand All @@ -38,21 +40,25 @@
}

.syntax-highlighttable {

// Collapse the border between line numbers and code.
// (...) (...) -> (...|...)
td.linenos {
& > .linenodiv {
&>.linenodiv {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
}

padding-right: 0;
}

td.code {
& > .syntax-highlight {
&>.syntax-highlight {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}

padding-left: 0
}

Expand All @@ -73,8 +79,12 @@
margin-bottom: 0;
}

.linenodiv, .syntax-highlight {
.linenodiv,
.syntax-highlight {
@extend .card;
// Should be @extend .bg-light
// but it requires whole bootstrap to be included
// which increases bundle size dramatically
background-color: #f8f9fa !important;
padding: ($spacer * 0.5);
}
Expand All @@ -85,9 +95,13 @@
margin-bottom: 0;
}

&.line-numbers, &.code {
&.line-numbers,
&.code {
@extend .card;
// Should be @extend .bg-light
// but it requires whole bootstrap to be included
// which increases bundle size dramatically
background-color: #f8f9fa !important;
padding: ($spacer * 0.5);
}
}
}

0 comments on commit bdc4ed0

Please sign in to comment.