1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00

Use px as units for panel padding

This commit is contained in:
Steffo 2022-10-28 14:09:19 +02:00
parent e1ad611be4
commit c3f543d8d4
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -146,10 +146,10 @@
// The base panel class. // The base panel class.
@{panel} { @{panel} {
// And a padding to separate them from their contents // And a padding to separate them from their contents
padding-top: 0.5em; padding-top: 8px;
padding-right: 0.5em; padding-right: 8px;
padding-left: 0.5em; padding-left: 8px;
padding-bottom: 0.5em; padding-bottom: 8px;
// Remove the border, just to be sure // Remove the border, just to be sure
border-width: 0; border-width: 0;
border-style: solid; border-style: solid;
@ -168,19 +168,19 @@
// Make borders togglable // Make borders togglable
&@{border-top}, &@{panel-box} { &@{border-top}, &@{panel-box} {
border-top-width: 2px; border-top-width: 2px;
padding-top: calc(0.5em - 2px); padding-top: 6px;
} }
&@{border-right}, &@{panel-box} { &@{border-right}, &@{panel-box} {
border-right-width: 2px; border-right-width: 2px;
padding-right: calc(0.5em - 2px); padding-right: 6px;
} }
&@{border-left}, &@{panel-box}, &@{panel-dialog} { &@{border-left}, &@{panel-box}, &@{panel-dialog} {
border-left-width: 2px; border-left-width: 2px;
padding-left: calc(0.5em - 2px); padding-left: 6px;
} }
&@{border-bottom}, &@{panel-box} { &@{border-bottom}, &@{panel-box} {
border-bottom-width: 2px; border-bottom-width: 2px;
padding-bottom: calc(0.5em - 2px); padding-bottom: 6px;
} }
// For compatibility, make panel-parenthesis available // For compatibility, make panel-parenthesis available