245 lines
4.3 KiB
SCSS
Raw Normal View History

// COLOR PALETTE
// gray
$color-gray: #4e4e4e;
$color-gray-light-2: scale-color($color-gray, $lightness: +90%);
$color-gray-light-1: scale-color($color-gray, $lightness: +70%);
$color-gray-light: $color-gray-light-1;
$color-gray-dark: scale-color($color-gray, $lightness: -30%);
// primary (UVA "Jefferson Blue")
$color-primary: #232D4B;
$color-primary-light: scale-color($color-primary, $lightness: +30%);
$color-primary-dark: scale-color($color-primary, $lightness: -30%);
// accent (UVA "Rotunda Orange")
$color-accent: #E57200;
$color-accent-light: scale-color($color-accent, $lightness: +30%);
$color-accent-dark: scale-color($color-accent, $lightness: -30%);
// warn (UVA "Emergency Red")
$color-warn: #DF1E43;
$color-warn-light: scale-color($color-warn, $lightness: +30%);
$color-warn-dark: scale-color($color-warn, $lightness: -30%);
$font-size-default: 16px;
$font-size-lg: 24px;
$font-size-md: 16px;
$font-size-sm: 14px;
@mixin mat-icon {
font-family: 'Material Icons', sans-serif;
font-size: $font-size-lg;
}
.mat-icon {
@include mat-icon;
}
.text-center {
text-align: center;
}
html, body {
padding: 1em;
margin: 0;
font-family: Arial, sans-serif;
font-size: $font-size-default;
}
table {
border: 1px solid $color-gray-light;
background-color: white;
width: 100%;
text-align: left;
border-collapse: collapse;
th, td {
padding: 0.5em;
}
td, &.blueTable th {
border: 1px solid $color-gray-light;
}
tbody td {
font-size: $font-size-sm;
}
tr:nth-child(even) {
background: $color-gray-light-2;
}
thead {
background-color: $color-primary-light;
th {
font-size: $font-size-default;
font-weight: bold;
color: white;
border-left: 1px solid $color-gray-light;
}
}
thead th:first-child {
border-left: none;
}
tfoot {
font-size: $font-size-default;
font-weight: bold;
color: white;
background-color: $color-gray-light;
td {
font-size: $font-size-default;
}
.links {
text-align: right;
a {
display: inline-block;
background: $color-primary-light;
color: white;
padding: 2px 8px;
border-radius: 5px;
}
}
}
}
.btn {
font-size: $font-size-default;
padding: 0.5em 1em;
border-radius: 5px;
text-decoration: none;
color: white;
white-space: nowrap;
border: none;
&:hover {
text-decoration: none;
}
&.btn-icon {
@include mat-icon;
border: none;
&.btn-default {
color: $color-gray;
background-color: transparent;
border: none;
&:hover {
color: $color-gray-dark;
background-color: transparent;
}
}
&.btn-primary {
color: $color-primary;
background-color: transparent;
&:hover {
color: $color-primary-dark;
background-color: transparent;
}
}
&.btn-accent {
color: $color-accent;
background-color: transparent;
&:hover {
color: $color-accent-dark;
background-color: transparent;
}
}
&.btn-warn {
color: $color-warn;
background-color: transparent;
&:hover {
color: $color-warn-dark;
background-color: transparent;
}
}
}
&.btn-default {
color: $color-gray-dark;
background-color: white;
border: 1px solid $color-gray-light;
&:hover {
background-color: $color-gray-light-2;
}
}
&.btn-primary {
background-color: $color-primary;
&:hover {
background-color: $color-primary-dark;
}
}
&.btn-warn {
background-color: $color-warn;
&:hover {
background-color: $color-warn-dark;
}
}
&.btn-accent {
background-color: $color-accent;
&:hover {
background-color: $color-accent-dark;
}
}
}
select.multi {
height: 600px;
}
.form-field {
display: flex;
width: 100%;
margin-bottom: 40px;
padding: 2em;
&:nth-child(even) {
background-color: $color-gray-light-2;
}
.form-field-label,
.form-field-help,
.form-field-input {
width: 30%;
text-align: left;
margin-right: 40px;
}
.form-field-label {
font-weight: bold;
}
.form-field-input input {
width: 100%;
}
.form-field-help {
font-style: italic;
}
.form-field-error {
color: $color-warn;
}
}