* add screens css

* separate dir for screens

* separate dir for dashboard and settings

* separate dir for centeredbox and its contents

* move autosuggestion to centeredbox dir

* rename webmenu to webmenuscreen

* fix bugs and errors caused by renaming webmenu

* fix missing dashboard icons

* fix missing weather forecast  icons

* reduced the use of !important

* reduced the use of !important

* reduced the use of !important

* reduced the use of !important

* reduced the use of !important

* reduced the use of !important

* combine bars and panels

* bars css cleanup

* dashboard missing icon fix and css

* decrease the usage of !important

* decrease the usage of important
This commit is contained in:
Gerome Matilla 2020-06-16 13:00:55 +08:00 committed by GitHub
parent 96b2e988a2
commit c59d1ec0ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 391 additions and 422 deletions

View File

@ -1,5 +0,0 @@
.bar {
background: var(--panel-bg);
backdrop-filter: blur(var(--blur-strength));
z-index: 5;
}

13
css/bars/bar.css Normal file
View File

@ -0,0 +1,13 @@
.bar {
background: var(--panel-bg);
backdrop-filter: blur(var(--blur-strength));
z-index: 5;
/*Make clock unselectable*/
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

View File

@ -9,12 +9,4 @@
position: relative; position: relative;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
/*Make clock unselectable*/
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
} }

View File

@ -1,9 +1,9 @@
/*Dock buttons*/ /*Dock buttons*/
.dockButton { .dockButton {
background: var(--base-container);
width: 36px; width: 36px;
height: 36px; height: 36px;
position: relative; position: relative;
background: var(--base-container);
border-radius: var(--rounded-radius); border-radius: var(--rounded-radius);
margin: 2px; margin: 2px;
padding: 5px; padding: 5px;
@ -12,6 +12,23 @@
transition: transform .2s; transition: transform .2s;
} }
/*The a href container/main dock button container*/
.dockLink {
/*Act as div*/
display: block;
/*Remove outlines*/
text-decoration: none;
outline: 0;
border: none;
-moz-outline-style: none;
/*Disable dragging*/
user-select: none;
user-drag: none;
-webkit-user-drag: none;
}
.dockButton div { .dockButton div {
background-size: cover; background-size: cover;
width: 36px; width: 36px;
@ -49,20 +66,3 @@
.dockButtonImage { .dockButtonImage {
background-size: 'cover'; background-size: 'cover';
} }
/*The a href container/main dock button container*/
.dockLink {
/*Act as div*/
display: block;
/*Remove outlines*/
text-decoration: none;
outline: 0;
border: none;
-moz-outline-style: none;
/*Disable dragging*/
user-select: none;
user-drag: none;
-webkit-user-drag: none;
}

184
css/bars/dock.css Normal file
View File

@ -0,0 +1,184 @@
.dockContainer {
background: transparent;
position: absolute;
z-index: 5;
margin: 0 auto;
bottom: 0;
/*On bottom, center horizontally*/
left: 50%;
-ms-transform: translateX(-50%);
transform: translateX(-50%);
/*Add transition*/
transition: opacity var(--transition-speed);
}
#dock {
background: var(--panel-bg);
border-radius: var(--rounded-radius);
display: flex;
position: relative;
height: auto;
width: auto;
padding: 5px;
margin: 10px;
transition: transform var(--transition-speed);
z-index: 1;
}
/*Translate dock to left side if width <= 470 and height >= 540*/
@media screen and (max-width: 470px) and (min-height: 490px) {
.dockContainer {
display: inline-block;
opacity: 1;
position: relative;
margin:0 auto;
top: 50%;
left: 0;
bottom: 0;
right: 0;
-webkit-transform: translateY(-50%);
transition: opacity var(--transition-speed);
}
#dock {
display: inline-block;
width: auto;
height: auto;
margin: 5px;
transform: scale(0.90);
transition: transform var(--transition-speed);
}
}
/*Decrease scale to 0.85 if width is less than 470px*/
@media screen and (max-width: 469px) and (max-height: 489px) {
.dockContainer {
position: absolute;
background: transparent;
z-index: 5;
margin: 0 auto;
bottom: 0;
/*On bottom, center horizontally*/
left: 50%;
-ms-transform: translateX(-50%);
transform: translateX(-50%);
/*Add transition*/
transition: opacity var(--transition-speed);
}
#dock {
display: flex;
width: auto;
height: auto;
margin: 5px;
transform: scale(0.85);
transition: transform var(--transition-speed);
}
}
/*Decrease scale to 0.75 if width is less than 380px*/
@media screen and (max-width: 380px) and (max-height: 489px) {
.dockContainer {
position: absolute;
background: transparent;
z-index: 5;
margin: 0 auto;
bottom: 0;
/*On bottom, center horizontally*/
left: 50%;
-ms-transform: translateX(-50%);
transform: translateX(-50%);
/*Add transition*/
transition: opacity var(--transition-speed);
}
#dock {
display: flex;
width: auto;
height: auto;
margin: 5px;
transform: scale(0.75);
transition: transform var(--transition-speed);
}
}
/*Decrease scale to 0.70 if width is less than or equal to 374px and greater than or equal to 320px*/
@media screen and (max-width: 350px) and (min-width: 320px) and (max-height: 489px) {
.dockContainer {
position: absolute;
background: transparent;
z-index: 5;
margin: 0 auto;
bottom: 0;
/*On bottom, center horizontally*/
left: 50%;
-ms-transform: translateX(-50%);
transform: translateX(-50%);
/*Add transition*/
transition: opacity var(--transition-speed);
}
#dock {
display: flex;
width: auto;
height: auto;
margin: 5px;
transform: scale(0.70);
transition: transform var(--transition-speed);
}
}
/*Scale to 0 if less than 320px*/
@media screen and (max-width: 319px) and (max-height: 489px) {
.dockContainer {
position: absolute;
background: transparent;
z-index: 5;
margin: 0 auto;
bottom: 0;
/*On bottom, center horizontally*/
left: 50%;
-ms-transform: translateX(-50%);
transform: translateX(-50%);
/*Add transition*/
transition: opacity var(--transition-speed);
}
#dock {
display: flex;
width: auto;
height: auto;
opacity: 0;
margin: 5px;
transform: scale(0.0);
transition: transform var(--transition-speed),
opacity var(--transition-speed);
}
}

