From 0fb7ccb1ab8782d2021d75dc9ec0725a66141acd Mon Sep 17 00:00:00 2001 From: Chabam Date: Sun, 12 Nov 2017 22:43:49 -0500 Subject: [PATCH] Fixed a bug where when you hover a launcher it adds margin that moves other item on the panel --- common/cinnamon/cinnamon-dark.css | 61 +++++++++++++++++++------------ common/cinnamon/cinnamon.css | 61 +++++++++++++++++++------------ 2 files changed, 76 insertions(+), 46 deletions(-) diff --git a/common/cinnamon/cinnamon-dark.css b/common/cinnamon/cinnamon-dark.css index 34f45ef..c35014b 100644 --- a/common/cinnamon/cinnamon-dark.css +++ b/common/cinnamon/cinnamon-dark.css @@ -1282,29 +1282,44 @@ StScrollBar { #panel-launchers-box.vertical { padding: 2px 0; } -.panel-launcher, -.launcher { - margin: 1px; - padding: 1px; - transition-duration: 200; } - .panel-launcher:hover, - .launcher:hover { - background-gradient-direction: none; - border: 0px solid #5294e2; } - .panel-bottom .panel-launcher:hover, .panel-bottom - .launcher:hover { - border-bottom-width: 1px; } - .panel-top .panel-launcher:hover, .panel-top - .launcher:hover { - border-top-width: 1px; } - .panel-left .panel-launcher:hover, .panel-left - .launcher:hover { - border-left-width: 1px; - padding-left: 0; } - .panel-right .panel-launcher:hover, .panel-right - .launcher:hover { - border-right-width: 1px; - padding-right: 0; } + .panel-launcher, + .launcher { + margin: 1px; + padding: 1px; + transition-duration: 200; } + .panel-launcher:hover, + .launcher:hover { + background-gradient-direction: none; + border: 0px solid #5294e2; } + .panel-bottom .panel-launcher:hover, .panel-bottom + .launcher:hover { + margin-bottom: 0; + border-bottom-width: 1px; } + .panel-top .panel-launcher:hover, .panel-top + .launcher:hover { + border-top-width: 1px; } + .panel-left .panel-launcher:hover, .panel-left + .launcher:hover { + border-left-width: 1px; + padding-left: 0; } + .panel-right .panel-launcher:hover, .panel-right + .launcher:hover { + border-right-width: 1px; + padding-right: 0; } + .panel-bottom .panel-launcher, .panel-bottom + .launcher { + margin-bottom: 0; } + .panel-top .panel-launcher, .panel-top + .launcher { + margin-top: 0; } + .panel-left .panel-launcher, .panel-left + .launcher { + margin-left: 0; + padding-left: 0; } + .panel-right .panel-launcher, .panel-right + .launcher { + margin-right: 0; + padding-right: 0; } #overview-corner { background-image: url("common-assets/misc/overview.png"); } diff --git a/common/cinnamon/cinnamon.css b/common/cinnamon/cinnamon.css index b816ac3..f25ced7 100644 --- a/common/cinnamon/cinnamon.css +++ b/common/cinnamon/cinnamon.css @@ -1282,29 +1282,44 @@ StScrollBar { #panel-launchers-box.vertical { padding: 2px 0; } -.panel-launcher, -.launcher { - margin: 1px; - padding: 1px; - transition-duration: 200; } - .panel-launcher:hover, - .launcher:hover { - background-gradient-direction: none; - border: 0px solid #5294e2; } - .panel-bottom .panel-launcher:hover, .panel-bottom - .launcher:hover { - border-bottom-width: 1px; } - .panel-top .panel-launcher:hover, .panel-top - .launcher:hover { - border-top-width: 1px; } - .panel-left .panel-launcher:hover, .panel-left - .launcher:hover { - border-left-width: 1px; - padding-left: 0; } - .panel-right .panel-launcher:hover, .panel-right - .launcher:hover { - border-right-width: 1px; - padding-right: 0; } + .panel-launcher, + .launcher { + margin: 1px; + padding: 1px; + transition-duration: 200; } + .panel-launcher:hover, + .launcher:hover { + background-gradient-direction: none; + border: 0px solid #5294e2; } + .panel-bottom .panel-launcher:hover, .panel-bottom + .launcher:hover { + margin-bottom: 0; + border-bottom-width: 1px; } + .panel-top .panel-launcher:hover, .panel-top + .launcher:hover { + border-top-width: 1px; } + .panel-left .panel-launcher:hover, .panel-left + .launcher:hover { + border-left-width: 1px; + padding-left: 0; } + .panel-right .panel-launcher:hover, .panel-right + .launcher:hover { + border-right-width: 1px; + padding-right: 0; } + .panel-bottom .panel-launcher, .panel-bottom + .launcher { + margin-bottom: 0; } + .panel-top .panel-launcher, .panel-top + .launcher { + margin-top: 0; } + .panel-left .panel-launcher, .panel-left + .launcher { + margin-left: 0; + padding-left: 0; } + .panel-right .panel-launcher, .panel-right + .launcher { + margin-right: 0; + padding-right: 0; } #overview-corner { background-image: url("common-assets/misc/overview.png"); }