Skip to content

Commit

Permalink
Fix sass deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Aug 29, 2024
1 parent cc80122 commit e73d312
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 47 deletions.
6 changes: 3 additions & 3 deletions app/assets/stylesheets/components.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@
}

.col-form-label {
text-align: right;
font-weight: bold;

@include media-breakpoint-down(sm) {
text-align: left;
}

text-align: right;
font-weight: bold;
}

h1 small,
Expand Down
43 changes: 21 additions & 22 deletions app/assets/stylesheets/components/action-card.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,8 @@
border-color 145ms ease,
background-color 145ms ease;
box-shadow: none;

.card-subtitle {
margin-bottom: 0.125rem;
height: 48px;

h4 {
width: 100%;
line-height: 20px;
min-height: 24px;

small {
font-size: 65%;
}
}

.card-title-icon {
margin-right: 1rem;
}
}
background: var(--clickable-card-color);
color: var(--on-clickable-card-color);

--clickable-card-color: var(--d-primary);
--on-clickable-card-color: var(--d-on-primary);
Expand All @@ -40,9 +23,6 @@
--on-clickable-card-color: var(--d-on-success);
}

background: var(--clickable-card-color);
color: var(--on-clickable-card-color);

small {
color: var(--on-clickable-card-color);
}
Expand Down Expand Up @@ -72,4 +52,23 @@
opacity: 0.38;
pointer-events: none;
}

.card-subtitle {
margin-bottom: 0.125rem;
height: 48px;

h4 {
width: 100%;
line-height: 20px;
min-height: 24px;

small {
font-size: 65%;
}
}

.card-title-icon {
margin-right: 1rem;
}
}
}
12 changes: 6 additions & 6 deletions app/assets/stylesheets/components/btn.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
border-color 145ms ease,
background-color 145ms ease;

// define the default button colors
// makes it easier to combine with other classes such as d-btn-danger, d-btn-success, etc.
--d-btn-color: var(--d-primary);
--d-btn-color-rgb: var(--d-primary-rgb);
--d-on-btn-color: var(--d-on-primary);

&.with-icon {
padding-left: 16px;
padding-right: 24px;
Expand Down Expand Up @@ -50,12 +56,6 @@
pointer-events: auto;
cursor: default;
}

// define the default button colors
// makes it easier to combine with other classes such as d-btn-danger, d-btn-success, etc.
--d-btn-color: var(--d-primary);
--d-btn-color-rgb: var(--d-primary-rgb);
--d-on-btn-color: var(--d-on-primary);
}

.btn.btn-filled,
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/components/code_listing.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@
/* stylelint-enable selector-class-pattern */

.annotation-meta-icon {
margin-left: 4px;

&::before {
vertical-align: bottom;
}

margin-left: 4px;
}

.annotation-warning::before {
Expand Down
7 changes: 3 additions & 4 deletions app/assets/stylesheets/components/stepper.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@
@include shadow-z2;

background-color: var(--d-surface);
border: none;
border-radius: var(--d-border-radius-base);
padding: 0;

@include media-breakpoint-up(sm) {
margin-left: 45px;
}

border: none;
border-radius: var(--d-border-radius-base);
padding: 0;

&.panel-body-transparent {
background-color: transparent;

Expand Down
15 changes: 7 additions & 8 deletions app/assets/stylesheets/layout/navbar.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,17 @@
}

.dodona-navbar-toggle {
@include media-breakpoint-up(md) {
display: none;
}

position: absolute;
top: 0;
right: 10px;
border: none;
background: none;
color: var(--d-on-primary);

@include media-breakpoint-up(md) {
display: none;
}

i {
line-height: var(--d-navbar-height);
}
Expand Down Expand Up @@ -363,19 +363,18 @@
}

.dropdown-title {
display: inline-block;
transform: translateY(-0.5em);

@include media-breakpoint-up(md) {
@include media-breakpoint-down(lg) {
display: none;
}
}

display: inline-block;

@include media-breakpoint-down(md) {
padding-left: 25px;
}

transform: translateY(-0.5em);
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/models/questions.css.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.question-table {
table-layout: fixed;

col.actions {
width: 50px;
}
Expand All @@ -22,8 +24,6 @@
background-color: var(--d-table-hover-bg);
}
}

table-layout: fixed;
}

@include media-breakpoint-up(md) {
Expand Down

0 comments on commit e73d312

Please sign in to comment.