Skip to content

Commit ddab1d9

Browse files
committed
Update styles
1 parent 54c9eac commit ddab1d9

4 files changed

Lines changed: 53 additions & 16 deletions

File tree

scss/_base.table.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ caption {
1111

1212
th {
1313
text-align: left;
14+
font-weight: $font-weight-medium;
1415
}
1516

1617
.table {
@@ -60,6 +61,10 @@ th {
6061
td {
6162
border: 1px solid $grey-thin;
6263
}
64+
65+
th {
66+
background-color: $grey-light;
67+
}
6368
}
6469

6570
.table.table--hover {

scss/_components.button.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
8787
);
8888
}
8989

90+
.btn.btn--icon {
91+
width: $btn-height-computed;
92+
}
93+
9094
.btn.btn--black {
9195
@include btn-variant($black);
9296
&.btn--outline {
@@ -132,6 +136,10 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
132136
padding: $btn-padding-sm;
133137
height: $btn-height-computed;
134138
min-width: $btn-height-computed;
139+
140+
&.btn--icon {
141+
width: $btn-height-computed;
142+
}
135143
}
136144

137145
.btn.btn--lg {
@@ -142,6 +150,10 @@ $btn-height-computed: $btn-font-size-md * $btn-line-height + 2 * nth($btn-paddin
142150
padding: $btn-padding-lg;
143151
height: $btn-height-computed;
144152
min-width: $btn-height-computed;
153+
154+
&.btn--icon {
155+
width: $btn-height-computed;
156+
}
145157
}
146158

147159
.btn.btn--loose {

scss/_components.modal.scss

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ $modal-width-sm: 480px !default;
44
$modal-width-md: 600px !default;
55
$modal-width-lg: 900px !default;
66
$modal-border-radius: $component-border-radius-lg !default;
7+
$modal-content-padding: $spacing-square-md !default;
78
$modal-bg: $component-bg !default;
89
$modal-shadow: $shadow-lg !default;
9-
$modal-title-font-size: $text-size-xl !default;
10+
$modal-title-font-size: $text-title-sm !default;
11+
$modal-title-line-height: $line-height-normal !default;
1012
$modal-zIndex: $zIndex-9 !default;
1113
$mask-zIndex: $zIndex-6 !default;
1214
$mask-bg: rgba($black, 0.5) !default;
@@ -52,30 +54,44 @@ $mask-bg: rgba($black, 0.5) !default;
5254
margin: 0;
5355
font-weight: $font-weight-medium;
5456
font-size: $modal-title-font-size;
55-
line-height: $line-height-tight;
57+
line-height: $modal-title-line-height;
5658
}
5759

5860
.modal__close {
61+
cursor: pointer;
5962
position: absolute;
60-
right: $spacing-square-md;
61-
top: $spacing-square-md;
62-
font-size: $text-size-xl;
63-
color: $grey-mute;
63+
right: $modal-content-padding;
64+
top: $modal-content-padding;
65+
display: flex;
66+
align-items: center;
67+
justify-content: center;
68+
width: 30px;
69+
height: 30px;
6470
line-height: 1;
65-
cursor: pointer;
71+
color: $grey-mute;
72+
font-size: $text-size-xl;
73+
border-radius: $component-border-radius-md;
74+
background-color: $grey-light;
6675
font-family: Helvetica, Arial, sans-serif;
76+
77+
&:hover {
78+
background-color: darken($grey-light, 2.5%);
79+
}
80+
&:active {
81+
background-color: darken($grey-light, 5%);
82+
}
6783
}
6884

6985
.modal__body {
7086
flex: 1 1 auto;
71-
padding: $spacing-square-md;
87+
padding: $modal-content-padding;
7288
overflow: auto;
7389
-webkit-overflow-scrolling: touch;
7490
}
7591

7692
.modal__footer {
7793
flex-shrink: 0;
78-
padding: $spacing-square-md;
94+
padding: $modal-content-padding;
7995
text-align: right;
8096
}
8197

scss/_layouts.grid.scss

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
66
align-items: flex-start;
77
margin-left: ($grid-gutter-width / -2);
88
margin-right: ($grid-gutter-width / -2);
9+
}
10+
11+
.row.row--stretch {
12+
align-items: stretch;
13+
}
914

10-
&.no-gutters {
11-
margin-left: 0;
12-
margin-right: 0;
13-
> [class*="col"] {
14-
padding-left: 0;
15-
padding-right: 0;
16-
}
15+
.row.row--gutterless {
16+
margin-left: 0;
17+
margin-right: 0;
18+
> [class*="col"] {
19+
padding-left: 0;
20+
padding-right: 0;
1721
}
1822
}
1923

0 commit comments

Comments
 (0)