Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.

Commit 7fecefb

Browse files
committed
lays out sizing select and settings button on widget
1 parent e3d2e04 commit 7fecefb

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

ui/dashboard/widgets/widget-wrapper.reel/_widget-wrapper.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
max-width: calc(100% - 1em);
4141
}
4242
}
43+
44+
@nest .Sideboard & {
45+
width: 100%;
46+
}
4347
}
4448

4549
.WidgetWrapper-removeButton {
@@ -71,7 +75,15 @@
7175

7276
.Widget-sizeSelector {
7377
position: absolute;
74-
top: .5rem;
75-
right: 2rem;
78+
display: none;
79+
bottom: .5rem;
80+
left: .5rem;
7681
font-size: .75em;
82+
box-shadow: 0 0 4px 0px rgba(0,0,0,1);
83+
z-index: 1;
84+
85+
@nest .Main.drawer-is-open .Dashboard & {
86+
display: block;
87+
}
88+
7789
}

ui/dashboard/widgets/widget-wrapper.reel/widget-wrapper.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/dashboard/widgets/widget.reel/_widget.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
right: 0;
5858
bottom: 0;
5959
border-radius: var(--widget-border-radius);
60-
background: rgba(0,0,0,.75);
60+
background: rgba(0,0,0,.5);
6161
transition: visibility .35s ease-in-out, opacity .35s ease-in-out;
62-
z-index: 2;
62+
z-index: 1;
6363
}
6464

65-
@nest .drawer-is-open .has-settings &:before {
65+
@nest .drawer-is-open &:before {
6666
visibility: visible;
6767
opacity: 1;
6868
}
@@ -137,14 +137,16 @@
137137
}
138138
}
139139

140+
/* Button */
141+
140142
.Widget-info {
141143
position: absolute;
142-
z-index: 10;
143-
left: 1em;
144-
bottom: 1em;
144+
right: .5em;
145+
bottom: .5em;
145146
visibility: hidden;
146147
opacity: 0;
147148
transition: visibility .35s ease-in-out, opacity .35s ease-in-out;
149+
z-index: 1;
148150

149151
@nest .drawer-is-open .has-settings & {
150152
visibility: visible;

ui/dashboard/widgets/widget.reel/widget.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)