Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 35 additions & 15 deletions ui/bits/css/_markdown-toastui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,30 @@
}
.toastui-editor {
&-defaultUI {
@extend %base-font;
border: none;
&-toolbar {
@extend %metal, %box-radius-top;
border-radius: 3px 3px 0 0 !important;
@extend %metal;
border-radius: $box-radius-size $box-radius-size 0 0 !important;
border: $border;
border-bottom: 0;
flex-flow: row wrap;
}
}
&-toolbar {
height: auto;
&-icons {
border-color: $c-border;
&:not(:disabled) {
background-color: $c-bg-zebra;
&:hover {
background-color: $c-bg-box;
}
&.active {
background-color: $c-bg-zebra;
}
}
}
}
&-toolbar-group button {
margin: 6px 3px;
}
&-dropdown {
&-toolbar {
display: flex;
Expand All @@ -50,10 +52,7 @@
}
}
&-md-tab-container {
background: none;
/* preview is not accurate to what lichess shows */
display: none;
width: 0;
}
&-tabs {
@extend %flex-center;
Expand All @@ -68,13 +67,27 @@
}
}
&-popup {
@extend %box-radius;
border: $border;
background-color: $c-bg-page;
margin-left: 0;

@include if-light {
background-color: $c-bg;
}

button {
text-align: center;
}
}
&-ok-button {
background-color: $c-primary !important;
}
&-ww-container,
&-md-container {
@extend %box-radius-bottom;
border: $border;
border-top: 0;
border-radius: 0 0 3px 3px;
}
&.ww-mode,
&.md-mode,
Expand Down Expand Up @@ -107,11 +120,18 @@
background: none;
border: none;
}
&-popup-body li[data-type='Heading'] {
&[data-level='1'],
&[data-level='5'],
&[data-level='6'] {
display: none;
&-popup-body {
li[data-type='Heading'] {
&[data-level='1'],
&[data-level='5'],
&[data-level='6'] {
display: none;
}
}
input {
width: 100%;
border: $border;
border-radius: $box-radius-size !important;
}
}
}
Expand Down