[gnome-shell-sass] theme: search-entry, use more variables
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] theme: search-entry, use more variables
- Date: Thu, 9 Jan 2020 17:28:58 +0000 (UTC)
commit 2da4823e994e518f8ad1f515b93f037a8474baad
Author: Sam Hewitt <sam snwh org>
Date: Thu Dec 19 19:05:46 2019 -0500
theme: search-entry, use more variables
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/904
widgets/_search-entry.scss | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/widgets/_search-entry.scss b/widgets/_search-entry.scss
index 115b693..329dbc7 100644
--- a/widgets/_search-entry.scss
+++ b/widgets/_search-entry.scss
@@ -1,12 +1,13 @@
// Search entry
$search_entry_width: 320px;
+$search_entry_height: 36px;
%search_entry,
.search-entry {
width: $search_entry_width;
- padding: 7px 9px;
- border-radius: 18px;
+ padding: $base_padding+1 $base_padding+3;
+ border-radius: $search_entry_height * 0.5; // half the height
color: transparentize($fg_color,0.3);
background-color: $bg_color;
border-color: $borders_color;
@@ -18,10 +19,11 @@ $search_entry_width: 320px;
}
&:focus {
- padding: 6px 8px; // 1px less to account for wider border
+ padding: $base_padding $base_padding+2; // 1px less to account for wider border
border-width: 2px;
- color: $fg_color;
+ border-style: solid;
border-color: $selected_bg_color;
+ color: $fg_color;
box-shadow: inset 0 1px 2px 1px rgba(0,0,0,0.2);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]