123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- @mixin breakpoint($point) {
- @if $point == 2x {
- @media (min-width:$size-2x) {
- @content;
- }
- } @else if $point == xl {
- @media (max-width: $size-xl) {
- @content;
- }
- } @else if $point == lg {
- @media (max-width: $size-lg) {
- @content;
- }
- } @else if $point == md {
- @media (max-width: $size-md) {
- @content;
- }
- } @else if $point == sm {
- @media (max-width: $size-sm) {
- @content;
- }
- } @else if $point == xs {
- @media (max-width: $size-xs) {
- @content;
- }
- } @else {
- @warn "Breakpoint mixin supports: xs, sm, md, lg, xl, 2x";
- }
- }
- @mixin vertical-align($position: relative) {
- position: $position;
- top: 50%;
- transform: translateY(-50%);
- }
- @mixin button-primary() {
- background: $primary-color;
- border-color: $primary-color-dark;
- color: $light-color;
- &:focus,
- &:hover {
- background: darken($primary-color-dark, 2%);
- border-color: darken($primary-color-dark, 5%);
- color: $light-color;
- }
- &:active,
- &.active {
- background: darken($primary-color-dark, 4%);
- border-color: darken($primary-color-dark, 7%);
- color: $light-color;
- }
- }
|