alessandro trinca tornidor
feat: handle mobile portrait mode for current words table, improve top menù layout
125ee1c
| #id-title.h1 { | |
| font-size: 24px; | |
| margin-left: 10px; | |
| margin-right: 10px; | |
| margin-block-start: 5px; | |
| margin-block-end: 5px; | |
| } | |
| #id-col1-editor > h4,#id-col2-words-frequency > div > div > h4, #id-col2-words-frequency > h4 { | |
| font-size: 18px; | |
| margin-block-start: 2px; | |
| margin-block-end: 2px; | |
| } | |
| #words-frequency > table > caption { | |
| margin-left: 12px; | |
| margin-top: 10px; | |
| text-align: left; | |
| font-weight: bold; | |
| } | |
| #words-frequency > div > table > thead > tr > td, #words-frequency > div > table > tbody > tr > td { | |
| padding-left: 10px; | |
| padding-right: 10px; | |
| } | |
| .font-weight-bold { | |
| font-weight: bolder; | |
| } | |
| .display-none, .collapse { | |
| display: none; | |
| } | |
| .display-block { | |
| display: block; | |
| } | |
| .underlinedDarkTurquoise { | |
| text-decoration: underline; | |
| text-decoration-color: darkturquoise; | |
| text-decoration-style: wavy; | |
| } | |
| .underlinedBlue, .underlinedBlueTable { | |
| color: blue; | |
| text-decoration: underline; | |
| text-decoration-color: blue; | |
| } | |
| .underlinedDarkViolet, .underlinedDarkVioletTable { | |
| color: violet; | |
| text-decoration: underline; | |
| text-decoration-color: violet; | |
| } | |
| .display-flex { | |
| display: flex; | |
| } | |
| .col-flex30 { | |
| flex: 30%; | |
| } | |
| .col-flex50 { | |
| flex: 50%; | |
| } | |
| .border-green { | |
| border: 1px solid green; | |
| } | |
| .border-blue { | |
| border: 1px solid blue; | |
| } | |
| .border-black { | |
| border: 1px solid black; | |
| } | |
| .padding10px { | |
| padding: 10px; | |
| } | |
| .margin10px { | |
| margin: 10px; | |
| } | |
| .margin4px { | |
| margin: 4px; | |
| } | |
| .margin2px { | |
| margin: 2px; | |
| } | |
| .margin10px-left { | |
| margin-left: 5px; | |
| } | |
| .margin5px-right { | |
| margin-right: 5px; | |
| } | |
| .margin5px-top { | |
| margin-top: 5px; | |
| } | |
| .margin2px-bottom { | |
| margin-bottom: 2px; | |
| } | |
| .background-color-lightgray { | |
| background-color: lightgray; | |
| } | |
| .background-color-whitesmoke { | |
| background-color: whitesmoke; | |
| } | |
| .max-height-90vh { | |
| max-height: 90vh; | |
| } | |
| .max-height-80vh { | |
| max-height: 80vh; | |
| } | |
| .max-height-80perc { | |
| max-height: 80%; | |
| } | |
| .overflow-hidden { | |
| /* needed for scroll bar*/ | |
| overflow: hidden; | |
| } | |
| .overflow-auto { | |
| /* needed for scroll bar*/ | |
| overflow: auto; | |
| } | |
| .width-50perc { | |
| width: 50%; | |
| } | |
| .width-80perc { | |
| width: 80%; | |
| } | |
| #id-landscape-message { | |
| display: none; | |
| } | |
| .id-orientation-message { | |
| display: none; | |
| } | |
| .scrollable-table-container { | |
| max-height: calc(100vh - 200px); | |
| overflow: auto; | |
| } | |
| #id-input-webserver-wordfreq-checkbox-container { | |
| display: flex; | |
| justify-content: right; | |
| } | |
| /* Classic UI Main Text, lite.koboldai.net */ | |
| #gamescreen { | |
| overflow-x: hidden; | |
| display: flex; | |
| vertical-align: bottom; | |
| font-size: 12pt; | |
| } | |
| #gamescreen span { | |
| align-self: flex-end; | |
| } | |
| #gametext, #editor { | |
| width: 100%; | |
| word-wrap: break-word; | |
| padding: 10px; | |
| overflow-y: auto; | |
| white-space: pre-wrap; | |
| height: calc(100vh - 180px); | |
| border: 1px solid black; | |
| } | |
| .calc100vh_less_150px { | |
| height: calc(100vh - 150px); | |
| } | |
| .calc96vh_less_240px { | |
| height: calc(96vh - 240px); | |
| } | |
| .calc100vh_less_200px { | |
| height: calc(100vh - 200px); | |
| } | |
| .grid-container-elements-menu-top { | |
| margin: 0 auto; | |
| display: grid; | |
| gap: 2px; | |
| grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); | |
| } | |
| .grid-element-menu-top { | |
| padding: 2px; | |
| height: auto; | |
| } | |
| @media (prefers-color-scheme: dark) { | |
| .underlinedBlue { | |
| color: yellow; | |
| text-decoration: underline; | |
| text-decoration-color: yellow; | |
| } | |
| .underlinedDarkViolet { | |
| color: violet; | |
| text-decoration: underline; | |
| text-decoration-color: violet; | |
| } | |
| } | |
| @media screen and (max-height: 767px) { | |
| #gametext, #editor { | |
| height: calc(100vh - 122px); | |
| } | |
| #gamescreen { | |
| height: calc(100vh - 100px) ; | |
| } | |
| #words-frequency { | |
| height: calc(100vh - 100px) ; | |
| } | |
| .scrollable-table-container { | |
| max-height: calc(100vh - 130px) ; | |
| } | |
| } | |
| @media screen and (max-width: 1024px) { | |
| #id-list-of-words > list > li { | |
| list-style-type: none; | |
| } | |
| } | |
| @media screen and (max-width: 1024px) and (orientation: portrait) { | |
| .id-orientation-message { | |
| display: block; | |
| text-align: center; | |
| } | |
| .id-orientation-message:before { | |
| color: red; | |
| content: "(Mobile users: use this in landscape mode!)" | |
| } | |
| } | |
| @media only screen | |
| and (min-device-width: 320px) | |
| and (max-device-width: 480px) | |
| and (-webkit-min-device-pixel-ratio: 2) | |
| and (orientation: portrait) { | |
| #id-input-webserver-wordfreq-checkbox-container { | |
| display: flex; | |
| justify-content: left ; | |
| } | |
| } |