Skip to content

Commit 29777e2

Browse files
authored
Add a style for .keycap (#171)
1 parent 11c595d commit 29777e2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

gtk-3.22/gtk-widgets.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,28 @@ rubberband,
138138
font-family: monospace;
139139
}
140140

141+
.keycap {
142+
background-image:
143+
linear-gradient(
144+
to bottom,
145+
shade (
146+
@bg_color,
147+
0.95
148+
),
149+
@bg_color
150+
);
151+
border: 1px solid @border_color;
152+
border-radius: 2.5px;
153+
box-shadow:
154+
inset 0 0 0 1px alpha (@bg_highlight_color, 0.05),
155+
inset 0 1px 0 0 alpha (@bg_highlight_color, 0.45),
156+
inset 0 -1px 0 0 alpha (@bg_highlight_color, 0.15),
157+
0 1px 0 0 @border_color;
158+
min-width: 16px;
159+
padding: 3px 6px;
160+
text-shadow: 0 1px @text_shadow_color;
161+
}
162+
141163
/**************
142164
* Separators *
143165
*************/

0 commit comments

Comments
 (0)