dodex-vertx
Version:
A java asynchronous server for Dodex and Dodex-mess
439 lines (367 loc) • 7.37 kB
CSS
:root {
--main-bg: #e7edfa;
--main-text: #000;
--container-bg: #fcfcfc;
--global-hover: #e7edfa;
--forecast-text: initial;
--icon-color: #00526beb;
--icon-shadow: none;
--icon-btn-shadow: 1px 1px 8px rgba(145, 145, 145, 0.15);
--icon-btn-color: #0a95c0;
--btn-bg: #f0f7f8;
--btn-border: 1px solid #0a95c0;
--search-text: #8c8c8c;
--search-bg: rgba(255, 255, 255, 0.65);
}
.dark {
--main-bg: #242230;
--main-text: #f6f7fa;
--text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
--container-bg: #2e3540;
--global-hover: rgba(149, 205, 236, 0.22);
--forecast-text: #bdbdbd;
--icon-color: rgb(225, 255, 239);
--icon-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
--icon-btn-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
--icon-btn-color: #f6f7fa;
--btn-bg: #2e3540;
--btn-border: 1px solid #545555;
--search-text: #bdbdbd;
--search-bg: rgba(0, 0, 0, 0.65);
}
body {
min-height: 100vh;
display: flow;
justify-content: center;
flex-direction: column;
background: var(--main-bg);
color: var(--main-text);
font-family: 'DM Sans', sans-serif;
scroll-behavior: smooth;
}
/* CUSTOM SCROLLBAR */
body::-webkit-scrollbar,
body::-webkit-scrollbar-thumb {
background-color: rgba(149, 205, 236, 0.25);
border-radius: 10px;
width: 10px;
}
/* ELEMENT & TEXT STYLES */
h1 {
font-size: 28px;
font-weight: bold;
padding-top: 10px;
}
h2 {
font-size: 24px;
font-weight: lighter;
}
h3 {
font-size: 20px;
font-weight: lighter;
}
ul {
list-style-type: none;
padding: 0;
}
strong {
font-weight: bold;
}
small {
font-size: 14px;
}
p {
margin: 5px 10px;
}
a {
color: rgb(66, 111, 182);
transition: all 150ms ease-in;
text-decoration: none;
}
a:hover {
background: linear-gradient(rgba(212, 214, 254, 0.8), #9acedd);
border-radius: 10px;
padding: 2px 4px;
}
hr {
margin: 0;
}
footer i {
font-size: 14px;
color: var(--icon-color);
text-shadow: var(--icon-shadow);
}
.toggle-temps {
font-size: 14px;
vertical-align: super;
}
.toggle-temps a:hover {
font-size: 16px;
}
.celsius {
padding-left: 3px;
}
#location {
font-weight: bold;
}
/* SEARCH BAR */
button i {
color: var(--icon-btn-color);
text-shadow: var(--icon-btn-shadow);
border: none;
}
.input-group input {
font-size: 16px;
border-color: #0a95c0;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
}
.input-group button {
background-color: var(--btn-bg);
border: var(--btn-border);
border-radius: 30px;
padding: 5px 14px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
}
.input-group button:hover {
background-color: #0a95c0;
border-color: #0a95c0;
}
.input-group button:hover i {
color: white;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}
/* Search suggestions */
.search-suggestions {
position: absolute;
/* top: 42px;*/
/* left: 48px;*/
width: 432px;
border: 1px solid #0a95c0;
border-top: 0;
z-index: 10;
border-radius: 0 0 4px 4px ;
background-color: var(--search-bg);
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(2px);
opacity: 0;
}
.search-suggestions li {
color: var(--search-text);
padding: 4px 13px;
}
.search-suggestions li:first-of-type {
padding-top: 8px;
}
.search-suggestions li:last-of-type {
padding-bottom: 8px;
}
.search-suggestions li:hover {
background-color: var(--global-hover);
width: 100%;
color: #0a95c0;
font-weight: 500;
cursor: pointer;
}
/* THEME TOGGLE SWITCH */
#flexSwitchCheckChecked {
padding: 15px 24px;
}
.form-switch .form-check-input {
margin-left: 0;
}
.form-check-input:checked {
background-color: #0a95c0;
border-color: #0a95c0;
}
.form-check-input {
background-color: #f0f7f8;
border-color: #0a95c0;
}
/* CONTAINER CONTENT */
.local-overview,
.global-overview {
box-shadow: 2px 2px 6px 1px rgba(0, 0, 0, 0.15), -2px -2px 6px 1px rgba(0, 0, 0, 0.15);
border-radius: 20px;
background: var(--container-bg);
}
.weather-icon {
filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2))
drop-shadow(-1px -1px 2px rgba(77, 77, 77, 0.3));
}
.forecast-icon,
.global-icon {
transform: scale(1.6);
}
/* LOCAL WEATHER CONTAINER CONTENT */
.daily,
.cardw,
.form-check-input {
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}
.current-weather {
background: #bfedfb;
border-radius: 10px;
}
.current-weather h1 {
font-size: 40px;
}
.cardw {
min-height: 230px;
margin-top: 10px;
}
.card-img {
height: 230px;
object-fit: cover;
opacity: 0.5;
}
.cardw li {
font-size: 18px;
background: rgba(198, 241, 217, 0.4);
}
.temp-details i {
font-size: 13px;
color: rgba(0, 82, 37, 0.798);
padding-left: 10px;
}
.temp-details .cardw {
background: rgba(198, 241, 217, 0.4);
}
.sun-time i {
font-size: 17px;
color: var(--icon-color);
text-shadow: var(--icon-shadow);
}
/* DAILY FORECAST STYLES */
.full-forecast {
overflow-x: scroll;
overflow-y: visible;
padding: 10px 10px 15px 10px;
width: 100%;
-ms-overflow-style: none;
scrollbar-width: none;
}
.full-forecast::-webkit-scrollbar {
display: none;
}
.daily {
border-radius: 10px;
text-align: center;
background: rgba(149, 205, 236, 0.22);
padding: 8px 20px;
}
.daily p:first-child {
font-weight: bold;
text-transform: lowercase;
}
.daily-low {
font-size: 14px;
color: var(--forecast-text);
}
.daily:hover {
background: rgba(73, 177, 234, 0.33);
transform: scale(1.05);
}
.daily:hover .weather-icon {
filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.4));
transform: scale(1.9);
}
/* GLOBAL FORECAST STYLES */
.global-overview h2 {
font-size: 22px;
}
.global-icon {
object-fit: contain;
}
.global-item:hover {
background: var(--global-hover);
border-radius: 4px;
cursor: pointer;
}
.global-item:hover .global-icon {
transform: scale(1.8);
filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.4));
}
.global-item {
min-height: 95px;
padding: 14px 2px;
}
#description-temp,
.global-descriptions {
text-transform: capitalize;
}
/* Additional DARK STYLES */
.dark .cardw:not(.initial),
.list-group-item {
background-color: var(--main-bg);
color: var(--main-text);
text-shadow: var(--text-shadow);
}
.dark .list-group-item i {
color: var(--icon-color);
text-shadow: var(--icon-shadow);
}
.dark .list-group-item {
color: rgb(246, 255, 250);
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
}
/* Custom scrollbar styling for forecast section */
@media only screen and (max-width: 768px) {
.full-forecast {
-ms-overflow-style: unset;
scrollbar-width: unset;
}
.full-forecast::-webkit-scrollbar,
.full-forecast::-webkit-scrollbar-thumb {
background-color: rgba(149, 205, 236, 0.1);
border-radius: 10px;
height: 10px;
display: unset;
}
}
/* Search suggestion sizing adjustments */
@media only screen and (max-width: 1400px) {
.search-suggestions {
width: 356px;
}
}
@media only screen and (max-width: 1200px) {
.search-suggestions {
width: 281px;
}
}
@media only screen and (max-width: 992px) {
.search-suggestions {
width: 181px;
}
}
@media only screen and (max-width: 768px) {
.search-suggestions {
width: 344px;
}
}
@media only screen and (max-width: 576px) {
.search-suggestions {
display: none;
}
}
/* Dark mode impacting other tabs */
label {
background-color: rgb(204, 255, 204);
color: #000;
}
.col-md-7 {
color: #000;
}
.stay, .welcome, .chat-box, .user-msg {
color: #000;
}
h3, stay {
font-size: 20px;
font-weight: bold;
}
.handicap-blue {
background-color: rgb(189, 238, 255);
}
body {
background-size: cover;
}