123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- /* ======================= Layout ======================= */
- * {
- box-sizing: border-box;
- }
- html, body {
- position: relative;
- margin: 0px;
- overflow: hidden;
- background: var(--body-background);
- color: var(--body-color);
- font-family: sans-serif;
- }
- html {
- height: 100%;
- }
- body { height: 100%; }
- header, footer {
- height: var(--header-height);
- width: 100%;
- padding: .5rem;
- display: flex;
- position: relative;
- align-items: center;
- background: var(--chrome-background);
- color: var(--chrome-color);
- border-color: var(--chrome-border);
- }
- main {
- height: calc(100% - var(--header-height));
- display: flex;
- justify-content: center;
- }
- header button, footer button {
- height: calc(var(--header-height) - 1rem);
- flex-shrink: 0;
- line-height: 1rem;
- min-width: 2rem;
- }
- button {
- padding: .25rem .5rem;
- }
- .custom-widgets input[type=file]::file-selector-button {
- padding: .25rem .5rem;
- }
- button span {
- display: inline-block;
- vertical-align: bottom;
- }
- button svg + span {
- margin-left: .25em;
- }
- button *{
- height: 100%;
- }
- .spacer {
- height: 1px;
- width: 100%;
- flex-shrink: 1;
- }
- header > * + *, footer > * + *{
- margin-left: .5rem;
- }
- header > * {
- z-index: 2;
- }
- main > section {
- position: relative;
- border-top: 1px solid var(--chrome-border);
- }
- main > aside {
- position: relative;
- color: var(--chrome-color);
- background: var(--chrome-background);
- }
- input, select {
- max-width: 100%;
- }
- audio {
- width: 100%;
- }
- #offscreen {
- display: none;
- }
- section > *:first-child {
- margin-top: 0px;
- }
- .wide-body main > section {
- max-width: calc(100vh - var(--header-height));
- max-height: 100vw;
- width: 100%;
- height: 100%;
- }
- .wide-body main > aside {
- width: 100%;
- max-width: calc(100vw - 100vh + var(--header-height));
- }
- .narrow-body main {
- flex-direction: column;
- }
- .narrow-body aside, .narrow-body .current-tab {
- border-left: 0px;
- }
- .narrow-body main aside {
- max-width: 100%;
- height: calc(100% - 100vw - var(--header-height));
- }
- .narrow-body voice-graph-2d {
- max-width: calc(60vh - var(--header-height) * .6);
- max-height: 100%;
- margin: auto;
- bottom: 0px;
- position: relative;
- }
- .narrow-body main > section {
- max-height: 60%;
- height: 100vw;
- flex-shrink: 0;
- }
- .narrow-body main > aside {
- max-height: calc(100% - 100vw);
- min-height: 40%;
- height: 100%;
- }
- .narrow-body .loading-message {
- display: none !important;
- }
- section > h2:first-child {
- margin-top: 0px;
- margin-bottom: 0px;
- }
- section > h2:first-child + p {
- margin-top: 0px;
- }
- voice-graph-2d {
- position: absolute;
- top: 0px;
- bottom: 0px;
- width: 100%;
- }
- .hidden {
- display: none;
- }
- .scrolling-text-box {
- overflow-y: auto;
- height: 6em;
- border: 1px solid var(--chrome-border);
- padding: 1em;
- }
- .scrolling-text-box *:first-child {
- margin-top: 0px;
- }
- .scrolling-text-box *:last-child {
- margin-bottom: 0px;
- }
- /*
- input, button, select, textarea {
- font-size: inherit;
- }
- */
|