Merge pull request #35 from louislam/revert-32-feature/darkmode
Revert "basic darkmode"
This commit is contained in:
		
						commit
						c5de82b220
					
				
					 7 changed files with 21 additions and 87 deletions
				
			
		|  | @ -1,46 +1,16 @@ | ||||||
| @import "vars.scss"; | @import "vars.scss"; | ||||||
| @import "node_modules/bootstrap/scss/bootstrap"; | @import "node_modules/bootstrap/scss/bootstrap"; | ||||||
| 
 | 
 | ||||||
| html, |  | ||||||
| body, |  | ||||||
| input, |  | ||||||
| .modal-content { |  | ||||||
|     background: var(--page-background); |  | ||||||
|     color: var(--main-font-color); |  | ||||||
| } |  | ||||||
| a, |  | ||||||
| .table, |  | ||||||
| .nav-link { |  | ||||||
|     color: var(--main-font-color); |  | ||||||
| } |  | ||||||
| .nav-pills .nav-link.active, |  | ||||||
| .nav-pills .show > .nav-link { |  | ||||||
|     color: #0a0a0a; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .nav-link:hover, |  | ||||||
| .nav-link:focus { |  | ||||||
|     color: #5cdd8b; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .form-control, |  | ||||||
| .form-control:focus, |  | ||||||
| .form-select, |  | ||||||
| .form-select:focus { |  | ||||||
|     color: var(--main-font-color); |  | ||||||
|     background-color: var(--background-4); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| #app { | #app { | ||||||
|     font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, |     font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji; | ||||||
|         segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, |  | ||||||
|         apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .shadow-box { | .shadow-box { | ||||||
|     overflow: hidden; |     overflow: hidden; | ||||||
|     box-shadow: 0 15px 70px rgba(0, 0, 0, 0.1); |     box-shadow: 0 15px 70px rgba(0, 0, 0, .1); | ||||||
|     padding: 10px; |     padding: 10px; | ||||||
|  |     border-radius: 10px; | ||||||
|  | 
 | ||||||
|     &.big-padding { |     &.big-padding { | ||||||
|         padding: 20px; |         padding: 20px; | ||||||
|     } |     } | ||||||
|  | @ -52,14 +22,10 @@ a, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .btn-primary { | .btn-primary { | ||||||
|     // color: white; |     color: white; | ||||||
|     color: #0a0a0a; |  | ||||||
| 
 | 
 | ||||||
|     &:hover, |     &:hover, &:active, &:focus, &.active { | ||||||
|     &:active, |         color: white; | ||||||
|     &:focus, |  | ||||||
|     &.active { |  | ||||||
|         color: #0a0a0a; |  | ||||||
|         background-color: $highlight; |         background-color: $highlight; | ||||||
|         border-color: $highlight; |         border-color: $highlight; | ||||||
|     } |     } | ||||||
|  | @ -70,8 +36,3 @@ a, | ||||||
|     backdrop-filter: blur(3px); |     backdrop-filter: blur(3px); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @media (prefers-color-scheme: dark) { |  | ||||||
|     a:hover { |  | ||||||
|         color: #7ce8a4; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  |  | ||||||
|  | @ -1,27 +1,7 @@ | ||||||
| $primary: #5cdd8b; | $primary: #5CDD8B; | ||||||
| $danger: #dc3545; | $danger: #DC3545; | ||||||
| $link-color: #111; | $link-color: #111; | ||||||
| $border-radius: .25rem; | $border-radius: 50rem; | ||||||
| 
 | 
 | ||||||
| $highlight: #7ce8a4; | $highlight: #7ce8a4; | ||||||
| $highlight-white: #e7faec; | $highlight-white: #e7faec; | ||||||
| 
 |  | ||||||
| :root { |  | ||||||
|     color-scheme: light dark; |  | ||||||
|     //  |  | ||||||
|     --page-background: #fafafa; |  | ||||||
|     --background-secondary: #d0d3d5; |  | ||||||
|     --background-4: #d0d3d5; |  | ||||||
|     --background-ternary: #d0d3d5; |  | ||||||
|     --main-font-color: #212529; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| @media (prefers-color-scheme: dark) { |  | ||||||
|     :root { |  | ||||||
|         --page-background: #0a0a0a; |  | ||||||
|         --background-secondary: #656565; |  | ||||||
|         --background-4: #313131; |  | ||||||
|         --background-ternary: #a7a7a7; |  | ||||||
|         --main-font-color: #e4e4e4; |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  | @ -159,7 +159,7 @@ export default { | ||||||
|         border-radius: 50rem; |         border-radius: 50rem; | ||||||
| 
 | 
 | ||||||
|         &.empty { |         &.empty { | ||||||
|             background-color: var(--background-ternary); |             background-color: aliceblue; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         &.down { |         &.down { | ||||||
|  |  | ||||||
|  | @ -36,7 +36,4 @@ export default { | ||||||
|     span { |     span { | ||||||
|         width: 45px; |         width: 45px; | ||||||
|     } |     } | ||||||
| .badge { |  | ||||||
|     color: #0a0a0a; |  | ||||||
| } |  | ||||||
| </style> | </style> | ||||||
|  |  | ||||||
|  | @ -57,7 +57,5 @@ export default { | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <style scoped> | <style scoped> | ||||||
| .badge{ | 
 | ||||||
|     color: #0a0a0a; |  | ||||||
| } |  | ||||||
| </style> | </style> | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
| 
 | 
 | ||||||
|     <!-- Desktop header --> |     <!-- Desktop header --> | ||||||
|     <header class="d-flex flex-wrap justify-content-center py-3 mb-3 border-bottom" v-if="! $root.isMobile"> |     <header class="d-flex flex-wrap justify-content-center py-3 mb-3 border-bottom" v-if="! $root.isMobile"> | ||||||
|         <router-link to="/dashboard" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-decoration-none"> |         <router-link to="/dashboard" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none"> | ||||||
|             <object class="bi me-2 ms-4" width="40" height="40" data="/icon.svg"></object> |             <object class="bi me-2 ms-4" width="40" height="40" data="/icon.svg"></object> | ||||||
|             <span class="fs-4 title">Uptime Kuma</span> |             <span class="fs-4 title">Uptime Kuma</span> | ||||||
|         </router-link> |         </router-link> | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
| 
 | 
 | ||||||
|     <!-- Mobile header --> |     <!-- Mobile header --> | ||||||
|     <header class="d-flex flex-wrap justify-content-center mt-3 mb-3" v-else> |     <header class="d-flex flex-wrap justify-content-center mt-3 mb-3" v-else> | ||||||
|         <router-link to="/dashboard" class="d-flex align-items-center text-decoration-none"> |         <router-link to="/dashboard" class="d-flex align-items-center  text-dark text-decoration-none"> | ||||||
|             <object class="bi" width="40" height="40" data="/icon.svg"></object> |             <object class="bi" width="40" height="40" data="/icon.svg"></object> | ||||||
|             <span class="fs-4 title ms-2">Uptime Kuma</span> |             <span class="fs-4 title ms-2">Uptime Kuma</span> | ||||||
|         </router-link> |         </router-link> | ||||||
|  | @ -87,7 +87,7 @@ export default { | ||||||
|     height: 60px; |     height: 60px; | ||||||
|     width: 100%; |     width: 100%; | ||||||
|     left: 0; |     left: 0; | ||||||
|     background-color: var(--background-secondary); |     background-color: #fff; | ||||||
|     box-shadow: 0 15px 47px 0 rgba(0, 0, 0, 0.05), 0 5px 14px 0 rgba(0, 0, 0, 0.05); |     box-shadow: 0 15px 47px 0 rgba(0, 0, 0, 0.05), 0 5px 14px 0 rgba(0, 0, 0, 0.05); | ||||||
|     text-align: center; |     text-align: center; | ||||||
|     white-space: nowrap; |     white-space: nowrap; | ||||||
|  |  | ||||||
|  | @ -129,19 +129,17 @@ export default { | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         &:hover { |         &:hover { | ||||||
|             color: var(--main-font-color); |             background-color: $highlight-white; | ||||||
|             background-color: var(--background-4); |  | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         &.active { |         &.active { | ||||||
|             background-color: var(--background-secondary); |             background-color: #cdf8f4; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .badge { | .badge { | ||||||
|     min-width: 58px; |     min-width: 58px; | ||||||
|     color: #0a0a0a; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .small-padding { | .small-padding { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue