From 20edae5eed73564156896ab9b1c9756e4ea8c4a5 Mon Sep 17 00:00:00 2001 From: Horst3180 Date: Fri, 14 Oct 2016 12:30:45 +0200 Subject: [PATCH] gnome-shell: reduce dash padding (fix #561) --- common/gnome-shell/3.16/gnome-shell-dark.css | 32 ++++++-------------- common/gnome-shell/3.16/gnome-shell.css | 32 ++++++-------------- common/gnome-shell/3.16/sass/_common.scss | 32 ++++++-------------- common/gnome-shell/3.18/gnome-shell-dark.css | 32 ++++++-------------- common/gnome-shell/3.18/gnome-shell.css | 32 ++++++-------------- common/gnome-shell/3.18/sass/_common.scss | 32 ++++++-------------- 6 files changed, 58 insertions(+), 134 deletions(-) diff --git a/common/gnome-shell/3.16/gnome-shell-dark.css b/common/gnome-shell/3.16/gnome-shell-dark.css index ba9ea0a..27fb030 100644 --- a/common/gnome-shell/3.16/gnome-shell-dark.css +++ b/common/gnome-shell/3.16/gnome-shell-dark.css @@ -1116,16 +1116,14 @@ StScrollBar { color: #BAC3CF; background-color: rgba(53, 57, 69, 0.95); border-color: rgba(0, 0, 0, 0.4); - padding: 6px 1px 6px 0px; + padding: 4px 0; border-radius: 0 3px 3px 0; } #dash:rtl { border-radius: 3px 0 0 3px; } .right #dash, #dash:rtl { - padding: 6px 0px 6px 1px; } - .bottom #dash { - padding: 1px 6px 0px 6px; } - .top #dash { - padding: 0px 6px 1px 6px; } + padding: 4px 0; } + .top #dash, .bottom #dash { + padding: 0; } #dash .placeholder { background-image: url("common-assets/dash/dash-placeholder.svg"); background-size: contain; @@ -1134,14 +1132,11 @@ StScrollBar { width: 24px; height: 24px; } -.dash-item-container > StWidget { - padding: 0px 4px 0px 5px; } - .right .dash-item-container > StWidget, .dash-item-container > StWidget:rtl { - padding: 0px 5px 0px 4px; } - .bottom .dash-item-container > StWidget { - padding: 4px 0px 5px 0px; } - .top .dash-item-container > StWidget { - padding: 5px 0px 4px 0px; } +.dash-item-container > StWidget, .dash-item-container > StWidget:rtl, .right .dash-item-container > StWidget { + padding: 4px 8px; } + +.top .dash-item-container > StWidget, .bottom .dash-item-container > StWidget { + padding: 6px; } .dash-label { border-radius: 3px; @@ -1154,12 +1149,6 @@ StScrollBar { -y-offset: 3px; -x-offset: 0; } -#dash .app-well-app .overview-icon, -.right #dash .app-well-app .overview-icon, -.bottom #dash .app-well-app .overview-icon, -.top #dash .app-well-app .overview-icon { - padding: 10px; } - #dash .app-well-app:hover .overview-icon, .right #dash .app-well-app:hover .overview-icon, .bottom #dash .app-well-app:hover .overview-icon, @@ -1176,7 +1165,7 @@ StScrollBar { #dash .app-well-app-running-dot { width: 11px; height: 2px; - margin-bottom: 6px; + margin-bottom: 2px; background-color: #5294e2; } #dashtodockContainer .app-well-app-running-dot { @@ -1197,7 +1186,6 @@ StScrollBar { background-image: url("common-assets/dash/running4.svg"); } .show-apps .overview-icon { - padding: 11px; background-color: rgba(0, 0, 0, 0.5); border-radius: 2px; border: 0px solid; } diff --git a/common/gnome-shell/3.16/gnome-shell.css b/common/gnome-shell/3.16/gnome-shell.css index fb8f7a4..dfeb16d 100644 --- a/common/gnome-shell/3.16/gnome-shell.css +++ b/common/gnome-shell/3.16/gnome-shell.css @@ -1116,16 +1116,14 @@ StScrollBar { color: #BAC3CF; background-color: rgba(53, 57, 69, 0.95); border-color: rgba(0, 0, 0, 0.4); - padding: 6px 1px 6px 0px; + padding: 4px 0; border-radius: 0 3px 3px 0; } #dash:rtl { border-radius: 3px 0 0 3px; } .right #dash, #dash:rtl { - padding: 6px 0px 6px 1px; } - .bottom #dash { - padding: 1px 6px 0px 6px; } - .top #dash { - padding: 0px 6px 1px 6px; } + padding: 4px 0; } + .top #dash, .bottom #dash { + padding: 0; } #dash .placeholder { background-image: url("common-assets/dash/dash-placeholder.svg"); background-size: contain; @@ -1134,14 +1132,11 @@ StScrollBar { width: 24px; height: 24px; } -.dash-item-container > StWidget { - padding: 0px 4px 0px 5px; } - .right .dash-item-container > StWidget, .dash-item-container > StWidget:rtl { - padding: 0px 5px 0px 4px; } - .bottom .dash-item-container > StWidget { - padding: 4px 0px 5px 0px; } - .top .dash-item-container > StWidget { - padding: 5px 0px 4px 0px; } +.dash-item-container > StWidget, .dash-item-container > StWidget:rtl, .right .dash-item-container > StWidget { + padding: 4px 8px; } + +.top .dash-item-container > StWidget, .bottom .dash-item-container > StWidget { + padding: 6px; } .dash-label { border-radius: 3px; @@ -1154,12 +1149,6 @@ StScrollBar { -y-offset: 3px; -x-offset: 0; } -#dash .app-well-app .overview-icon, -.right #dash .app-well-app .overview-icon, -.bottom #dash .app-well-app .overview-icon, -.top #dash .app-well-app .overview-icon { - padding: 10px; } - #dash .app-well-app:hover .overview-icon, .right #dash .app-well-app:hover .overview-icon, .bottom #dash .app-well-app:hover .overview-icon, @@ -1176,7 +1165,7 @@ StScrollBar { #dash .app-well-app-running-dot { width: 11px; height: 2px; - margin-bottom: 6px; + margin-bottom: 2px; background-color: #5294e2; } #dashtodockContainer .app-well-app-running-dot { @@ -1197,7 +1186,6 @@ StScrollBar { background-image: url("common-assets/dash/running4.svg"); } .show-apps .overview-icon { - padding: 11px; background-color: rgba(0, 0, 0, 0.5); border-radius: 2px; border: 0px solid; } diff --git a/common/gnome-shell/3.16/sass/_common.scss b/common/gnome-shell/3.16/sass/_common.scss index f74fc58..8b947f7 100644 --- a/common/gnome-shell/3.16/sass/_common.scss +++ b/common/gnome-shell/3.16/sass/_common.scss @@ -1419,21 +1419,16 @@ StScrollBar { color: $osd_fg_color; background-color: $dark_sidebar_bg; border-color: rgba(0,0,0,0.4); - padding: 6px 1px 6px 0px; + padding: 4px 0; border-radius: 0 3px 3px 0; &:rtl { border-radius: 3px 0 0 3px; } .right &, - &:rtl { - padding: 6px 0px 6px 1px; - } - .bottom & { - padding: 1px 6px 0px 6px; - } - .top & { - padding: 0px 6px 1px 6px; - } + &:rtl { padding: 4px 0; } + + .top &, .bottom & { padding: 0; } + .placeholder { background-image: url("common-assets/dash/dash-placeholder.svg"); background-size: contain; @@ -1447,11 +1442,10 @@ StScrollBar { } .dash-item-container > StWidget { - padding: 0px 4px 0px 5px; - .right &, &:rtl { padding: 0px 5px 0px 4px; } - .bottom & { padding: 4px 0px 5px 0px; } - .top & { padding: 5px 0px 4px 0px; } + &, &:rtl, .right & { padding: 4px 8px; } + + .top &, .bottom & { padding: 6px; } } //osd tooltip @@ -1472,13 +1466,6 @@ StScrollBar { // Dash Buttons #dash .app-well-app { - .overview-icon, - .right & .overview-icon, - .bottom & .overview-icon, - .top & .overview-icon { - padding: 10px; - } - &:hover .overview-icon, .right &:hover .overview-icon, .bottom &:hover .overview-icon, @@ -1497,7 +1484,7 @@ StScrollBar { &-running-dot { width: 11px; height: 2px; - margin-bottom: 6px; + margin-bottom: 2px; background-color: $selected_bg_color; } } @@ -1519,7 +1506,6 @@ StScrollBar { .show-apps { .overview-icon { - padding: 11px; background-color: transparentize(black, 0.5); border-radius: 2px; border: 0px solid; diff --git a/common/gnome-shell/3.18/gnome-shell-dark.css b/common/gnome-shell/3.18/gnome-shell-dark.css index 68b3d6f..db3555a 100644 --- a/common/gnome-shell/3.18/gnome-shell-dark.css +++ b/common/gnome-shell/3.18/gnome-shell-dark.css @@ -1214,16 +1214,14 @@ StScrollBar { color: #BAC3CF; background-color: rgba(53, 57, 69, 0.95); border-color: rgba(0, 0, 0, 0.4); - padding: 6px 1px 6px 0px; + padding: 4px 0; border-radius: 0 3px 3px 0; } #dash:rtl { border-radius: 3px 0 0 3px; } .right #dash, #dash:rtl { - padding: 6px 0px 6px 1px; } - .bottom #dash { - padding: 1px 6px 0px 6px; } - .top #dash { - padding: 0px 6px 1px 6px; } + padding: 4px 0; } + .top #dash, .bottom #dash { + padding: 0; } #dash .placeholder { background-image: url("common-assets/dash/dash-placeholder.svg"); background-size: contain; @@ -1232,14 +1230,11 @@ StScrollBar { width: 24px; height: 24px; } -.dash-item-container > StWidget { - padding: 0px 4px 0px 5px; } - .right .dash-item-container > StWidget, .dash-item-container > StWidget:rtl { - padding: 0px 5px 0px 4px; } - .bottom .dash-item-container > StWidget { - padding: 4px 0px 5px 0px; } - .top .dash-item-container > StWidget { - padding: 5px 0px 4px 0px; } +.dash-item-container > StWidget, .dash-item-container > StWidget:rtl, .right .dash-item-container > StWidget { + padding: 4px 8px; } + +.top .dash-item-container > StWidget, .bottom .dash-item-container > StWidget { + padding: 6px; } .dash-label { border-radius: 3px; @@ -1252,12 +1247,6 @@ StScrollBar { -y-offset: 3px; -x-offset: 0; } -#dash .app-well-app .overview-icon, -.right #dash .app-well-app .overview-icon, -.bottom #dash .app-well-app .overview-icon, -.top #dash .app-well-app .overview-icon { - padding: 10px; } - #dash .app-well-app:hover .overview-icon, .right #dash .app-well-app:hover .overview-icon, .bottom #dash .app-well-app:hover .overview-icon, @@ -1274,7 +1263,7 @@ StScrollBar { #dash .app-well-app-running-dot { width: 11px; height: 2px; - margin-bottom: 6px; + margin-bottom: 2px; background-color: #5294e2; } #dashtodockContainer .app-well-app-running-dot { @@ -1295,7 +1284,6 @@ StScrollBar { background-image: url("common-assets/dash/running4.svg"); } .show-apps .overview-icon { - padding: 11px; background-color: rgba(0, 0, 0, 0.5); border-radius: 2px; border: 0px solid; } diff --git a/common/gnome-shell/3.18/gnome-shell.css b/common/gnome-shell/3.18/gnome-shell.css index b27c78f..45b2d1d 100644 --- a/common/gnome-shell/3.18/gnome-shell.css +++ b/common/gnome-shell/3.18/gnome-shell.css @@ -1214,16 +1214,14 @@ StScrollBar { color: #BAC3CF; background-color: rgba(53, 57, 69, 0.95); border-color: rgba(0, 0, 0, 0.4); - padding: 6px 1px 6px 0px; + padding: 4px 0; border-radius: 0 3px 3px 0; } #dash:rtl { border-radius: 3px 0 0 3px; } .right #dash, #dash:rtl { - padding: 6px 0px 6px 1px; } - .bottom #dash { - padding: 1px 6px 0px 6px; } - .top #dash { - padding: 0px 6px 1px 6px; } + padding: 4px 0; } + .top #dash, .bottom #dash { + padding: 0; } #dash .placeholder { background-image: url("common-assets/dash/dash-placeholder.svg"); background-size: contain; @@ -1232,14 +1230,11 @@ StScrollBar { width: 24px; height: 24px; } -.dash-item-container > StWidget { - padding: 0px 4px 0px 5px; } - .right .dash-item-container > StWidget, .dash-item-container > StWidget:rtl { - padding: 0px 5px 0px 4px; } - .bottom .dash-item-container > StWidget { - padding: 4px 0px 5px 0px; } - .top .dash-item-container > StWidget { - padding: 5px 0px 4px 0px; } +.dash-item-container > StWidget, .dash-item-container > StWidget:rtl, .right .dash-item-container > StWidget { + padding: 4px 8px; } + +.top .dash-item-container > StWidget, .bottom .dash-item-container > StWidget { + padding: 6px; } .dash-label { border-radius: 3px; @@ -1252,12 +1247,6 @@ StScrollBar { -y-offset: 3px; -x-offset: 0; } -#dash .app-well-app .overview-icon, -.right #dash .app-well-app .overview-icon, -.bottom #dash .app-well-app .overview-icon, -.top #dash .app-well-app .overview-icon { - padding: 10px; } - #dash .app-well-app:hover .overview-icon, .right #dash .app-well-app:hover .overview-icon, .bottom #dash .app-well-app:hover .overview-icon, @@ -1274,7 +1263,7 @@ StScrollBar { #dash .app-well-app-running-dot { width: 11px; height: 2px; - margin-bottom: 6px; + margin-bottom: 2px; background-color: #5294e2; } #dashtodockContainer .app-well-app-running-dot { @@ -1295,7 +1284,6 @@ StScrollBar { background-image: url("common-assets/dash/running4.svg"); } .show-apps .overview-icon { - padding: 11px; background-color: rgba(0, 0, 0, 0.5); border-radius: 2px; border: 0px solid; } diff --git a/common/gnome-shell/3.18/sass/_common.scss b/common/gnome-shell/3.18/sass/_common.scss index 057ed37..2bc78a4 100644 --- a/common/gnome-shell/3.18/sass/_common.scss +++ b/common/gnome-shell/3.18/sass/_common.scss @@ -1583,21 +1583,16 @@ StScrollBar { color: $osd_fg_color; background-color: $dark_sidebar_bg; border-color: rgba(0,0,0,0.4); - padding: 6px 1px 6px 0px; + padding: 4px 0; border-radius: 0 3px 3px 0; &:rtl { border-radius: 3px 0 0 3px; } .right &, - &:rtl { - padding: 6px 0px 6px 1px; - } - .bottom & { - padding: 1px 6px 0px 6px; - } - .top & { - padding: 0px 6px 1px 6px; - } + &:rtl { padding: 4px 0; } + + .top &, .bottom & { padding: 0; } + .placeholder { background-image: url("common-assets/dash/dash-placeholder.svg"); background-size: contain; @@ -1611,11 +1606,10 @@ StScrollBar { } .dash-item-container > StWidget { - padding: 0px 4px 0px 5px; - .right &, &:rtl { padding: 0px 5px 0px 4px; } - .bottom & { padding: 4px 0px 5px 0px; } - .top & { padding: 5px 0px 4px 0px; } + &, &:rtl, .right & { padding: 4px 8px; } + + .top &, .bottom & { padding: 6px; } } //osd tooltip @@ -1636,13 +1630,6 @@ StScrollBar { // Dash Buttons #dash .app-well-app { - .overview-icon, - .right & .overview-icon, - .bottom & .overview-icon, - .top & .overview-icon { - padding: 10px; - } - &:hover .overview-icon, .right &:hover .overview-icon, .bottom &:hover .overview-icon, @@ -1661,7 +1648,7 @@ StScrollBar { &-running-dot { width: 11px; height: 2px; - margin-bottom: 6px; + margin-bottom: 2px; background-color: $selected_bg_color; } } @@ -1683,7 +1670,6 @@ StScrollBar { .show-apps { .overview-icon { - padding: 11px; background-color: transparentize(black, 0.5); border-radius: 2px; border: 0px solid;