endSessionDialog: Simplify CSS padding handling
... so that we add more items to messageLayout without having to hardcode the same padding in each of the children. https://bugzilla.gnome.org/show_bug.cgi?id=722898
This commit is contained in:
parent
c176af4da5
commit
5bec5fb6cb
@ -1948,22 +1948,22 @@ StScrollBar StButton#vhandle:active {
|
||||
}
|
||||
|
||||
.end-session-dialog-subject {
|
||||
padding-left: 17px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.end-session-dialog-subject:rtl {
|
||||
padding-left: 0px;
|
||||
.end-session-dialog-layout {
|
||||
padding-left: 17px;
|
||||
}
|
||||
|
||||
.end-session-dialog-layout:rtl {
|
||||
padding-right: 17px;
|
||||
}
|
||||
|
||||
.end-session-dialog-description {
|
||||
padding-left: 17px;
|
||||
width: 28em;
|
||||
}
|
||||
|
||||
.end-session-dialog-description:rtl {
|
||||
padding-right: 17px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,8 @@ const EndSessionDialog = new Lang.Class({
|
||||
x_align: St.Align.END,
|
||||
y_align: St.Align.START });
|
||||
|
||||
let messageLayout = new St.BoxLayout({ vertical: true });
|
||||
let messageLayout = new St.BoxLayout({ vertical: true,
|
||||
style_class: 'end-session-dialog-layout' });
|
||||
mainContentLayout.add(messageLayout,
|
||||
{ y_align: St.Align.START });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user