Dark theme fixes for Microsoft Edge
This commit is contained in:
parent
6a483929d2
commit
58eaf53694
|
@ -1,4 +1,9 @@
|
||||||
/* Forced dark theme for Bulma (custom created for nonshy) */
|
/* Forced dark theme for Bulma (custom created for nonshy) */
|
||||||
|
|
||||||
|
/* nonshy custom overrides */
|
||||||
|
@import url("dark-theme.css");
|
||||||
|
|
||||||
|
/* Copied from bulma.css - original dark theme styles */
|
||||||
:root {
|
:root {
|
||||||
--bulma-white-on-scheme-l: 100%;
|
--bulma-white-on-scheme-l: 100%;
|
||||||
--bulma-white-on-scheme: hsla(var(--bulma-white-h), var(--bulma-white-s), var(--bulma-white-on-scheme-l), 1);
|
--bulma-white-on-scheme: hsla(var(--bulma-white-h), var(--bulma-white-s), var(--bulma-white-on-scheme-l), 1);
|
||||||
|
|
46
web/static/css/dark-theme.css
Normal file
46
web/static/css/dark-theme.css
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
/* Custom nonshy color overrides for Bulma's dark theme */
|
||||||
|
|
||||||
|
/* nonshy custom overrides */
|
||||||
|
.has-background-primary-light {
|
||||||
|
background-color: rgba(28, 166, 76, 0.25) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-background-success-light, .has-background-success {
|
||||||
|
background-color: rgba(19, 71, 37, 0.685) !important
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-background-warning-light, .has-background-warning, .nonshy-navbar-notification-tag.is-warning {
|
||||||
|
background-color: rgb(100, 90, 41) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-background-link-light {
|
||||||
|
background-color: rgba(15, 129, 204, 0.25) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-text-dark {
|
||||||
|
/* note: this css file otherwise didn't override this, dark's always dark, brighten it! */
|
||||||
|
color: #b5b5b5 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.has-text-dark:focus,
|
||||||
|
a.has-text-dark:hover {
|
||||||
|
color: #d5d5d5 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-background {
|
||||||
|
background-color: rgba(0, 0, 0, 0.86) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tag color overrides */
|
||||||
|
.tag.is-grey {
|
||||||
|
background-color: #3f3f3f;
|
||||||
|
color: #eee;
|
||||||
|
}
|
||||||
|
.tag.is-danger.is-light {
|
||||||
|
background-color: #500;
|
||||||
|
color: #FCC;
|
||||||
|
}
|
||||||
|
.tag.is-warning {
|
||||||
|
background-color: #550;
|
||||||
|
color: #FFC;
|
||||||
|
}
|
5
web/static/css/nonshy-prefers-dark.css
Normal file
5
web/static/css/nonshy-prefers-dark.css
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/* Custom nonshy color overrides for Bulma's dark theme
|
||||||
|
(prefers-dark edition) */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
@import url("dark-theme.css");
|
||||||
|
}
|
|
@ -269,7 +269,7 @@
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="card" id="notifications">
|
<div class="card" id="notifications">
|
||||||
<header class="card-header has-background-warning">
|
<header class="card-header has-background-warning">
|
||||||
<p class="card-header-title has-text-dark">Notifications</p>
|
<p class="card-header-title">Notifications</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/bulma-no-dark-mode.min.css?build={{.BuildHash}}">
|
<link rel="stylesheet" type="text/css" href="/static/css/bulma-no-dark-mode.min.css?build={{.BuildHash}}">
|
||||||
{{else if eq .WebsiteTheme "dark"}}
|
{{else if eq .WebsiteTheme "dark"}}
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/bulma-dark-theme.css?build={{.BuildHash}}">
|
<link rel="stylesheet" type="text/css" href="/static/css/bulma-dark-theme.css?build={{.BuildHash}}">
|
||||||
|
{{else}}
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/css/nonshy-prefers-dark.css?build={{.BuildHash}}">
|
||||||
{{end}}
|
{{end}}
|
||||||
<link rel="stylesheet" href="/static/fontawesome-free-6.1.2-web/css/all.css">
|
<link rel="stylesheet" href="/static/fontawesome-free-6.1.2-web/css/all.css">
|
||||||
<link rel="stylesheet" href="/static/css/theme.css?build={{.BuildHash}}">
|
<link rel="stylesheet" href="/static/css/theme.css?build={{.BuildHash}}">
|
||||||
|
|
|
@ -5,10 +5,8 @@
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
<a href="/f/{{.Forum.Fragment}}" class="has-text-light">
|
<span class="icon mr-4"><i class="fa fa-comments"></i></span>
|
||||||
<span class="icon mr-4"><i class="fa fa-comments"></i></span>
|
<span>{{.Forum.Title}}</span>
|
||||||
<span>{{.Forum.Title}}</span>
|
|
||||||
</a>
|
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -83,21 +83,21 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{{if .Explicit}}
|
{{if .Explicit}}
|
||||||
<span class="tag is-danger is-light has-text-dark">
|
<span class="tag is-danger is-light">
|
||||||
<span class="icon"><i class="fa fa-fire"></i></span>
|
<span class="icon"><i class="fa fa-fire"></i></span>
|
||||||
<span>Explicit</span>
|
<span>Explicit</span>
|
||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if .Privileged}}
|
{{if .Privileged}}
|
||||||
<span class="tag is-warning is-light has-text-dark">
|
<span class="tag is-warning is-light">
|
||||||
<span class="icon"><i class="fa fa-peace"></i></span>
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
||||||
<span>Privileged</span>
|
<span>Privileged</span>
|
||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if .PermitPhotos}}
|
{{if .PermitPhotos}}
|
||||||
<span class="tag is-grey has-text-dark">
|
<span class="tag is-grey">
|
||||||
<span class="icon"><i class="fa fa-camera"></i></span>
|
<span class="icon"><i class="fa fa-camera"></i></span>
|
||||||
<span>Photos</span>
|
<span>Photos</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -5,10 +5,8 @@
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
<a href="/f/{{.Forum.Fragment}}" class="has-text-light">
|
<span class="icon mr-4"><i class="fa fa-comments"></i></span>
|
||||||
<span class="icon mr-4"><i class="fa fa-comments"></i></span>
|
<span>{{.Forum.Title}}</span>
|
||||||
<span>{{.Forum.Title}}</span>
|
|
||||||
</a>
|
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
<div class="card-content p-2">
|
<div class="card-content p-2">
|
||||||
<ul class="menu-list">
|
<ul class="menu-list">
|
||||||
<li>
|
<li>
|
||||||
<a href="/messages"{{if .NavUnreadMessages}} class="has-text-warning-dark"{{end}}>
|
<a href="/messages"{{if .NavUnreadMessages}} class="has-text-warning"{{end}}>
|
||||||
<span class="icon"><i class="fa fa-envelope"></i></span>
|
<span class="icon"><i class="fa fa-envelope"></i></span>
|
||||||
{{if .NavUnreadMessages}}
|
{{if .NavUnreadMessages}}
|
||||||
<span>{{.NavUnreadMessages}} New Message{{Pluralize64 .NavUnreadMessages}}!</span>
|
<span>{{.NavUnreadMessages}} New Message{{Pluralize64 .NavUnreadMessages}}!</span>
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="/friends{{if .NavFriendRequests}}?view=requests{{end}}"{{if .NavFriendRequests}} class="has-text-warning-dark"{{end}}>
|
<a href="/friends{{if .NavFriendRequests}}?view=requests{{end}}"{{if .NavFriendRequests}} class="has-text-warning"{{end}}>
|
||||||
<span class="icon"><i class="fa fa-user-group"></i></span>
|
<span class="icon"><i class="fa fa-user-group"></i></span>
|
||||||
{{if .NavFriendRequests}}
|
{{if .NavFriendRequests}}
|
||||||
<span>{{.NavFriendRequests}} Friend Request{{Pluralize64 .NavFriendRequests}}!</span>
|
<span>{{.NavFriendRequests}} Friend Request{{Pluralize64 .NavFriendRequests}}!</span>
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="/me{{if .NavUnreadNotifications}}?view=requests{{end}}"{{if .NavUnreadNotifications}} class="has-text-warning-dark"{{end}}>
|
<a href="/me{{if .NavUnreadNotifications}}?view=requests{{end}}"{{if .NavUnreadNotifications}} class="has-text-warning"{{end}}>
|
||||||
<span class="icon"><i class="fa {{if .NavUnreadNotifications}}fa-bell{{else}}fa-home-user{{end}}"></i></span>
|
<span class="icon"><i class="fa {{if .NavUnreadNotifications}}fa-bell{{else}}fa-home-user{{end}}"></i></span>
|
||||||
{{if .NavUnreadNotifications}}
|
{{if .NavUnreadNotifications}}
|
||||||
<span>{{.NavUnreadNotifications}} New Notification{{Pluralize64 .NavUnreadNotifications}}!</span>
|
<span>{{.NavUnreadNotifications}} New Notification{{Pluralize64 .NavUnreadNotifications}}!</span>
|
||||||
|
|
|
@ -178,7 +178,7 @@
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="card-content">
|
<div class="card-content px-4">
|
||||||
<form action="/comments" method="POST">
|
<form action="/comments" method="POST">
|
||||||
{{InputCSRF}}
|
{{InputCSRF}}
|
||||||
<input type="hidden" name="table_name" value="photos">
|
<input type="hidden" name="table_name" value="photos">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user