1
0
Fork 0
web2019/sass/css/_base.scss

248 lines
4.1 KiB
SCSS

@font-face {
font-family: 'Noto Sans';
font-display: swap;
src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Noto Sans';
font-display: swap;
src: url('../fonts/NotoSans-Bold.ttf') format('truetype');
font-weight: 700;
}
@font-face {
font-family: 'Noto Sans';
font-display: swap;
src: url('../fonts/NotoSans-BoldItalic.ttf') format('truetype');
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: 'Noto Sans';
font-display: swap;
src: url('../fonts/NotoSans-Italic.ttf') format('truetype');
font-style: italic;
}
/**
* Basic styling
*/
body {
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
color: $text-color;
background-color: $background-color;
-webkit-text-size-adjust: 100%;
-webkit-font-feature-settings: "kern" 1;
-moz-font-feature-settings: "kern" 1;
-o-font-feature-settings: "kern" 1;
font-feature-settings: "kern" 1;
font-kerning: normal;
display: flex;
min-height: 100vh;
flex-direction: column;
}
figcaption {
font-size: $small-font-size;
}
/**
* Lists
*/
ul, ol {
margin-left: $spacing-unit;
}
li {
> ul,
> ol {
margin-bottom: 0;
}
}
/**
* Headings
*/
h1, h2, h3, h4, h5, h6 {
font-weight: $big-font-weight;
line-height: 1.1;
}
/**
* Links
*/
a {
color: $btn-primary-2;
text-decoration: underline;
&:hover {
color: $btn-secondary-2;
text-decoration: none;
}
}
.navbar-light .navbar-nav .nav-link,
.dropdown-item {
outline: none;
color: $color-primary;
text-decoration: none;
&:visited {
color: $color-primary;
}
&:hover {
color: $color-secondary;
}
}
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show>.nav-link {
color: $color-secondary;
}
/**
* Custom
*/
.shadow.th {
-webkit-box-shadow: 0px 2px 8px 0px rgba(218,218,218,1) !important;
-moz-box-shadow: 0px 2px 8px 0px rgba(218,218,218,1) !important;
box-shadow: 0px 2px 8px 0px rgba(218,218,218,1) !important;
}
.card {
border: 1px solid transparent;
}
.dropdown-menu {
border: none;
margin-top: 0;
padding-top: 0;
}
.dropdown-item {
&:hover,
&:active {
background-color: transparent;
}
}
.dropdown-item.active {
color: $color-secondary;
background-color: transparent;
}
.btn-primary {
background-color: $btn-primary-2;
color: #fff !important;
border: 1px solid $btn-primary-2 !important;
text-decoration: none;
&:hover, &:disabled {
background-color: $btn-secondary-2;
border: 1px solid $btn-secondary-2 !important;
}
}
.btn-lg {
font-size: 1rem;
padding: 1rem 1.25rem;
}
.navbar-toggler {
outline: none;
&:focus,
&:hover {
outline: none;
}
}
ul.th {
list-style: none;
}
ul.th li::before {
content: "\2022";
color: $brand-color;
font-weight: bold;
display: inline-block;
width: 1em;
margin-left: -1em;
}
ul:not(.navbar-nav) {
list-style: none;
margin-left: 0!important;
}
ul:not(.navbar-nav) li::before {
content: "\2022";
color: $brand-color;
font-weight: bold;
display: inline-block;
width: 1em;
margin-left: -1em;
}
ul:not(.navbar-nav) li {
padding: .5rem 0;
}
.bg-white-shadow {
background: url(../images/migen-links@2x.png);
background-repeat: no-repeat;
background-size: 730px 262px;
}
.badge-primary {
background-color: $brand-color;
}
.modal-lg {
max-width: 90%;
}
[data-popup] {
cursor: pointer;
}
a[aria-expanded='true']:after {
transform: rotate(-180deg);
}
.hkstyleh5 h5 {
text-align: center;
}
.w-auto {
width: auto;
}
.btn-primary.btn-inversed {
border: 1px solid $btn-primary-2 !important;
background-color: transparent !important;
color: $btn-primary-2 !important;
}
.doc-icon {
background: url('../images/pdf-icon.png');
height: 24px;
width: 24px;
margin-right: 12px;
display: block;
float: left;
}
.hide-expanded[aria-expanded="true"], .show-expanded[aria-expanded="false"], .show-expanded {display: none;}
.hide-expanded[aria-expanded="false"], .show-expanded[aria-expanded="true"] {display: inline;}