2021-01-15 22:57:26 +01:00
|
|
|
.styledEditor {
|
2021-04-25 11:31:52 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: flex-start;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
max-width: 100%;
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
> input[type="radio"] {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
> .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;
|
|
|
|
border-color: var(--borderInputFocus);
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
&:not(:hover) {
|
|
|
|
border-color: var(--backgroundLightest);
|
|
|
|
background-color: var(--borderLight);
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
&:hover {
|
|
|
|
background: #fff;
|
|
|
|
border: 1px solid var(--borderInputFocus);
|
|
|
|
box-shadow: 0 0 0 1px var(--borderInputFocus);
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|
2021-04-25 11:31:52 +02:00
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
> .navbar.activeTab {
|
|
|
|
background-color: var(--backgroundLightest);
|
|
|
|
border-color: var(--borderLight);
|
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
> .navbar.editorTab {
|
|
|
|
min-width: 50%;
|
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
> .navbar.viewTab {
|
|
|
|
min-width: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .styledTextArea {
|
|
|
|
grid-area: view;
|
|
|
|
display: none;
|
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
> .view {
|
|
|
|
min-width: 100%;
|
|
|
|
display: none;
|
|
|
|
min-height: 40px;
|
|
|
|
padding-top: 15px;
|
2021-10-15 15:58:15 +02:00
|
|
|
|
|
|
|
ul {
|
|
|
|
> li {
|
|
|
|
list-style: disc;
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
|
|
|
> li {
|
|
|
|
list-style: decimal;
|
|
|
|
margin-left: 28px;
|
|
|
|
}
|
|
|
|
}
|
2021-04-25 11:31:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
> input.editorRadio {
|
|
|
|
&:checked {
|
|
|
|
~ {
|
|
|
|
.styledTextArea {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|
2021-04-25 11:31:52 +02:00
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
> input.viewRadio {
|
|
|
|
&:checked {
|
|
|
|
~ {
|
|
|
|
.view {
|
|
|
|
display: block;
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|
2021-04-25 11:31:52 +02:00
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|
2021-04-25 11:31:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.styledCheckbox.textEditorModeSwitcher {
|
|
|
|
justify-content: end;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 5px;
|
2021-01-15 22:57:26 +01:00
|
|
|
|
2021-04-25 11:31:52 +02:00
|
|
|
& > .styledCheckboxChild {
|
|
|
|
&.mdonly, &.rteonly {
|
|
|
|
display: flex;
|
|
|
|
margin-left: 5px;
|
|
|
|
border: none;
|
|
|
|
color: var(--textDark);
|
|
|
|
|
|
|
|
&.selected {
|
|
|
|
color: var(--borderInputFocus);
|
|
|
|
|
|
|
|
.styledIcon {
|
|
|
|
color: var(--borderInputFocus);
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|
2021-04-25 11:31:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.styledIcon {
|
|
|
|
font-size: 24px;
|
|
|
|
color: var(--textDark);
|
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|
2021-04-25 11:31:52 +02:00
|
|
|
}
|
2021-01-15 22:57:26 +01:00
|
|
|
}
|