web2019/sass/css/_base.scss

182 lines
3.0 KiB
SCSS
Raw Normal View History

2019-07-10 17:47:21 +08:00
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/NotoSans-Bold.ttf') format('truetype');
font-weight: 700;
}
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/NotoSans-BoldItalic.ttf') format('truetype');
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: 'Noto Sans';
src: url('../fonts/NotoSans-Italic.ttf') format('truetype');
font-style: italic;
}
2019-07-03 17:52:11 +08:00
/**
* 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;
}
2019-07-03 17:52:11 +08:00
/**
* 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: 12px;
}
.dropdown-item {
&:hover,
&:active {
2019-07-03 17:52:11 +08:00
background-color: transparent;
}
}
.dropdown-item.active {
color: $color-secondary;
background-color: transparent;
}
2019-07-03 17:52:11 +08:00
.btn-primary {
background-color: $btn-primary-2;
color: #fff !important;
border: 1px solid $btn-primary-2 !important;
text-decoration: none;
&:hover {
background-color: $btn-secondary-2;
border: 1px solid $btn-secondary-2 !important;
}
}
.btn-lg {
font-size: 1rem;
padding: 1rem 1.25rem;
2019-07-03 18:55:58 +08:00
}
.navbar-toggler {
outline: none;
&:focus,
&:hover {
outline: none;
}
2019-07-18 17:24:14 +08:00
}
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;
}
.bg-white-shadow {
background: url(../images/migen-links@2x.png);
background-repeat: no-repeat;
background-size: 730px 262px;
2019-07-03 17:52:11 +08:00
}