Skip to content
Permalink
Browse files

desktop them support (#280)

  • Loading branch information...
maxence-charriere committed Apr 12, 2019
1 parent 311004d commit a4bd499377b93214614b805d3c2c74e0fea2379d
Showing with 38 additions and 2 deletions.
  1. +2 −0 demo/web/hello.css
  2. +18 −1 internal/http/page.css
  3. +18 −1 internal/http/templates.go
@@ -7,6 +7,7 @@ h1 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: white;
}

input {
@@ -48,6 +49,7 @@ input:focus {
padding: 12px;
font-size: 24px;
font-weight: 200;
color: white;
}

.Menu:hover {
@@ -145,7 +145,7 @@ button {
border-radius: 6px;
border: solid 1px rgba(255, 255, 255, 0.1);
background: #21252a;
color: white;
color: currentColor;
-webkit-box-shadow: -1px 12px 38px 0px rgba(0, 0, 0, 0.6);
-moz-box-shadow: -1px 12px 38px 0px rgba(0, 0, 0, 0.6);
box-shadow: -1px 12px 38px 0px rgba(0, 0, 0, 0.6);
@@ -223,7 +223,24 @@ button {
from {
transform: rotate(0deg);
}

to {
transform: rotate(359deg);
}
}

@media (prefers-color-scheme: light) {
body {
color: black;
background-color: #f8f8f8;
}

#App_ContextMenu {
background-color: #f8f8f8;
border: solid 1px rgba(0, 0, 0, 0.2);
}

.App_MenuItemSeparator {
border-top: solid 1px rgba(0, 0, 0, 0.2);
}
}
@@ -183,7 +183,7 @@ button {
border-radius: 6px;
border: solid 1px rgba(255, 255, 255, 0.1);
background: #21252a;
color: white;
color: currentColor;
-webkit-box-shadow: -1px 12px 38px 0px rgba(0, 0, 0, 0.6);
-moz-box-shadow: -1px 12px 38px 0px rgba(0, 0, 0, 0.6);
box-shadow: -1px 12px 38px 0px rgba(0, 0, 0, 0.6);
@@ -261,9 +261,26 @@ button {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
@media (prefers-color-scheme: light) {
body {
color: black;
background-color: #f8f8f8;
}
#App_ContextMenu {
background-color: #f8f8f8;
border: solid 1px rgba(0, 0, 0, 0.2);
}
.App_MenuItemSeparator {
border-top: solid 1px rgba(0, 0, 0, 0.2);
}
}`

const pageJS = `// -----------------------------------------------------------------------------

0 comments on commit a4bd499

Please sign in to comment.
You can’t perform that action at this time.