bitque/jirs-client/js/css/styledEditor.css

77 lines
1.5 KiB
CSS
Raw Normal View History

2020-04-10 08:09:40 +02:00
.styledEditor {
2020-05-31 22:47:48 +02:00
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
max-width: 100%;
2020-04-10 08:09:40 +02:00
}
.styledEditor > input[type="radio"] {
display: none;
}
.styledEditor > .navbar {
border: 1px solid var(--borderLight);
border-top-left-radius: 5px;
border-top-right-radius: 5px;
font-family: var(--font-medium);
font-weight: normal;
text-align: center;
height: 32px;
vertical-align: middle;
line-height: 2;
white-space: nowrap;
transition: all 0.1s;
appearance: none;
cursor: pointer;
user-select: none;
font-size: 14.5px;
}
2020-04-10 22:33:07 +02:00
.styledEditor > .navbar:not(:hover) {
border-color: var(--backgroundLightest);
background-color: var(--borderLight);
}
.styledEditor > .navbar.activeTab {
background-color: var(--backgroundLightest);
border-color: var(--borderLight);
}
2020-04-10 08:09:40 +02:00
.styledEditor > .navbar:hover {
background: #fff;
border: 1px solid var(--borderInputFocus);
box-shadow: 0 0 0 1px var(--borderInputFocus);
}
2020-04-10 22:33:07 +02:00
.styledEditor > .navbar {
2020-04-10 08:09:40 +02:00
border-color: var(--borderInputFocus);
}
2020-05-31 22:47:48 +02:00
.styledEditor > .navbar.editorTab {
min-width: 50%;
2020-04-10 08:09:40 +02:00
}
2020-05-31 22:47:48 +02:00
.styledEditor > .navbar.viewTab {
min-width: 50%;
2020-04-10 08:09:40 +02:00
}
.styledEditor > .styledTextArea {
grid-area: view;
display: none;
}
.styledEditor > .view {
2020-05-31 22:47:48 +02:00
min-width: 100%;
2020-04-10 08:09:40 +02:00
display: none;
min-height: 40px;
2020-04-10 22:33:07 +02:00
padding-top: 15px;
}
.styledEditor > input.editorRadio:checked ~ .styledTextArea {
display: block;
2020-04-10 08:09:40 +02:00
}
.styledEditor > input.viewRadio:checked ~ .view {
display: block;
}