View File

@ -1,5 +1,4 @@
#topPanel { #topPanel {
background: var(--panel-bg);
width: 100vw; width: 100vw;
height: 32px; height: 32px;
position: absolute; position: absolute;

View File

@ -1,13 +1,13 @@
:root { :root {
/* Colors */ /* Colors */
--base-body-bg: #1a1a1aff; --base-body-bg: #1A1A1AFF;
--base-bg: #00000060; --base-bg: #00000060;
--base-color: #FEFEFEFF; --base-color: #FEFEFEFF;
--base-container: #F2F2F220; --base-container: #F2F2F220;
--base-hover-bg: #F2F2F230; --base-hover-bg: #F2F2F230;
--base-focus-bg: #f2f2f245; --base-focus-bg: #F2F2F245;
--base-active-bg: #FEFEFE60; --base-active-bg: #FEFEFE60;
--blur-strength: 6px; --blur-strength: 6px;
@ -24,10 +24,10 @@
box-sizing: border-box; box-sizing: border-box;
/*Font rendering*/ /*Font rendering*/
-webkit-font-smoothing: antialiased !important; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale !important; -moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility !important; text-rendering: optimizeLegibility;
font-variant-ligatures: none !important; font-variant-ligatures: none;
/*Disable tap hightlight color on mobile devices*/ /*Disable tap hightlight color on mobile devices*/
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
@ -35,7 +35,6 @@
} }
body { body {
position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
@ -49,8 +48,8 @@ body {
html, body { html, body {
font-family: roboto, sans-serif; font-family: roboto, sans-serif;
height: 100% !important; height: 100%;
position: fixed !important; position: fixed;
} }
/*Placeholder*/ /*Placeholder*/

View File

@ -1,5 +1,5 @@
/*Container*/ /*Container*/
#suggestionsContainer { .phrasesContainer {
position: absolute; position: absolute;
width: 100vw; width: 100vw;
@ -21,8 +21,8 @@
} }
/*Show suggestion*/ /*Show suggestion*/
.suggestionsShow { #suggestionsContainer.suggestionsShow {
opacity: 1 !important; opacity: 1;
} }
/*ul*/ /*ul*/
@ -102,7 +102,7 @@
width: auto; width: auto;
text-align: center; text-align: center;
justify-content: space-between !important; justify-content: space-between;
padding: 0; padding: 0;
width: 20px; width: 20px;
@ -111,8 +111,8 @@
@media screen and (max-height: 340px) { @media screen and (max-height: 340px) {
#suggestionsContainer { #suggestionsContainer.phrasesContainer {
opacity: 0 !important; opacity: 0;
} }
} }

