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

249 lines
4.1 KiB
SCSS
Raw Normal View History

2019-07-10 17:47:21 +08:00
@font-face {
font-family: 'Noto Sans';
font-display: swap;
2019-07-10 17:47:21 +08:00
src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Noto Sans';
font-display: swap;
2019-07-10 17:47:21 +08:00
src: url('../fonts/NotoSans-Bold.ttf') format('truetype');
font-weight: 700;
}
@font-face {
font-family: 'Noto Sans';
font-display: swap;
2019-07-10 17:47:21 +08:00
src: url('../fonts/NotoSans-BoldItalic.ttf') format('truetype');
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: 'Noto Sans';
font-display: swap;
2019-07-10 17:47:21 +08:00
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;
2019-07-19 22:16:26 +08:00
margin-top: 0;
padding-top: 0;
2019-07-03 17:52:11 +08:00
}
.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;
margin: 0.125rem 0rem;
2019-07-03 17:52:11 +08:00
&:hover, &:disabled {
2019-07-03 17:52:11 +08:00
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;
}
2019-07-19 22:16:26 +08:00
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;
}
2019-07-18 17:24:14 +08:00
.bg-white-shadow {
background: url(../images/migen-links@2x.png);
background-repeat: no-repeat;
background-size: 730px 262px;
}
.badge-primary {
background-color: $brand-color;
2019-07-19 23:28:56 +08:00
}
.modal-lg {
max-width: 90%;
}
[data-popup] {
cursor: pointer;
}
a[aria-expanded='true']:after {
transform: rotate(-180deg);
2019-08-01 20:05:15 +08:00
}
.hkstyleh5 h5 {
text-align: center;
feat(place-order): Adds order hardware system fix(place-order): Avoids colliding with page var feat(place-order): Adds drag(copy)/drop system Finally get this to work.. Still some minor issues while drag(copy)/drop This commit allows to drag(copy)/drop inside the crate. Allows to reorder the crate feat(place-order): Adds basic summary of shopping cart allows to delete item feat(place-order): Adds form also applies some cosmetcis css feat(place-order): Applies custom css to drag/drop process feat(place-order): Improves crate UI feat(place-order): Adds missing assets feat(place-order): Updates icon button add feat(place-order): Changes cart layout to increase space - moves up the control crate type (rack/desktop) - increase card size a bit - reduces some padding - adding some space above card title - re-organise react component to achieve this layout feat(place-order): Updates icon remove in summary price - uses icon instead of shitty html/css - re-organises react component fix(place-order): Reduces overlay gradient effect on the aside also increases padding-bottom to avoid overlay above content feat(place-order): Updates summary price layout feat(place-order): Updates CrateMode using data this avoid using hard text in component and also, adding crate mode in data.js will be helpful for other component too (e.g OrderSummary) feat(place-order): Adds crate mode in OrderSummary Allows to add fees to rack mode for exemple feat(place-order): Allows to delete all items in the crate at once feat(place-order): Updates typo uses currentMode instead of crateMode feat(place-order): Displays selection shadow on card when user hover delete button feat(place-order): Allows to add item to the crate feat(place-order): Corrects typo feat(place-order): Corrects layout for browser support feat(place-order): Adds first automatic rules this allows to test how things could be done feat(place-order): Allows to remove card when drop out of crate feat(place-order): Adds icon reminder to rules feat(place-order): Uses internal js production assets feat(place-order): Uses production file feat(place-order): Adds kali first as initialisation feat(place-order): Simulates slots in crate (desktop/rack) feat(place-order): Updates data that prepare for rules algo feat(place-order): Adds some rules feat(place-order): Removes rule 2kasli when no more kasli it's a fix feat(place-order): Corrects typo rules koster fix(place-order): Removes PWA prompt fix(place-order): Corrects size card inside crate refactor(place-order): Reduces padding between items in listing refactor(place-order): Uses USD currency feat(place-order): Upgrades algo for rules feat(place-order): Adds progress bar to kasli/kasli w/backplane feat(place-order): Refactores a bit rule handler feat(place-order): Adds all other rules fix(place-order): Corrects typo fix(place-order): Corrects count zotino/hd68 when IDC-BNC does not follow each others feat(place-order): Backups dev script call just in case For now, I can work with prod build even debugging production code feat(place-order): Adds super tooltip to progress bar feat(place-order): Adds tooltip for zotino/hd68 too refactor(place-order): Updates typo rule for Koster feat(place-order/WIP): Adds warning feat(place-order): Adds Mirny adds css changes from previous commit (i've forgotten) feat(place-order): Updates build feat(place-order): Set RJ45-DIO to occupy 2 EEMs feat(place-order): Make clocker progress bar visible It was hidden by horizontal scrollbar inside crate feat(place-order): Remove red warning for 2 kaslis following each other feat(place-order): Adds rule for cards that need a resource controller feat(place-order): Corrects typo, adds point to end of message feat(place-order): Changes idc-bnc info into a warning one feat(place-order): Moves down warning box feat(place-order): Updates some cosmetics css fix(place-order): Removes IDC-BNC from Kasli connectors count feat(place-order): Displays warning on hover warning icon feat(place-order): Updates design hover item in listing feat(place-order): Updates price estimate feat(place-order): Displays warning in summary feat(place-order): Allows to select item feat(place-order): Allows to send request quote through client email fix(place-order): Allows to click on remove inside summary list feat(place-order): Adds btn remove for each cards inside crate feat(place-order): Builds fix(place-order): Updates icon warning fix(place-order): Corrects recipient email address LOL, forgot to remove mine haha fix(place-order): Removes typo (kasli double) fix(place-order): Removes num from email title subject fix(place-order): Adds warning resources to mirny, zotino Also updates message text feat(place-order): Adds clocker counter feat(place-order): Uses warning for id68 instead of reminder feat(place-order): Adds crate type into the json feat(place-order): Adds btn order hardware in homepage refactor(place-order): Cleans a bit fix(place-order): Improves a bit ux remove item from crate fix(place-order): Improves a bit ux remove item from crate feat(place-order): Builds fix(place-order): Uses cursor pointer on remove button fix(place-order): Corrects card need a resources card chore(place-order): Removes call to ap.js fix(place-order): Tries with fixed height on warning icon fix(place-order): Adds fixed height to other element fix(place-order): Tries to remove up container height to let flex to its job fix(place-order): Removes .trim call which block multiline and augments row to 5 feat(place-order): Builds fix(place-order): Adds min-height for the crate
2019-10-02 12:16:07 +08:00
}
.w-auto {
width: auto;
}
.btn-primary.btn-inversed {
border: 1px solid $btn-primary-2 !important;
background-color: transparent !important;
color: $btn-primary-2 !important;
2022-01-18 17:19:43 +08:00
}
.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;}