Skip to content

Commit f5ffdd5

Browse files
committed
modalbox - background color without theme (issue #4) & modal dismiss on background click
1 parent 2b6e726 commit f5ffdd5

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

css/components.css

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/components.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/modalbox/_dialog.less

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
@import "_variables";
2+
@import "../_mixins";
3+
@import "../_themes";
4+
15
.modal {
26
&__dialog {
7+
background-color: #fff;
38
.center-both;
49
box-sizing: border-box;
510
&--wide {
@@ -36,6 +41,9 @@
3641
}
3742
}
3843
}
44+
&__body {
45+
padding: 15px;
46+
}
3947

4048
&__dialog--blue {
4149
border-radius: @blue-border-radius;

less/modalbox/_overlay.less

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@import "_variables";
2+
@import "../_mixins";
3+
14
.modal {
25
&__overlay {
36
position: fixed;
@@ -8,5 +11,11 @@
811
background: @overlay-background;
912

1013
z-index: 10000;
14+
15+
&--dismiss {
16+
.same(100%, width height);
17+
cursor: pointer;
18+
display: block;
19+
}
1120
}
1221
}

less/modalbox/_trigger.less

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@import "_variables";
2+
@import "../_mixins";
3+
14
.modal {
25
&__trigger[type=checkbox] {
36
// input type checkbox

0 commit comments

Comments
 (0)