View File

@ -20,7 +20,7 @@
z-index var(--transition-speed); z-index var(--transition-speed);
} }
.hiddenBox { .centeredBar#centeredBox.hiddenBox {
opacity: 0 !important; opacity: 0;
z-index: 0 !important; z-index: 0;
} }

View File

@ -18,7 +18,7 @@
} }
#profileImage { #profileImage {
background-image: url('../assets/user.png') ; background-image: url('../../assets/user.png') ;
height: 128px; height: 128px;
width: 128px; width: 128px;
border-radius: 50%; border-radius: 50%;

View File

@ -1,5 +1,4 @@
#searchBoxContainer { .searchBoxContainer {
width: 100%; width: 100%;
height: auto; height: auto;
top: 40%; top: 40%;
@ -47,10 +46,10 @@
font-weight: 700; font-weight: 700;
} }
.showSearchBox { #searchBoxContainer.showSearchBox {
opacity: 1 !important; opacity: 1;
top: 70% !important; top: 70%;
pointer-events: initial !important; pointer-events: initial;
} }
@media screen and (max-width: 470px) { @media screen and (max-width: 470px) {
@ -58,10 +57,10 @@
width: 50vw; width: 50vw;
} }
.showSearchBox { #searchBoxContainer.showSearchBox {
opacity: 1 !important; opacity: 1;
top: 65% !important; top: 65%;
pointer-events: initial !important; pointer-events: initial;
} }
} }

View File

@ -36,10 +36,11 @@
display: none; display: none;
} }
.showRightDashboard { /*Show dashboard*/
width: 350px !important; .dashboard#rightDashboard.showRightDashboard {
z-index: 7 !important; width: 350px;
scrollbar-width: none !important; z-index: 7;
scrollbar-width: none;
} }
/*Overlay*/ /*Overlay*/
@ -61,14 +62,30 @@
z-index var(--transition-speed); z-index var(--transition-speed);
} }
.showDashboardOverlay { .dashboardOverlay.showDashboardOverlay {
visibility: visible !important; visibility: visible;
z-index: 6 !important; z-index: 6;
} }
@media screen and (max-width: 470px) { @media screen and (max-width: 470px) {
.showRightDashboard { .dashboard#rightDashboard.showRightDashboard {
width: 100vw !important; width: 100vw;
margin-right: 0 !important; margin-right: 0;
} }
} }
.headerIcon {
background-size: cover;
margin-right: 10px;
width: 28px;
height: 28px;
}
.headerLabel {
font-family: roboto-bold, sans-serif;
font-weight: bold;
font-size: 14pt;
text-align: left;
margin-top: auto;
margin-bottom: auto;
}

View File

@ -1,16 +1,17 @@
#greeterMessage { .dashboardMessage {
color: var(--base-color); color: var(--base-color);
font-size: 32pt; word-wrap: break-word;
font-family: roboto-light, sans-serif;
font-weight: 300;
margin: 5px; margin: 5px;
} }
#dateMessage { .dashboardMessage#greeterMessage {
color: var(--base-color); font-size: 32pt;
font-family: roboto-light, sans-serif;
font-weight: 300;
}
.dashboardMessage#dateMessage {
font-size: 12pt; font-size: 12pt;
font-family: roboto, sans-serif; font-family: roboto, sans-serif;
font-weight: 400; font-weight: 400;
margin: 5px;
word-wrap: break-word;
} }

View File

@ -25,20 +25,7 @@
} }
#searchEngineHeaderIcon { #searchEngineHeaderIcon {
background: url('../assets/ui-icons/internet.svg'); background-image: url('../../assets/ui-icons/internet.svg');
background-size: cover;
margin-right: 10px;
width: 28px;
height: 28px;
}
#searchEngineHeaderLabel {
font-family: roboto-bold, sans-serif;
font-weight: bold;
font-size: 14pt;
text-align: left;
margin-top: auto;
margin-bottom: auto;
} }
#searchEngineContainer { #searchEngineContainer {
@ -67,19 +54,19 @@
} }
#searchEngineSelect:hover { #searchEngineSelect:hover {
outline: none !important; outline: none;
cursor: pointer; cursor: pointer;
background: var(--base-hover-bg) !important; background: var(--base-hover-bg);
} }
#searchEngineSelect:focus { #searchEngineSelect:focus {
outline: none !important; outline: none;
background: var(--base-focus-bg) !important; background: var(--base-focus-bg);
} }
#searchEngineSelect:active { #searchEngineSelect:active {
outline: none !important; outline: none;
background: var(--base-active-bg) !important; background: var(--base-active-bg);
} }
#searchEngineSelect option { #searchEngineSelect option {

