the-glorious-startpage/css/screens/web-menu.css

239 lines
4.0 KiB
CSS
Raw Normal View History

#webMenuScreen {
2020-06-04 06:15:59 +02:00
z-index: 0;
padding: 40px 12vw 6vh 12vw;
2020-06-04 06:15:59 +02:00
opacity: 0;
transform: scale(0);
transition:
transform var(--transition-speed),
2020-06-15 03:28:40 +02:00
opacity var(--transition-speed),
z-index var(--transition-speed);
2020-06-04 06:15:59 +02:00
}
2020-06-15 03:28:40 +02:00
@media screen and (max-width: 470px) {
#webMenuScreen {
padding: 6vh 18vw 0 18vw;
2020-06-04 06:15:59 +02:00
}
}
/* Show web menu */
.screen#webMenuScreen.showWebMenu {
transform: scale(1);
opacity: 1;
z-index: 3;
2020-06-04 06:15:59 +02:00
}
#webMenuContainer {
background: transparent;
2020-06-15 03:28:40 +02:00
max-height: 100vh;
2020-06-04 06:15:59 +02:00
overflow: hidden;
}
#webMenuSearchBox {
background: var(--base-bg);
2020-06-04 06:15:59 +02:00
text-align: center;
font-family: roboto-bold, sans-serif;
font-weight: 700;
2020-06-04 06:15:59 +02:00
color: var(--panel-color);
border: none;
border-radius: 6px;
width: 225px;
2020-06-04 06:15:59 +02:00
height: 36px;
margin: 0;
transition: all var(--transition-speed);
2020-06-04 06:15:59 +02:00
}
#webMenuSearchBox::placeholder {
font-family: roboto-bold, fantasque-sans-mono, sans-serif;
font-weight: 700;
}
2020-06-15 03:28:40 +02:00
@media screen and (max-width: 470px) {
2020-06-04 06:15:59 +02:00
#webMenuSearchBox {
width: 50vw;
}
}
#webMenuSearchBoxContainer {
/* Center horizontally */
2020-06-04 06:15:59 +02:00
position: relative;
display: flex;
flex-flow: column wrap;
align-items: center;
margin-bottom: 20px;
}
/* Web menu list */
2020-06-04 06:15:59 +02:00
/* UL */
2020-06-04 06:15:59 +02:00
#webMenuList {
list-style-type: none;
padding: 0;
margin: 0 auto;
2020-06-15 03:28:40 +02:00
flex-grow: 1;
2020-06-04 06:15:59 +02:00
text-align: justify;
background: transparent;
}
/* List */
2020-06-04 06:15:59 +02:00
#webMenuList li {
/* Align list horizontally */
2020-06-04 06:15:59 +02:00
display: inline-block;
}
2020-06-15 03:28:40 +02:00
@media screen and (max-width: 470px) {
2020-06-04 06:15:59 +02:00
#webMenuList li {
display: inline;
}
}
#webMenuList li.selected {
background: var(--base-active-bg);
border-radius: var(--rounded-radius);
transition: transform var(--transition-speed);
}
/* Child of li */
2020-06-04 06:15:59 +02:00
.webItem {
background: transparent;
width: 128px;
height: 128px;
margin: 5px;
cursor: pointer;
border-radius: var(--rounded-radius);
}
.webItem:hover {
box-shadow: 0 0 0 1px var(--base-hover-bg) inset;
2020-06-04 06:15:59 +02:00
}
.webItem:active {
background: var(--base-active-bg);
box-shadow: 0 0 0 1px var(--base-hover-bg) inset;
border-radius: var(--rounded-radius);
2020-06-04 06:15:59 +02:00
}
.webItemFocus {
width: 128px;
height: 128px;
margin: 5px;
border-radius: var(--rounded-radius);
background: var(--base-hover-bg);
}
.webItemFocus:hover {
background: var(--base-hover-bg);
}
.webItemFocus:active {
background: var(--base-active-bg);
}
/* Contains web icon and label */
2020-06-04 06:15:59 +02:00
.webItemContainer {
/* Align vertically */
margin: 0 auto;
2020-06-04 06:15:59 +02:00
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
/* Align horizontally */
2020-06-04 06:15:59 +02:00
display: flex;
flex-direction: row;
justify-content: center;
padding: 5px;
}
/* Web icon container */
2020-06-04 06:15:59 +02:00
.webItemIconContainer {
position: relative;
display: flex;
flex-flow: column wrap;
align-items: center;
}
.webItemIcon {
height: 64px;
width: 64px;
margin-bottom: 0;
background-size: cover;
2020-06-04 06:15:59 +02:00
}
/* Web label/name */
2020-06-04 06:15:59 +02:00
.webItemName {
text-align: center;
font-size: 11pt;
font-family: roboto, sans-serif;
font-weight: 400;
2020-06-04 06:15:59 +02:00
word-wrap: break-word;
color: var(--base-color);
}
#webMenuListContainer {
position: relative;
display: flex;
justify-content: center;
max-height: 70vh;
2020-06-15 03:28:40 +02:00
overflow-y: auto;
2020-06-04 06:15:59 +02:00
/* Fade transparency */
/* -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%); */
/* mask-image: linear-gradient(to bottom, black 85%, transparent 100%); */
2020-06-04 06:15:59 +02:00
}
2020-06-15 03:28:40 +02:00
/*Stretch list item if screen width < 470px*/
@media screen and (max-width: 470px) {
2020-06-04 06:15:59 +02:00
#webMenuList {
flex-grow: 1;
}
.webItem {
width: auto;
}
.webItem:hover {
-ms-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
2020-06-04 06:15:59 +02:00
}
.webItemFocus {
-ms-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
2020-06-04 06:15:59 +02:00
}
2020-06-05 03:19:41 +02:00
#webMenuListContainer {
scrollbar-width: none;
-ms-overflow-style: none;
2020-06-05 03:19:41 +02:00
}
#webMenuListContainer::-webkit-scrollbar {
display: none;
2020-06-05 03:19:41 +02:00
}
}
/*The a href container/main web menu button container*/
.webMenuLink {
/*Act as div*/
display: block;
/*Remove outlines*/
text-decoration: none;
outline: 0;
border: none;
-moz-outline-style: none;
/*Disable dragging*/
user-select: none;
-webkit-user-drag: none;
}