-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows buttons #13
Closed
Closed
Windows buttons #13
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4c101fe
added new page with button svgs
391c515
fixed unmaximize button
61f5bb3
split off index files
1606c35
can finally select html and style based on option 'os'
4ef1b9e
buttons now appear normal
e1b806e
pretty much finished
19294a2
made background white, organized css
5e0f1af
Fixed bugs noted from first pull request
bf2fa6d
code consistency...
cd90c94
Updated README.md
c969b74
Update index.js
katacarbix 8b529c3
renamed classes for compatibility
fc6cdbd
renamed files and titlebar-stoplight class
4e8f4cb
Update README.md
katacarbix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
.titlebar.tb-mac { | ||
padding: 0 3px; | ||
background-color: #f6f6f6; | ||
} | ||
|
||
.tb-mac.titlebar.webkit-draggable { | ||
-webkit-app-region: drag; | ||
} | ||
|
||
.tb-mac .titlebar-controls { | ||
float: left; | ||
text-align: left; | ||
} | ||
|
||
.tb-mac.titlebar:after, | ||
.tb-mac .titlebar-controls:after { | ||
content: ' '; | ||
display: table; | ||
clear: both; | ||
} | ||
|
||
.tb-mac .titlebar-controls:hover svg, | ||
.tb-mac .titlebar-controls:hover svg.fullscreen-svg, | ||
.tb-mac .titlebar-controls:hover svg.maximize-svg { | ||
opacity: 1; | ||
} | ||
|
||
.tb-mac.titlebar.alt svg.fullscreen-svg { | ||
display: none; | ||
} | ||
|
||
.tb-mac.titlebar.alt svg.maximize-svg { | ||
display: block; | ||
} | ||
|
||
.tb-mac .titlebar-close, | ||
.tb-mac .titlebar-minimize, | ||
.tb-mac .titlebar-fullscreen { | ||
float: left; | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 50%; | ||
margin: 6px 4px; | ||
line-height: 0; | ||
} | ||
|
||
.tb-mac.titlebar.webkit-draggable .titlebar-close, | ||
.tb-mac.titlebar.webkit-draggable .titlebar-minimize, | ||
.tb-mac.titlebar.webkit-draggable .titlebar-fullscreen { | ||
-webkit-app-region: no-drag; | ||
} | ||
|
||
.tb-mac .titlebar-close { | ||
border: 1px solid #e2463f; | ||
background-color: #ff5f57; | ||
margin-left: 6px; | ||
} | ||
|
||
.tb-mac .titlebar-close:active { | ||
border-color: #ad3934; | ||
background-color: #bf4943; | ||
} | ||
|
||
.tb-mac .titlebar-close svg { | ||
width: 6px; | ||
height: 6px; | ||
margin-top: 2px; | ||
margin-left: 2px; | ||
opacity: 0; | ||
} | ||
|
||
.tb-mac .titlebar-minimize { | ||
border: 1px solid #e1a116; | ||
background-color: #ffbd2e; | ||
} | ||
|
||
.tb-mac .titlebar-minimize:active { | ||
border-color: #ad7d15; | ||
background-color: #bf9123; | ||
} | ||
|
||
.tb-mac .titlebar-minimize svg { | ||
width: 8px; | ||
height: 8px; | ||
margin-top: 1px; | ||
margin-left: 1px; | ||
opacity: 0; | ||
} | ||
|
||
.tb-mac .titlebar-fullscreen, | ||
.tb-mac .titlebar-maximize { | ||
border: 1px solid #12ac28; | ||
background-color: #28c940; | ||
} | ||
|
||
.tb-mac .titlebar-fullscreen:active { | ||
border-color: #128622; | ||
background-color: #1f9a31; | ||
} | ||
|
||
.tb-mac .titlebar-fullscreen svg.fullscreen-svg { | ||
width: 6px; | ||
height: 6px; | ||
margin-top: 2px; | ||
margin-left: 2px; | ||
opacity: 0; | ||
} | ||
|
||
.tb-mac .titlebar-fullscreen svg.maximize-svg { | ||
width: 8px; | ||
height: 8px; | ||
margin-top: 1px; | ||
margin-left: 1px; | ||
opacity: 0; | ||
display: none; | ||
} | ||
|
||
.tb-mac.unfocused .titlebar-controls:not(:hover) > * { | ||
background-color: #dcdcdc; | ||
border-color: #d0d0d0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed that the titlebar changes height when the maximize button is pressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's intentional. It's the behavior Windows 10 uses when maximizing, and I checked that the height is correct.