Merge pull request #1983 from cryptpad/markdown-toolbar-spacing

Fix spacing issues in the markdown toolbar
This commit is contained in:
yflory 2025-07-09 10:44:37 +02:00 committed by GitHub
commit 062b3338c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 14 deletions

View File

@ -65,7 +65,7 @@
.cp-markdown-toolbar {
min-height: @toolbar_line-height;
padding: 0.1rem 0;
padding: 0.15rem 0.20rem;
height: auto;
flex-wrap: wrap;
background-color: @cp_toolbar-bg;
@ -77,6 +77,7 @@
border-radius: @variables_radius;
color: @toolbar-color;
.toolbar_button;
padding: 3px 9px;
&:hover {
background-color: contrast(@cp_toolbar-bg, darken(@cp_toolbar-bg, 5%), lighten(@cp_toolbar-bg, 5%));
}
@ -84,9 +85,6 @@
outline: @variables_focus_style;
}
}
button:nth-of-type(1) {
margin-left: 0.3rem;
}
@media screen and (max-width: @browser_media-medium-screen) {
button:nth-of-type(1) {
margin-left: 0;

View File

@ -181,9 +181,6 @@
position: relative;
.cp-markdown-toggle-button {
.markdown-toolbar-button-style();
&.cp-toolbar-button-active {
//background-color: transparent !important;
}
}
}
@ -855,7 +852,6 @@
}
.cp-markdown-toolbar {
display: block;
padding: 0.1rem 0;
border-radius: @variables_radius 0;
width: 100%;
background-color: transparent;

View File

@ -157,12 +157,6 @@
background-color: transparent;
color: @cp_kanban-fg;
border-radius: @variables_radius @variables_radius 0px 0px;
button {
&:hover {
background-color: @cp_kanban-fg;
color: @cp_kanban-conflict-bg;
}
}
.btn {
outline: 0;
border-radius: @variables_radius;