Skip to content

Commit

Permalink
Merge pull request #1495 from scireum/feature/jmu/SE-13735-design-sys…
Browse files Browse the repository at this point in the history
…tem-additions

Design System additions
  • Loading branch information
jmuscireum authored Jan 15, 2025
2 parents 3a74ebc + 4d8dadb commit dc14f2b
Show file tree
Hide file tree
Showing 11 changed files with 301 additions and 17 deletions.
20 changes: 18 additions & 2 deletions src/main/resources/assets/design-system/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
padding: 12px 16px;
padding: var(--sci-margin-1_5) var(--sci-margin-2);
display: inline-block;

transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
Expand All @@ -17,7 +17,7 @@
.sci-btn-small {
@extend .sci-btn;

padding: 6px;
padding: var(--sci-margin-1);
}

.sci-btn-outline {
Expand All @@ -42,6 +42,10 @@
background-color: lighten($sirius-primary, 25%) !important;
cursor: default;
}

&.sci-btn-disabled {
pointer-events: none;
}
}

.sci-btn-secondary {
Expand All @@ -59,6 +63,10 @@
background-color: lighten($sirius-gray-dark, 25%) !important;
cursor: default;
}

&.sci-btn-disabled {
pointer-events: none;
}
}

.sci-btn-white {
Expand Down Expand Up @@ -90,6 +98,10 @@
color: lighten($sirius-primary, 25%) !important;
cursor: default;
}

&.sci-btn-disabled {
pointer-events: none;
}
}

.sci-btn-secondary-outline {
Expand All @@ -109,6 +121,10 @@
color: lighten($sirius-gray-dark, 25%) !important;
cursor: default;
}

&.sci-btn-disabled {
pointer-events: none;
}
}

.sci-btn-white-outline {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/design-system/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
min-width: 0;
word-wrap: break-word;
background-clip: border-box;
border: var(--sci-border-width-05) solid rgba(0,0,0,.125);
border: var(--sci-border-width-0_5) solid rgba(0,0,0,.125);
overflow-x: auto;
overflow-y: hidden;
}
Expand Down
31 changes: 31 additions & 0 deletions src/main/resources/assets/design-system/display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
display: grid !important;
}

.sci-d-table-cell {
display: table-cell !important;
}

.sci-d-none {
display: none !important;
}
Expand All @@ -40,6 +44,15 @@
display: block !important;
}

.sci-d-sm-grid {
display: -ms-grid !important;
display: grid !important;
}

.sci-d-sm-table-cell {
display: table-cell !important;
}

.sci-d-sm-none {
display: none !important;
}
Expand All @@ -62,6 +75,15 @@
display: block !important;
}

.sci-d-md-grid {
display: -ms-grid !important;
display: grid !important;
}

.sci-d-md-table-cell {
display: table-cell !important;
}

.sci-d-md-none {
display: none !important;
}
Expand All @@ -84,6 +106,15 @@
display: block !important;
}

.sci-d-lg-grid {
display: -ms-grid !important;
display: grid !important;
}

.sci-d-lg-table-cell {
display: table-cell !important;
}

.sci-d-lg-none {
display: none !important;
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/assets/design-system/flex.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
align-items: stretch;
}

.sci-align-items-baseline {
align-items: baseline;
}

.sci-align-self-start {
align-self: flex-start;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/design-system/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
border-style: solid;
border-radius: var(--sci-border-radius);
border-color: $sirius-gray;
padding: 12px;
font-size: var(sci-font-size-base);
padding: var(--sci-margin-1_5);
font-size: var(--sci-font-size-base);
line-height: 1.5;
}

Expand Down
Loading

0 comments on commit dc14f2b

Please sign in to comment.