View File

@ -25,20 +25,7 @@
} }
#themeEngineHeaderIcon { #themeEngineHeaderIcon {
background: url('../assets/ui-icons/theme.svg'); background-image: url('../../assets/ui-icons/theme.svg');
background-size: cover;
margin-right: 10px;
width: 28px;
height: 28px;
}
#themeEngineHeaderLabel {
font-family: roboto-bold, sans-serif;
font-weight: bold;
font-size: 14pt;
text-align: left;
margin-top: auto;
margin-bottom: auto;
} }
#themeEngineContainer { #themeEngineContainer {

View File

@ -25,20 +25,7 @@
} }
#weatherSettingsHeaderIcon { #weatherSettingsHeaderIcon {
background: url('../assets/ui-icons/weather.svg'); background-image: url('../../assets/ui-icons/weather.svg');
background-size: cover;
margin-right: 10px;
width: 28px;
height: 28px;
}
#weatherSettingsHeaderLabel {
font-family: roboto-bold, sans-serif;
font-weight: bold;
font-size: 14pt;
text-align: left;
margin-top: auto;
margin-bottom: auto;
} }
/*Main settings*/ /*Main settings*/
@ -98,21 +85,21 @@
#weatherSelectUnits:hover, #weatherSelectUnits:hover,
#weatherSelectLocator:hover { #weatherSelectLocator:hover {
outline: none !important; outline: none;
cursor: pointer; cursor: pointer;
background: var(--base-hover-bg) !important; background: var(--base-hover-bg);
} }
#weatherSelectUnits:focus, #weatherSelectUnits:focus,
#weatherSelectLocator:focus { #weatherSelectLocator:focus {
outline: none !important; outline: none;
background: var(--base-focus-bg) !important; background: var(--base-focus-bg);
} }
#weatherSelectUnits:active, #weatherSelectUnits:active,
#weatherSelectLocator:active { #weatherSelectLocator:active {
outline: none !important; outline: none;
background: var(--base-active-bg) !important; background: var(--base-active-bg);
} }
#weatherSelectUnits option, #weatherSelectUnits option,
@ -125,7 +112,7 @@
#weatherSettingsReset { #weatherSettingsReset {
margin-top: 0; margin-top: 0;
border: none; border: none;
background: var(--base-container) !important; background: var(--base-container);
} }
#weatherSettingsApply { #weatherSettingsApply {
@ -139,17 +126,17 @@
#weatherSettingsApply:hover, #weatherSettingsReset:hover { #weatherSettingsApply:hover, #weatherSettingsReset:hover {
outline: none; outline: none;
cursor: pointer; cursor: pointer;
background: var(--base-hover-bg) !important; background: var(--base-hover-bg);
} }
#weatherSettingsApply:active, #weatherSettingsReset:active { #weatherSettingsApply:active, #weatherSettingsReset:active {
outline: none; outline: none;
background: var(--base-active-bg) !important; background: var(--base-active-bg);
} }
#weatherSettingsApply:focus, #weatherSettingsReset:focus { #weatherSettingsApply:focus, #weatherSettingsReset:focus {
outline: none; outline: none;
background: var(--base-focus-bg) !important; background: var(--base-focus-bg);
} }

View File

