12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- @function get-color($mode, $key) {
- @if map-has-key($themes, $mode) {
- $theme: map-get($themes, $mode);
- @if map-has-key($theme, $key) {
- @return map-get($theme, $key);
- }
- }
- @return red; // default color for debugging purpose
- }
- @function get-light-color($key) {
- @return get-color('light', $key);
- }
- @function get-dark-color($key) {
- @return get-color('dark', $key);
- }
- @mixin reset-list {
- margin: 0;
- padding: 0;
- list-style: none;
- }
- @mixin section-title-adjustment() {
- h1 > span {
- margin-top: -55px; /* Size of fixed header */
- padding-bottom: 55px;
- display: block;
- }
- }
- @mixin brand-background() {
- @each $brand, $color in $brand-colors {
- .bg-#{$brand} {
- background-color: $color;
- }
- }
- }
- @mixin transition() {
- transition: all $transition-type $transition-duration;
- }
- @mixin selection-color($theme: 'light') {
- background: get-light-color('accent-color');
- color: get-light-color('text-over-accent-color');
- @if $theme == 'dark' {
- background: get-dark-color('accent-color');
- color: get-dark-color('text-over-accent-color');
- }
- }
|