2025-06-09 13:16:24 +05:30

132 lines
2.7 KiB
CSS

.editor-wrapper {
max-width: 100%;
margin: 1px auto;
background: #fff;
overflow: hidden;
}
.ql-container {
border: 1px solid #ccc;
border-bottom: none;
min-height: 80px;
}
.custom-toolbar {
/* text-align: left; */
background-color: transparent;
border: 1px solid #ccc;
border-top: none;
}
/* Target the dropdown in the toolbar */
.ql-toolbar .ql-picker.ql-header {
position: relative;
}
/* Open the dropdown upwards */
.ql-toolbar .ql-picker.ql-header .ql-picker-options {
bottom: 100%; /* Move it above the picker */
top: auto; /* Cancel default dropdown positioning */
margin-bottom: 5px; /* Optional spacing */
}
.ql-toolbar .ql-picker.ql-header {
font-family: Arial, sans-serif;
font-size: 10px;
}
.ql-toolbar .ql-picker-label {
background-color: #eee;
/* padding: 6px 10px; */
border-radius: 4px;
cursor: pointer;
color: #333;
}
.ql-toolbar .ql-picker-options {
background-color: white;
border: 1px solid #ccc;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
border-radius: 4px;
overflow: hidden;
}
.ql-toolbar .ql-picker-options span {
padding: 2px 1px;
display: block;
cursor: pointer;
}
.ql-toolbar .ql-picker-options span:hover {
background-color: #f0f0f0;
}
.ql-toolbar .ql-picker-item{
padding: 0px;
}
.ql-snow.ql-toolbar button, .ql-snow .ql-toolbar button {
background: none;
border: none;
cursor: pointer;
display: inline-block;
float: left;
font-size: 15px;
padding: 2px 2px;
width: 28px;
}
.ql-toolbar.ql-snow{
padding: 4px;
}
@media (max-width: 768px) {
.ql-toolbar.ql-snow .ql-formats {
margin-right: 1px;
align-items: center;
}
}
.ql-snow.ql-toolbar button,
.ql-snow .ql-toolbar button {
background: none;
border: none;
cursor: pointer;
display: inline-block;
height: 18px;
padding: 2px 2px;
width: 22px;
font-size: 14px;
/* REMOVE THIS to fix side-alignment */
/* float: left; */
vertical-align: middle;
}
.ql-snow .ql-picker-label {
font-size: 10px; /* Smaller text */
padding: 0 6px; /* Horizontal padding */
height: 20px; /* Height of the label */
line-height: 20px; /* Match height to vertically center single-line text */
background-color: #eee;
border-radius: 0px;
cursor: pointer;
color: #333;
text-align: center;
width: 100%;
display: flex; /* Enable flexbox */
align-items: center; /* Vertical centering */
justify-content: center; /* Horizontal centering */
}
/* Remove custom upward-opening styles */
.ql-toolbar .ql-picker.ql-header .ql-picker-options {
top: 100%; /* Position it below the label */
bottom: auto; /* Cancel the upward positioning */
margin-top: 5px; /* Optional spacing */
}
.ql-editor {
padding: 4px 15px;
}