@ -1,184 +0,0 @@
.dockContainer {
background: transparent;
position: absolute;
z-index: 5;
margin: 0 auto;
bottom: 0;
/*On bottom, center horizontally*/
left: 50%;
-ms-transform: translateX(-50%);
transform: translateX(-50%);
/*Add transition*/
transition: opacity var(--transition-speed);
}
#dock {
background: var(--panel-bg);
border-radius: var(--rounded-radius);
display: flex;
position: relative;
height: auto;
width: auto;
padding: 5px;
margin: 10px;
transition: transform var(--transition-speed);
z-index: 1 !important;
}
/*Translate dock to left side if width <= 470 and height >= 540*/
@media screen and (max-width: 470px) and (min-height: 490px) {
.dockContainer {
display: inline-block !important;
opacity: 1;
position: relative !important;
margin:0 auto !important;
top: 50% !important;
left: 0 !important;
bottom: 0 !important;
right: 0 !important;
-webkit-transform: translateY(-50%) !important;
transition: opacity var(--transition-speed) !important;
}
#dock {
display: inline-block !important;
width: auto !important;
height: auto !important;
margin: 5px !important;
transform: scale(0.90) !important;
transition: transform var(--transition-speed) !important;
}
}
/*Decrease scale to 0.85 if width is less than 470px*/
@media screen and (max-width: 469px) and (max-height: 489px) {
.dockContainer {
position: absolute !important;
background: transparent !important;
z-index: 5 !important;
margin: 0 auto !important;
bottom: 0 !important;
/*On bottom, center horizontally*/
left: 50% !important;
-ms-transform: translateX(-50%) !important;
transform: translateX(-50%) !important;
/*Add transition*/
transition: opacity var(--transition-speed) !important;
}
#dock {
display: flex !important;
width: auto !important;
height: auto !important;
margin: 5px !important;
transform: scale(0.85) !important;
transition: transform var(--transition-speed) !important;
}
}
/*Decrease scale to 0.75 if width is less than 380px*/
@media screen and (max-width: 380px) and (max-height: 489px) {
.dockContainer {
position: absolute !important;
background: transparent !important;
z-index: 5 !important;
margin: 0 auto !important;
bottom: 0 !important;
/*On bottom, center horizontally*/
left: 50% !important;
-ms-transform: translateX(-50%) !important;
transform: translateX(-50%) !important;
/*Add transition*/
transition: opacity var(--transition-speed) !important;
}
#dock {
display: flex !important;
width: auto !important;
height: auto !important;
margin: 5px !important;
transform: scale(0.75) !important;
transition: transform var(--transition-speed) !important;
}
}
/*Decrease scale to 0.70 if width is less than or equal to 374px and greater than or equal to 320px*/
@media screen and (max-width: 350px) and (min-width: 320px) and (max-height: 489px) {
.dockContainer {
position: absolute !important;
background: transparent !important;
z-index: 5 !important;
margin: 0 auto !important;
bottom: 0 !important;
/*On bottom, center horizontally*/
left: 50% !important;
-ms-transform: translateX(-50%) !important;
transform: translateX(-50%) !important;
/*Add transition*/
transition: opacity var(--transition-speed) !important;
}
#dock {
display: flex !important;
width: auto !important;
height: auto !important;
margin: 5px !important;
transform: scale(0.70) !important;
transition: transform var(--transition-speed) !important;
}
}
/*Scale to 0 if less than 320px*/
@media screen and (max-width: 319px) and (max-height: 489px) {
.dockContainer {
position: absolute !important;
background: transparent !important;
z-index: 5 !important;
margin: 0 auto !important;
bottom: 0 !important;
/*On bottom, center horizontally*/
left: 50% !important;
-ms-transform: translateX(-50%) !important;
transform: translateX(-50%) !important;
/*Add transition*/
transition: opacity var(--transition-speed) !important;
}
#dock {
display: flex !important;
width: auto !important;
height: auto !important;
opacity: 0 !important;
margin: 5px !important;
transform: scale(0.0) !important;
transition: transform var(--transition-speed),
opacity var(--transition-speed) !important;
}
}

25
css/screens/screens.css Normal file
View File

