Skip to content

Commit d6b3158

Browse files
committed
Change name
1 parent 23dc269 commit d6b3158

8 files changed

Lines changed: 19 additions & 20 deletions

File tree

scss/_base.media.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
}
88

99
.embed-fluid {
10-
@include embed-ratio(16, 9);
10+
@include embed(16, 9);
1111
}

scss/_functions.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@return mix(black, $color, $level * 8%);
77
}
88

9-
@function round-color($color, $dark: $grey-dark, $light: $white) {
9+
@function invert-color($color, $dark: $grey-dark, $light: $white) {
1010
$r: red($color);
1111
$g: green($color);
1212
$b: blue($color);

scss/_variables.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Color
1+
// Colors
22
// -----------------------------------------------------------------------------
33
$color-primary: #636AFF !default; // primary
44
$color-danger: #ff2d20 !default; // negative
@@ -86,7 +86,7 @@ $spacings: (
8686
"9": 64px,
8787
) !default;
8888

89-
// Base
89+
// Typo
9090
// -----------------------------------------------------------------------------
9191
$text-size-xs: 12px !default;
9292
$text-size-sm: 14px !default;
@@ -194,6 +194,12 @@ $link-color: $color-primary !default;
194194
$code-color: #d73e48 !default;
195195
$code-bg: #fcf2f2 !default;
196196

197+
// Elevation
198+
// -----------------------------------------------------------------------------
199+
$shadow-sm: 0 1px 2px rgba($black, .08) !default;
200+
$shadow-md: 0 2px 6px rgba($black, .08), 0 0 0 1px rgba($black, 0.04) !default;
201+
$shadow-lg: 0 4px 16px rgba($black, 0.2), 0 0 0 1px rgba($black, 0.04) !default;
202+
197203
// Grid
198204
// -----------------------------------------------------------------------------
199205
$grid-columns: 12 !default;

scss/mixins/_badge.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// -----------------------------------------------------------------------------
33
@mixin badge-variant(
44
$background,
5-
$color: round-color($background)
5+
$color: invert-color($background)
66
) {
77
color: $color;
88
background-color: $background;

scss/mixins/_button.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
@mixin btn-variant(
44
$background,
55
$border: $background,
6-
$color: round-color($background),
6+
$color: invert-color($background),
77
$hover-background: shade-color($background, 1),
88
$hover-border: shade-color($border, 1),
9-
$hover-color: round-color($hover-background),
9+
$hover-color: invert-color($hover-background),
1010
$active-background: shade-color($background, 2),
1111
$active-border: shade-color($border, 2),
12-
$active-color: round-color($active-background)
12+
$active-color: invert-color($active-background)
1313
) {
1414
& {
1515
color: $color;
@@ -57,10 +57,10 @@
5757
@mixin btn-outline-variant(
5858
$color,
5959
$border: $color,
60-
$hover-color: round-color($color),
60+
$hover-color: invert-color($color),
6161
$hover-border: shade-color($color, 1),
6262
$hover-background: shade-color($color, 1),
63-
$active-color: round-color($color),
63+
$active-color: invert-color($color),
6464
$active-border: shade-color($color, 2),
6565
$active-background: shade-color($color, 2),
6666
) {

scss/mixins/_form.scss

Whitespace-only changes.

scss/mixins/_misc.scss

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
@mixin full-bg() {
2-
background-position: center center;
3-
background-repeat: no-repeat;
4-
background-size: cover;
5-
}
6-
7-
@mixin oneline() {
8-
max-width: 100%;
1+
@mixin truncate() {
92
word-wrap: normal;
103
text-overflow: ellipsis;
114
white-space: nowrap;
@@ -17,7 +10,7 @@
1710
-webkit-overflow-scrolling: touch;
1811
}
1912

20-
@mixin embed-ratio($width, $height) {
13+
@mixin embed($width, $height) {
2114
position: relative;
2215
display: block;
2316
width: 100%;

scss/mixins/_note.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// note variant
22
// -----------------------------------------------------------------------------
3-
@mixin note-variant($background, $color: round-color($background)) {
3+
@mixin note-variant($background, $color: invert-color($background)) {
44
color: $color;
55
background-color: $background,;
66

0 commit comments

Comments
 (0)