Skip to content

Commit

Permalink
Initial implementation of dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ferndot committed Dec 10, 2014
1 parent 926ab5e commit 66c227a
Show file tree
Hide file tree
Showing 12 changed files with 137 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<title>tabs</title>
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/theme.css">

<!-- Alternate themes -->
<link rel="alternate stylesheet" href="themes/dark/dark.css">

<!-- Module handling -->
<!-- All further JS code is loaded from javascript -->
<script data-main="app" src="lib/require.js/require.js"
Expand Down
133 changes: 133 additions & 0 deletions themes/dark/dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
:root {
--toolbarbutton-hover-background-image: linear-gradient(hsla(0,0%,30%,.7), hsla(0,0%,30%,.2)),
linear-gradient(hsla(0,0%,0%,.3), hsla(0,0%,0%,.3));
--toolbarbutton-hover-boxshadow: transparent;
--toolbarbutton-hover-bordercolor: rgb(47,47,47);

--toolbarbutton-active-boxshadow: transparent;
--toolbarbutton-active-bordercolor: rgb(25,25,25);
--toolbarbutton-active-background-image: linear-gradient(hsla(0,0%,0%,.7), hsla(0,0%,0%,.4)),
linear-gradient(rgba(154,154,154,.5),rgba(154,154,154,.5));
}

/* tabs */
.tabstrip {
background-image: linear-gradient(to top, #1B1B1B, #3D3D3D);
}

[os="linux"] .dummy-tab-curve {
/* These values are used in curvedTabs.js */
--curve-border: transparent;
--curve-gradient-start: #4F4F4F;
--curve-gradient-end: #424242;
--curve-hover-border: transparent;
--curve-hover-gradient-start: rgba(255,255,255,0.4);
--curve-hover-gradient-end: rgba(255,255,255,0.4);
}

[os="windows"] .dummy-tab-curve {
/* These values are used in curvedTabs.js */
--curve-border: transparent;
--curve-gradient-start: #4F4F4F;
--curve-gradient-end: #424242;
--curve-hover-border: #212121;
--curve-hover-gradient-start: transparent;
--curve-hover-gradient-end: transparent;
}

[os="osx"] .dummy-tab-curve {
/* These values are used in curvedTabs.js */
--curve-gradient-start: #4F4F4F;
--curve-gradient-end: #424242;
--curve-border: #212121;
--curve-hover-border: #212121;
}

.tab,
.tab.selected {
color: #ffffff;
}

.tab:not(.selected):not(:hover) + .tab:not(.selected):not(:hover):not(:first-of-type) {
background-image: linear-gradient(to top, #040404, transparent 80%);
}

/* navbar */
.navbar {
background-image: linear-gradient(#424242, #2F2F2F);
}

.urlbar, .searchbar {
background-color: #202020;
border-color: #191919;
}

.urlbar.focus, .searchbar.focus {
border-color: #191919;
box-shadow: 0 0 0 3px #AE29D9;
}

.urlinput, .searchinput {
color: #ffffff;
}

/* icons */
.navbar > button {
color: #ffffff;
background-image: url(images/Toolbar.png);
}

.navbar > button:hover {
background-image: url(images/Toolbar.png), var(--toolbarbutton-hover-background-image);
}

.navbar > button:hover:active {
background-image: url(images/Toolbar.png), var(--toolbarbutton-active-background-image);
}

.tab > .close-button {
background-image: url(images/close.png);
}

.searchselector {
background-image: url(images/Search.png);
}

.identity {
background-image: url(images/identity-icons-generic.png);
}

body.ssl .identity {
background-image: url(images/identity-icons-https.png);
}

body.sslev .identity {
background-image: url(images/identity-icons-https-ev.png);
}

@media (min-resolution: 2dppx) {
.navbar > button {
background-image: url(images/[email protected]);
}
.navbar > button:hover {
background-image: url(images/[email protected]), var(--toolbarbutton-hover-background-image);
}
.navbar > button:hover:active {
background-image: url(images/[email protected]), var(--toolbarbutton-active-background-image);
}
.tab > .close-button {
background-image: url(images/[email protected]);
}
.searchselector {
background-image: url(images/[email protected]);
}
.identity {
background-image: url(images/[email protected]);
}
body.ssl .identity {
background-image: url(images/[email protected]);
}
body.sslev .identity {
background-image: url(images/[email protected]);
}
}
Binary file added themes/dark/images/Search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/Toolbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/identity-icons-generic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/identity-icons-https.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/dark/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 66c227a

Please sign in to comment.