@ -0,0 +1,25 @@
.screen {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
margin: 0;
background: var(--panel-bg);
overflow: hidden;
backdrop-filter: blur(var(--blur-strength));
/*Disable user touch/select on text elements*/
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/*Dont increase the geometry by using padding*/
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

View File

@ -1,16 +1,4 @@
#weatherScreen { #weatherScreen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
margin: 0;
background: var(--panel-bg);
/*z-index: 0;*/
z-index: 3;
overflow: hidden;
backdrop-filter: blur(var(--blur-strength));
display:flex; display:flex;
justify-content:center; justify-content:center;
align-items:center; align-items:center;
@ -20,30 +8,18 @@
padding-left: 12vw; padding-left: 12vw;
padding-right: 12vw; padding-right: 12vw;
/*Dont increase the geometry by using padding*/
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
/*Disable user touch/select on text elements*/
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 0;
transform: scale(0); transform: scale(0);
opacity: 0;
z-index: 0;
transition: transform var(--transition-speed), transition: transform var(--transition-speed),
opacity var(--transition-speed), opacity var(--transition-speed),
z-index var(--transition-speed); z-index var(--transition-speed);
} }
.showWeatherScreen{ .screen#weatherScreen.showWeatherScreen {
transform: scale(1) !important; transform: scale(1);
opacity: 1 !important; opacity: 1;
z-index: 3 !important; z-index: 3;
} }
#weatherScreenContainer { #weatherScreenContainer {
@ -59,7 +35,7 @@
} }
#weatherTodayIcon { #weatherTodayIcon {
background: url('../assets/weather-icons/weather-error.svg'); background: url('../../assets/weather-icons/weather-error.svg');
background-size: cover; background-size: cover;
width: 128px; width: 128px;
height: 128px; height: 128px;
@ -113,19 +89,19 @@
} }
#sunriseHourDataIcon { #sunriseHourDataIcon {
background: url("../assets/weather-icons/sunrise.svg"); background: url("../../assets/weather-icons/sunrise.svg");
background-size: cover; background-size: cover;
} }
#sunsetHourDataIcon { #sunsetHourDataIcon {
background: url("../assets/weather-icons/sunset.svg"); background: url("../../assets/weather-icons/sunset.svg");
background-size: cover; background-size: cover;
margin-left: 5px margin-left: 5px
} }
#updateHourDataIcon { #updateHourDataIcon {
background: url("../assets/weather-icons/refresh.svg"); background: url("../../assets/weather-icons/refresh.svg");
background-size: cover; background-size: cover;
margin-left: 5px margin-left: 5px
} }
@ -159,7 +135,7 @@
} }
.weatherForecastDayIcon { .weatherForecastDayIcon {
background: url('../assets/weather-icons/weather-error.svg'); background: url('../../assets/weather-icons/weather-error.svg');
background-size: cover; background-size: cover;
width: 48px; width: 48px;
height: 48px; height: 48px;

View File

@ -1,28 +1,11 @@
#webMenu { #webMenuScreen {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
margin: 0;
background: var(--panel-bg);
z-index: 0; z-index: 0;
overflow: hidden;
backdrop-filter: blur(var(--blur-strength));
padding-top: 40px; padding-top: 40px;
padding-bottom: 6vh; padding-bottom: 6vh;
padding-left: 12vw; padding-left: 12vw;
padding-right: 12vw; padding-right: 12vw;
/*Disable user touch/select on text elements*/
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/*Transitions*/ /*Transitions*/
opacity: 0; opacity: 0;
transform: scale(0); transform: scale(0);
@ -32,7 +15,7 @@
} }
@media screen and (max-width: 470px) { @media screen and (max-width: 470px) {
#webMenu { #webMenuScreen {
padding-top: 6vh; padding-top: 6vh;
padding-bottom: 0vh; padding-bottom: 0vh;
padding-left: 18vw; padding-left: 18vw;
@ -41,10 +24,10 @@
} }
/*Show web menu*/ /*Show web menu*/
.showWebMenu { .screen#webMenuScreen.showWebMenu {
transform: scale(1) !important; transform: scale(1);
opacity: 1 !important; opacity: 1;
z-index: 3 !important; z-index: 3;
} }
#webMenuContainer { #webMenuContainer {
@ -55,7 +38,7 @@
} }
#webMenuSearchBox { #webMenuSearchBox {
background: var(--base-container); background: var(--base-bg);
text-align: center; text-align: center;
font-family: roboto-bold, sans-serif; font-family: roboto-bold, sans-serif;
@ -205,7 +188,7 @@
position: relative; position: relative;
display: flex; display: flex;
justify-content: center; justify-content: center;
max-height: 74vh; max-height: 70vh;
overflow-y: auto; overflow-y: auto;
/*Fade transparency*/ /*Fade transparency*/
@ -236,8 +219,8 @@
} }
#webMenuListContainer { #webMenuListContainer {
scrollbar-width: none !important; scrollbar-width: none;
-ms-overflow-style: none !important; -ms-overflow-style: none;
} }
#webMenuListContainer::-webkit-scrollbar { #webMenuListContainer::-webkit-scrollbar {

View File

