diff --git a/src/app/core/scss/partials/_angular-material-fix.scss b/src/app/core/scss/partials/_angular-material-fix.scss index 5358bd1f..3214df95 100644 --- a/src/app/core/scss/partials/_angular-material-fix.scss +++ b/src/app/core/scss/partials/_angular-material-fix.scss @@ -20,8 +20,8 @@ } .mat-pseudo-checkbox-checked:after { - width: 14px; - height: 7px; + width: 14px !important; + height: 7px !important; } // Fix: "Input underlines has wrong color opacity value" diff --git a/src/app/core/scss/partials/_cards.scss b/src/app/core/scss/partials/_cards.scss index 9b38e690..a7be8cc2 100644 --- a/src/app/core/scss/partials/_cards.scss +++ b/src/app/core/scss/partials/_cards.scss @@ -9,145 +9,47 @@ min-width: 0; } - .card-rich-media { - position: relative; + // Buttons + .mat-button { + min-width: 0 !important; + padding: 0 8px !important; + } - .card-title { - position: absolute; - right: 16px; - bottom: 16px; - left: 16px; - font-size: 20px; - color: white; - } - } - - .card-media-header { - display: flex; - padding: 16px; - align-items: center; - - &.medium { - align-items: flex-start; - - .card-rich-media { - width: 120px; - height: 120px; - } - } - - &.large { - align-items: flex-start; - - .card-rich-media { - width: 160px; - height: 160px; - } - } - - .card-primary-title { - padding: 0 16px 0 0; - flex: 1; - } - - .card-rich-media { - width: 80px; - height: 80px; - } - - + div { - padding-top: 0; - } - } - - .card-avatar-header { - display: flex; - padding: 16px; - align-items: center; - - .card-avatar { - width: 40px; - height: 40px; - border-radius: 100%; - margin-right: 16px; - } - - .card-avatar-title { - - .card-title { - font-size: 14px; - font-weight: bold; - } - - .card-subtitle { - font-size: 13px; - font-weight: bold; - } - } - } - - .card-primary-title { - padding: 16px; - - .card-title { - font-size: 24px; - } - - .card-subtitle { - font-size: 14px; - } - - + div { - padding-top: 0; - } - } - - .card-supporting-text { - padding: 16px; - font-size: 14px; - line-height: 1.75; - - + div { - padding-top: 0; - } - } - - .card-actions { - display: flex; - padding: 8px; - - &.icon-buttons { - padding: 0 8px; - } - - &.align-center { - justify-content: center; - } - - &.align-right { - justify-content: flex-end; - } - - .mat-button { - min-width: 0 !important; - padding: 0 8px !important; - } - - .card-expander { - margin-left: auto; - } - - + div { - padding-top: 0; + // Button Toggle Group + .mat-button-toggle-group, + .mat-button-toggle-standalone { + box-shadow: none !important; + } + + // Tabs + .mat-tab-labels { + justify-content: center; + } + + .mat-tab-label { + min-width: 0 !important; + } + + // Divider + .card-divider { + border-top: 1px solid rgba(0, 0, 0, 0.12); + margin: 16px; + + &.light { + border-top-color: rgba(255, 255, 255, 0.12); + } + + &.full-width { + margin: 0; } } + // Expand Area .card-expand-area { overflow: hidden; - .card-expanded-supporting-text { + .card-expanded-content { padding: 8px 16px 16px 16px; - font-size: 14px; line-height: 1.75; } } diff --git a/src/app/core/scss/partials/_helpers.scss b/src/app/core/scss/partials/_helpers.scss index 6d261285..d4cea445 100644 --- a/src/app/core/scss/partials/_helpers.scss +++ b/src/app/core/scss/partials/_helpers.scss @@ -1,9 +1,59 @@ +// ###################### +// POSITION HELPERS +// ###################### +@each $breakpoint in map-keys($grid-breakpoints) { + + @include media-breakpoint-up($breakpoint) { + + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + + .position#{$infix}-relative { + position: relative; + } + + .position#{$infix}-absolute { + position: absolute; + } + + .position#{$infix}-static { + position: static; + } + } +} + +// #################################### +// ABSOLUTE POSITION ALIGNMENT HELPERS +// #################################### +@each $breakpoint in map-keys($grid-breakpoints) { + + @include media-breakpoint-up($breakpoint) { + + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + + .align#{$infix}-top { + top: 0; + } + + .align#{$infix}-right { + right: 0; + } + + .align#{$infix}-bottom { + bottom: 0; + } + + .align#{$infix}-left { + left: 0; + } + } +} + // ###################### // SIZE HELPERS // ###################### @each $prop, $abbrev in (height: h, width: w) { - @for $index from 0 through 128 { + @for $index from 0 through 180 { $size: $index * 4; $length: #{$size}px; @@ -28,7 +78,6 @@ // ###################### // SPACING HELPERS // ###################### - @each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { @@ -83,47 +132,45 @@ } @if ($abbrev == m) { - @for $index from 0 through 64 { - $size: $index * 4; - $length: #{$size}px; - // Some special margin utils for flex alignments - .m#{$infix}-auto { - margin: auto !important; - } + // Some special margin utils for flex alignments + .m#{$infix}-auto { + margin: auto !important; + } - .mt#{$infix}-auto { - margin-top: auto !important; - } + .mt#{$infix}-auto { + margin-top: auto !important; + } - .mr#{$infix}-auto { - margin-right: auto !important; - } + .mr#{$infix}-auto { + margin-right: auto !important; + } - .mb#{$infix}-auto { - margin-bottom: auto !important; - } + .mb#{$infix}-auto { + margin-bottom: auto !important; + } - .ml#{$infix}-auto { - margin-left: auto !important; - } + .ml#{$infix}-auto { + margin-left: auto !important; + } - .mx#{$infix}-auto { - margin-right: auto !important; - margin-left: auto !important; - } + .mx#{$infix}-auto { + margin-right: auto !important; + margin-left: auto !important; + } - .my#{$infix}-auto { - margin-top: auto !important; - margin-bottom: auto !important; - } + .my#{$infix}-auto { + margin-top: auto !important; + margin-bottom: auto !important; } } } } } -// Border helpers +// ###################### +// BORDER HELPERS +// ###################### $border-style: 1px solid rgba(0, 0, 0, 0.12); .border, @@ -162,3 +209,10 @@ $border-style: 1px solid rgba(0, 0, 0, 0.12); border-top: $border-style; border-bottom: $border-style; } + +// ###################### +// BORDER RADIUS HELPERS +// ###################### +.border-radius-100 { + border-radius: 100%; +} \ No newline at end of file diff --git a/src/app/core/scss/partials/_material.scss b/src/app/core/scss/partials/_material.scss index fb6c488e..75c1b02c 100644 --- a/src/app/core/scss/partials/_material.scss +++ b/src/app/core/scss/partials/_material.scss @@ -411,7 +411,6 @@ table { color: rgba(0, 0, 0, 0.54); border-bottom: 1px solid rgba(0, 0, 0, 0.12); white-space: nowrap; - min-width: 120px; &:first-child { padding-left: 24px; diff --git a/src/app/core/scss/partials/_typography.scss b/src/app/core/scss/partials/_typography.scss index 0d81ce8a..2e779328 100644 --- a/src/app/core/scss/partials/_typography.scss +++ b/src/app/core/scss/partials/_typography.scss @@ -229,6 +229,22 @@ strong { } } +.line-height-1 { + line-height: 1; +} + +.line-height-1\.25 { + line-height: 1.25; +} + +.line-height-1\.50 { + line-height: 1.5; +} + +.line-height-1\.75 { + line-height: 1.75; +} + // Boxed text .text-boxed { border-radius: 2px; diff --git a/src/app/main/content/components/cards/cards.component.html b/src/app/main/content/components/cards/cards.component.html index 08e092c1..0d62a6e0 100644 --- a/src/app/main/content/components/cards/cards.component.html +++ b/src/app/main/content/components/cards/cards.component.html @@ -1,7 +1,8 @@