the-glorious-startpage/css/auto-suggestion.css

118 lines
1.9 KiB
CSS
Raw Normal View History

/*Container*/
#suggestionsContainer {
position: absolute;
width: 100vw;
height: auto;
display: table;
margin: 0 auto;
2020-06-06 04:11:33 +02:00
opacity: 0;
transition: opacity var(--transition-speed);
/*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;
}
2020-06-06 05:34:20 +02:00
/*Show suggestion*/
2020-06-06 04:11:33 +02:00
.suggestionsShow {
opacity: 1 !important;
}
2020-06-06 05:34:20 +02:00
/*ul*/
#suggestions {
height: auto;
width: 50vw;
/*Center ul horizontally*/
margin: 0 auto;
list-style: none;
/*Remove the fucking padding*/
/*It took me an hour to fix this piece of shit*/
padding: 0;
/*Allow centering of children*/
display: table;
table-layout: fixed;
}
2020-06-06 05:34:20 +02:00
/*li*/
#phrase {
/*Align list horizontally*/
justify-content: center;
height: auto;
2020-06-06 05:13:45 +02:00
/*Always stack and center horizontally*/
2020-06-06 04:35:54 +02:00
/*display: table-cell;*/
/*width: auto;*/
/*text-align: center;*/
2020-06-06 05:13:45 +02:00
/*Always stack and center vertically*/
2020-06-06 04:35:54 +02:00
display: inline-flex;
width: 100%;
text-align: center;
}
2020-06-06 05:34:20 +02:00
/*The li's child*/
.phraseButton {
background: transparent;
border: none;
outline: none;
color: var(--base-color);
font-size: 12pt;
font-family: roboto-bold;
text-align: center;
border-radius: 6px;
vertical-align: middle;
padding: 10px;
}
.phraseButton:focus {
2020-06-06 05:34:20 +02:00
background: var(--base-bg);
}
.phraseButton:active {
background: var(--base-active-bg);
2020-06-06 04:35:54 +02:00
}
@media screen and (max-height: 539px) and (min-height: 341px) {
2020-06-06 10:06:27 +02:00
#suggestions {
height: auto;
width: 100vw;
}
2020-06-06 04:35:54 +02:00
/*The Li*/
#phrase {
/*Always stack and center horizontally*/
2020-06-06 10:06:27 +02:00
display: inline-block !important;
2020-06-06 05:13:45 +02:00
width: auto !important;
text-align: center !important;
2020-06-06 10:06:27 +02:00
justify-content: space-between !important;
padding: 0;
width: 20px;
2020-06-06 04:35:54 +02:00
}
}
@media screen and (max-height: 340px) {
#suggestionsContainer {
opacity: 0 !important;
}
}