@ -1,22 +1,31 @@
/*Load all CSS*/ /*Load all CSS*/
@import url('normalize.css'); @import url('base/normalize.css');
@import url('font-face.css'); @import url('base/font-face.css');
@import url('base.css'); @import url('base/base.css');
@import url('dummy-body-background.css'); @import url('base/dummy-body-background.css');
@import url('bar.css');
@import url('top-panel.css'); /*Bars and Panels*/
@import url('clock.css'); @import url('bars/bar.css');
@import url('dock.css'); @import url('bars/top-panel.css');
@import url('dock-buttons.css'); @import url('bars/clock.css');
@import url('centered-box.css'); @import url('bars/dock.css');
@import url('centered-box-overlay.css'); @import url('bars/dock-buttons.css');
@import url('profile-image.css');
@import url('search-box.css'); /*Centered box and Contents*/
@import url('dashboard.css'); @import url('centeredbox/centered-box.css');
@import url('greeter-date-message.css'); @import url('centeredbox/centered-box-overlay.css');
@import url('search-engine-settings.css'); @import url('centeredbox/profile-image.css');
@import url('theme-engine.css'); @import url('centeredbox/search-box.css');
@import url('weather-screen.css'); @import url('centeredbox/auto-suggestion.css');
@import url('weather-settings.css');
@import url('web-menu.css'); /*Screens*/
@import url('auto-suggestion.css'); @import url('screens/screens.css');
@import url('screens/weather-screen.css');
@import url('screens/web-menu.css');
/*Dashboard and Settings*/
@import url('dashboard/dashboard.css');
@import url('dashboard/greeter-date-message.css');
@import url('dashboard/search-engine-settings.css');
@import url('dashboard/weather-settings.css');
@import url('dashboard/theme-engine.css');

View File

@ -64,9 +64,9 @@
<div id='profileImageContainer'> <div id='profileImageContainer'>
<div id='profileImage'></div> <div id='profileImage'></div>
</div> </div>
<div id='searchBoxContainer'> <div id='searchBoxContainer' class='searchBoxContainer'>
<input type='text' id='searchBox' autocomplete='off' autofocus='off' placeholder=' Search with HiddenWiki'/> <input type='text' id='searchBox' autocomplete='off' autofocus='off' placeholder=' Search with HiddenWiki'/>
<div id='suggestionsContainer'> <div id='suggestionsContainer' class='phrasesContainer'>
<ul id='suggestions'> <ul id='suggestions'>
<!-- Below is the structure of an LI that will be generated in js/auto-suggestion.js --> <!-- Below is the structure of an LI that will be generated in js/auto-suggestion.js -->
<!-- <!--
@ -83,8 +83,8 @@
<div class='dashboard' id='rightDashboard'> <div class='dashboard' id='rightDashboard'>
<div class='rightDashboardBody'> <div class='rightDashboardBody'>
<div id='greeterMessage'></div> <div id='greeterMessage' class='dashboardMessage'></div>
<div id='dateMessage'></div> <div id='dateMessage' class='dashboardMessage'></div>
<!-- Weather Settings --> <!-- Weather Settings -->
<form class='weatherSettings'> <form class='weatherSettings'>
@ -201,7 +201,7 @@
<div class='dashboardOverlay' id='dashboardOverlay'></div> <div class='dashboardOverlay' id='dashboardOverlay'></div>
<!-- Weather screen --> <!-- Weather screen -->
<div id='weatherScreen'> <div id='weatherScreen' class='screen'>
<div id='weatherScreenContainer'> <div id='weatherScreenContainer'>
<div id='weatherTodayIcon'></div> <div id='weatherTodayIcon'></div>
<div id='weatherTodayLocation'> <div id='weatherTodayLocation'>
@ -247,7 +247,7 @@
<!-- Web menu panel --> <!-- Web menu panel -->
<div id='webMenu'> <div id='webMenuScreen' class='screen'>
<div id='webMenuContainer'> <div id='webMenuContainer'>
<div id='webMenuSearchBoxContainer'> <div id='webMenuSearchBoxContainer'>
<input type='text' id='webMenuSearchBox' autocomplete='off' placeholder=' Type to search'> <input type='text' id='webMenuSearchBox' autocomplete='off' placeholder=' Type to search'>

View File

