mirror of
https://github.com/codex-team/editor.js
synced 2024-05-18 14:26:48 +02:00
ef50f5cf5a
* Fix settings margins * Remove "not last-of-type" option for settings buttons * Update CHANGELOG.md
140 lines
2.5 KiB
CSS
140 lines
2.5 KiB
CSS
:root {
|
|
/**
|
|
* Selection color
|
|
*/
|
|
--selectionColor: #a8d6ff;
|
|
|
|
/**
|
|
* Toolbar buttons
|
|
*/
|
|
--bg-light: #eff2f5;
|
|
|
|
/**
|
|
* All gray texts: placeholders, settings
|
|
*/
|
|
--grayText: #707684;
|
|
|
|
/**
|
|
* Blue icons
|
|
*/
|
|
--color-active-icon: #388AE5;
|
|
|
|
/**
|
|
* Gray border, loaders
|
|
*/
|
|
--color-gray-border: rgba(201, 201, 204, 0.48);
|
|
|
|
/**
|
|
* Block content width
|
|
* Should be set in a constant at the modules/ui.js
|
|
*/
|
|
--content-width: 650px;
|
|
|
|
/**
|
|
* In narrow mode, we increase right zone contained Block Actions button
|
|
*/
|
|
--narrow-mode-right-padding: 50px;
|
|
|
|
/**
|
|
* Toolbar buttons height and width
|
|
*/
|
|
--toolbar-buttons-size: 34px;
|
|
|
|
/**
|
|
* Toolbar Plus Button and Toolbox buttons height and width
|
|
*/
|
|
--toolbox-buttons-size: 34px;
|
|
|
|
/**
|
|
* Confirm deletion bg
|
|
*/
|
|
--color-confirm: #E24A4A;
|
|
|
|
@custom-media --mobile (max-width: 650px);
|
|
@custom-media --not-mobile (min-width: 651px);
|
|
|
|
--overlay-pane: {
|
|
position: absolute;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0 8px 23px -6px rgba(21,40,54,0.31), 22px -14px 34px -18px rgba(33,48,73,0.26);
|
|
border-radius: 4px;
|
|
z-index: 2;
|
|
|
|
&::before {
|
|
content: '';
|
|
width: 15px;
|
|
height: 15px;
|
|
position: absolute;
|
|
top: -7px;
|
|
left: 50%;
|
|
margin-left: -7px;
|
|
transform: rotate(-45deg);
|
|
background-color: #fff;
|
|
z-index: -1;
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Styles for Toolbox Buttons and Plus Button
|
|
*/
|
|
--toolbox-button: {
|
|
color: var(--grayText);
|
|
cursor: pointer;
|
|
width: var(--toolbox-buttons-size);
|
|
height: var(--toolbox-buttons-size);
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
&:hover,
|
|
&--active {
|
|
color: var(--color-active-icon);
|
|
}
|
|
|
|
&--active{
|
|
animation: bounceIn 0.75s 1;
|
|
animation-fill-mode: forwards;
|
|
}
|
|
|
|
};
|
|
|
|
/**
|
|
* Styles for Settings Button in Toolbar
|
|
*/
|
|
--toolbar-button: {
|
|
display: inline-flex;
|
|
width: 34px;
|
|
height: 34px;
|
|
line-height: 34px;
|
|
text-align: center;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
border: 0;
|
|
outline: none;
|
|
background-color: transparent;
|
|
vertical-align: bottom;
|
|
color: var(--grayText);
|
|
|
|
&:not(:nth-child(3n+3)) {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
&:nth-child(n+4) {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--bg-light);
|
|
}
|
|
|
|
& > svg,
|
|
.icon {
|
|
margin: auto;
|
|
}
|
|
|
|
&--active {
|
|
color: var(--color-active-icon);
|
|
}
|
|
};
|
|
}
|