rui_orig/app_styles.css

205 lines
3.1 KiB
CSS
Raw Normal View History

2021-09-07 17:36:50 +03:00
* {
box-sizing: border-box;
padding: 0;
margin: 0;
overflow: hidden;
min-width: 1px;
min-height: 1px;
text-overflow: ellipsis;
}
2023-04-25 17:20:47 +03:00
:root {
--tooltip-arrow-size: 6px;
--tooltip-background: white;
--tooltip-text-color: black;
--tooltip-shadow-color: gray;
}
body {
2021-09-07 17:36:50 +03:00
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
margin: 0 auto;
width: 100%;
height: 100vh;
2021-09-07 17:36:50 +03:00
}
2022-07-01 18:01:25 +03:00
div {
cursor: default;
2022-07-01 18:01:25 +03:00
}
p, h1, h2, h3, h4, h5, h6, blockquote, code, table {
cursor: text;
-webkit-user-select: auto;
user-select: auto;
}
2022-07-01 18:01:25 +03:00
2022-04-21 18:22:17 +03:00
/*
2021-09-07 17:36:50 +03:00
div:focus {
outline: none;
}
2022-04-21 18:22:17 +03:00
*/
2021-09-07 17:36:50 +03:00
input {
2024-05-16 11:13:45 +03:00
box-sizing: border-box;
margin: 2px;
padding: 1px;
font-size: inherit;
}
select {
2024-05-16 11:13:45 +03:00
box-sizing: border-box;
margin: 2px;
font-size: inherit;
}
button {
font-size: inherit;
2021-09-07 17:36:50 +03:00
}
textarea {
2024-05-16 11:13:45 +03:00
box-sizing: border-box;
margin: 2px;
2024-04-24 13:49:16 +03:00
padding: 4px;
2021-09-07 17:36:50 +03:00
overflow: auto;
font-size: inherit;
2024-04-24 13:49:16 +03:00
resize: none;
2021-09-07 17:36:50 +03:00
}
ul:focus {
outline: none;
}
.ruiRoot {
position: absolute;
top: 0px;
bottom: 0px;
right: 0px;
left: 0px;
}
.ruiPopupLayer {
2024-11-25 23:13:29 +03:00
/*background-color: rgba(128,128,128,0.1);*/
2021-09-07 17:36:50 +03:00
position: absolute;
top: 0px;
bottom: 0px;
right: 0px;
left: 0px;
}
2023-04-25 17:20:47 +03:00
.ruiTooltipLayer {
display: grid;
grid-template-rows: 1fr auto 1fr;
justify-items: center;
align-items: center;
position: absolute;
top: 0px;
bottom: 0px;
right: 0px;
left: 0px;
transition: opacity 0.5s ease-out;
filter: drop-shadow(0px 0px 2px var(--tooltip-shadow-color));
}
.ruiTooltipTopArrow {
grid-row-start: 1;
grid-row-end: 2;
border-width: var(--tooltip-arrow-size);
border-style: solid;
border-color: transparent transparent var(--tooltip-background) transparent;
margin-left: 12px;
margin-right: 12px;
}
.ruiTooltipBottomArrow {
grid-row-start: 3;
grid-row-end: 4;
border-width: var(--tooltip-arrow-size);
border-style: solid;
border-color: var(--tooltip-background) transparent transparent transparent;
margin-left: 12px;
margin-right: 12px;
}
.ruiTooltipText {
grid-row-start: 2;
grid-row-end: 3;
padding: 4px 8px 4px 8px;
margin-left: 8px;
margin-right: 8px;
background-color: var(--tooltip-background);
color: var(--tooltip-text-color);
/*box-shadow: 0px 0px 4px 2px #8888;*/
border-radius: 4px;
}
2021-09-07 17:36:50 +03:00
.ruiView {
2023-04-25 17:20:47 +03:00
box-sizing: border-box;
2021-09-07 17:36:50 +03:00
}
.ruiAbsoluteLayout {
position: relative;
}
.ruiGridLayout {
display: grid;
}
.ruiListLayout {
display: flex;
}
.ruiStackLayout {
display: grid;
}
.ruiStackPageLayout {
display: grid;
width: 100%;
height: 100%;
align-items: stretch;
justify-items: stretch;
grid-column-start: 1;
grid-column-end: 2;
grid-row-start: 1;
grid-row-end: 2;
}
.ruiTabsLayout {
display: grid;
}
.ruiImageView {
2023-04-23 12:32:03 +03:00
display: block;
2021-09-07 17:36:50 +03:00
}
2023-01-25 01:06:36 +03:00
.ruiSvgImageView {
display: grid;
}
2021-09-07 17:36:50 +03:00
.ruiListView {
overflow: auto;
}
2023-01-25 01:06:36 +03:00
2021-09-07 17:36:50 +03:00
/*
@media (prefers-color-scheme: light) {
body {
background: #FFF;
color: #000;
}
.ruiRoot {
background-color: #FFFFFF;
}
}
@media (prefers-color-scheme: dark) {
body {
background: #303030;
color: #F0F0F0;
}
.ruiRoot {
background-color: #303030;
}
}
*/