@ -9,7 +9,7 @@ class Dashboard {
this._dashboardOverlayMouseUpEvent = this._dashboardOverlayMouseUpEvent.bind(this); this._dashboardOverlayMouseUpEvent = this._dashboardOverlayMouseUpEvent.bind(this);
this._centeredBox = document.querySelector('#centeredBox'); this._centeredBox = document.querySelector('#centeredBox');
this._webMenu = document.querySelector('#webMenu'); this._webMenu = document.querySelector('#webMenuScreen');
this._searchBoxContainer = document.querySelector('#searchBoxContainer'); this._searchBoxContainer = document.querySelector('#searchBoxContainer');
this._weatherScreen = document.querySelector('#weatherScreen'); this._weatherScreen = document.querySelector('#weatherScreen');

View File

@ -69,7 +69,7 @@ class SwipeEventCallbacks extends SwipeEventManager {
this.swipeEvent('centeredBoxOverlay', this._centeredBoxOverlaySwipeEvent); this.swipeEvent('centeredBoxOverlay', this._centeredBoxOverlaySwipeEvent);
this.swipeEvent('webMenu', this._webMenuSwipeEvent); this.swipeEvent('webMenuScreen', this._webMenuSwipeEvent);
this.swipeEvent('weatherScreen', this._weatherScreenSwipeEvent); this.swipeEvent('weatherScreen', this._weatherScreenSwipeEvent);
} }

View File

@ -23,7 +23,7 @@ class WeatherScreen {
this._weatherDockImageButton = document.querySelector('#buttonImageWeather'); this._weatherDockImageButton = document.querySelector('#buttonImageWeather');
this._forecastContainer = document.querySelector('#forecastContainer'); this._forecastContainer = document.querySelector('#forecastContainer');
this._webMenu = document.querySelector('#webMenu'); this._webMenu = document.querySelector('#webMenuScreen');
this._dashboard = document.querySelector('#rightDashboard'); this._dashboard = document.querySelector('#rightDashboard');
this._searchBoxContainer = document.querySelector('#searchBoxContainer'); this._searchBoxContainer = document.querySelector('#searchBoxContainer');
} }

View File

@ -5,7 +5,7 @@ class WebMenu {
this._weatherScreen = document.querySelector('#weatherScreen'); this._weatherScreen = document.querySelector('#weatherScreen');
this._webSites = config.getWebSites(); this._webSites = config.getWebSites();
this._webMenu = document.querySelector('#webMenu'); this._webMenuScreen = document.querySelector('#webMenuScreen');
this._webMenuList = document.querySelector('#webMenuList'); this._webMenuList = document.querySelector('#webMenuList');
this._webMenuListContainer = document.querySelector('#webMenuListContainer'); this._webMenuListContainer = document.querySelector('#webMenuListContainer');
this._webMenuSearchBox = document.querySelector('#webMenuSearchBox'); this._webMenuSearchBox = document.querySelector('#webMenuSearchBox');
@ -37,7 +37,7 @@ class WebMenu {
// Disable textboxes // Disable textboxes
_disableWebMenuInputs = status => { _disableWebMenuInputs = status => {
const elems = this._webMenu.getElementsByTagName('input'); const elems = this._webMenuScreen.getElementsByTagName('input');
const len = elems.length; const len = elems.length;
for (let i = 0; i < len; i++) { for (let i = 0; i < len; i++) {
@ -187,7 +187,7 @@ class WebMenu {
// Show web menu screen // Show web menu screen
showWebMenu = () => { showWebMenu = () => {
this._webMenu.classList.add('showWebMenu'); this._webMenuScreen.classList.add('showWebMenu');
// Enable inputs // Enable inputs
this._disableWebMenuInputs(false); this._disableWebMenuInputs(false);
@ -218,7 +218,7 @@ class WebMenu {
// Get first item // Get first item
this._getFirstItem(); this._getFirstItem();
this._webMenu.classList.remove('showWebMenu'); this._webMenuScreen.classList.remove('showWebMenu');
// Disable inputs // Disable inputs
this._disableWebMenuInputs(true); this._disableWebMenuInputs(true);
@ -369,7 +369,7 @@ class WebMenu {
} }
_registerWebMenuKeyDownEvent = () => { _registerWebMenuKeyDownEvent = () => {
this._webMenu.addEventListener('keydown', this._webMenuKeyDownEvent, false); this._webMenuScreen.addEventListener('keydown', this._webMenuKeyDownEvent, false);
} }
_webMenuSearchBoxKeyDownEvent = e => { _webMenuSearchBoxKeyDownEvent = e => {