Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tinymce button styles #2646

Merged
merged 1 commit into from
Dec 15, 2023
Merged
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
66 changes: 35 additions & 31 deletions app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -645,22 +645,14 @@ body .mce-abs-layout-item {
&:focus,
&:hover {
color: $text-color;

button {
background: inherit;
}
}

&:hover {
background-color: darken($medium-gray, 3%);
}

&:focus {
background-color: $focus-color;
background-color: $default-border-color;
}

button {
padding: 2px 4px;
padding: 5px $default-padding;
font-size: 12px;
line-height: 20px;
cursor: pointer;
Expand Down Expand Up @@ -692,14 +684,17 @@ body .mce-abs-layout-item {
text-shadow: 1px 1px #fff;
}

&.mce-disabled button,
&.mce-disabled:hover button {
cursor: default;
box-shadow: none;
opacity: 0.4;
filter: alpha(opacity=40);
}
&.mce-disabled,
&.mce-disabled:hover {
background-color: transparent;

button {
cursor: default;
box-shadow: none;
opacity: 0.4;
filter: alpha(opacity=40);
}
}
&.mce-active,
&.mce-active:hover {
background-color: $default-border-color;
Expand Down Expand Up @@ -736,13 +731,13 @@ body .mce-abs-layout-item {
}

.mce-btn .mce-caret {
margin-top: 8px;
margin-left: 0;
margin-top: 2px;
margin-left: 2px;
}

.mce-btn-small .mce-caret {
margin-top: 8px;
margin-left: 0;
margin-top: 2px;
margin-left: 2px;
}

.mce-caret {
Expand Down Expand Up @@ -803,7 +798,8 @@ i.mce-i-checkbox {
margin: 0 3px 0 0;
border: 1px solid #c5c5c5;
border-radius: $default-border-radius;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.2),
0 1px 2px rgba(0, 0, 0, 0.05);
background-color: #f0f0f0;
background-image: -moz-linear-gradient(top, #fff, #d9d9d9);
Expand Down Expand Up @@ -1129,7 +1125,7 @@ i.mce-i-checkbox {
.mce-menubtn span {
color: #333;
margin-right: 2px;
line-height: 20px;
line-height: 16px;
}

.mce-menubtn.mce-btn-small span {
Expand Down Expand Up @@ -1201,7 +1197,7 @@ i.mce-i-checkbox {

.mce-menu-item.mce-selected .mce-text,
.mce-menu-item:hover .mce-text {
color: #fff;
color: #fff !important;
}

.mce-menu-item.mce-selected .mce-ico,
Expand Down Expand Up @@ -1276,7 +1272,7 @@ i.mce-i-checkbox {
.mce-menu-item:hover {
text-decoration: none;
color: #fff;
background: $button-hover-bg-color;
background: $dark-blue;
}

.mce-menu-item-sep:hover,
Expand Down Expand Up @@ -1406,11 +1402,15 @@ i.mce-i-resize {
}

.mce-splitbtn .mce-open.mce-active {
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),
-webkit-box-shadow:
inset 0 2px 4px rgba(0, 0, 0, 0.15),
0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow:
inset 0 2px 4px rgba(0, 0, 0, 0.15),
0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),
box-shadow:
inset 0 2px 4px rgba(0, 0, 0, 0.15),
0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mce-splitbtn.mce-btn-small .mce-open {
Expand Down Expand Up @@ -1487,7 +1487,9 @@ i.mce-i-resize {
border-radius: $default-border-radius;
box-shadow: $form-field-box-shadow;
display: inline-block;
transition: border linear 0.2s, box-shadow linear 0.2s;
transition:
border linear 0.2s,
box-shadow linear 0.2s;
resize: none;
white-space: pre-wrap;
color: $form-field-text-color;
Expand Down Expand Up @@ -1534,7 +1536,8 @@ i.mce-i-resize {

@font-face {
font-family: "tinymce";
src: url("tinymce/skins/alchemy/fonts/tinymce.woff") format("woff"),
src:
url("tinymce/skins/alchemy/fonts/tinymce.woff") format("woff"),
url("tinymce/skins/alchemy/fonts/tinymce.ttf") format("truetype"),
url("tinymce/skins/alchemy/fonts/tinymce.svg#tinymce") format("svg");
font-weight: normal;
Expand All @@ -1543,7 +1546,8 @@ i.mce-i-resize {

@font-face {
font-family: "tinymce-small";
src: url("tinymce/skins/alchemy/fonts/tinymce-small.woff") format("woff"),
src:
url("tinymce/skins/alchemy/fonts/tinymce-small.woff") format("woff"),
url("tinymce/skins/alchemy/fonts/tinymce-small.ttf") format("truetype"),
url("tinymce/skins/alchemy/fonts/tinymce-small.svg#tinymce") format("svg");
font-weight: normal;
Expand Down
Loading