mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-30 16:34:45 +08:00
feat(icons): mac hover state shows icons
Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1359
This commit is contained in:
parent
7c298aa158
commit
286fdcfad9
4 changed files with 20 additions and 26 deletions
BIN
static/images/application-frame/close@2x.png
Normal file
BIN
static/images/application-frame/close@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
static/images/application-frame/maximize@2x.png
Normal file
BIN
static/images/application-frame/maximize@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
static/images/application-frame/minimize@2x.png
Normal file
BIN
static/images/application-frame/minimize@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -66,43 +66,37 @@ atom-workspace {
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
button {
|
||||||
|
background-position: 0 -12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
padding:0;
|
padding:0;
|
||||||
width:13px;
|
width:12px;
|
||||||
height:13px;
|
height:12px;
|
||||||
margin:4px;
|
margin:4px;
|
||||||
border-radius: 13px;
|
|
||||||
border: 1px solid rgba(0,0,0,0.2);
|
|
||||||
float:left;
|
float:left;
|
||||||
|
background-color: transparent;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 0 0;
|
||||||
|
background-size: 12px 48px;
|
||||||
|
border: 0;
|
||||||
|
&:active {
|
||||||
|
background-position: 0 -24px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.close {
|
.close {
|
||||||
background-color: #FB0015;
|
background-image: url("images/application-frame/close@2x.png");
|
||||||
&:hover {
|
|
||||||
background-color: darken(#FB0015, 10%);
|
|
||||||
}
|
|
||||||
&:active {
|
|
||||||
background-color: darken(#FB0015, 20%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.minimize {
|
.minimize {
|
||||||
background-color: #FCB40A;
|
background-image: url("images/application-frame/minimize@2x.png");
|
||||||
&:hover {
|
|
||||||
background-color: darken(#FCB40A, 10%);
|
|
||||||
}
|
|
||||||
&:active {
|
|
||||||
background-color: darken(#FCB40A, 20%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.maximize {
|
.maximize {
|
||||||
background-color: #0AAF00;
|
background-image: url("images/application-frame/maximize@2x.png");
|
||||||
&:hover {
|
|
||||||
background-color: darken(#0AAF00, 10%);
|
|
||||||
}
|
|
||||||
&:active {
|
|
||||||
background-color: darken(#0AAF00, 20%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,7 +109,7 @@ body.platform-win32, body.platform-linux {
|
||||||
body.is-blurred {
|
body.is-blurred {
|
||||||
.toolbar-window-controls {
|
.toolbar-window-controls {
|
||||||
button {
|
button {
|
||||||
background-color: desaturate(fade(#FCB40A, 20%), 100%);
|
background-position: 0 -36px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue