|
@@ -227,7 +227,7 @@
|
|
|
transition-duration: 300ms;
|
|
transition-duration: 300ms;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-@mixin border-vertical($beforeOrAfter, $borderColor, $borderLength, $zIndex: initial, $isBtnGroup: false) {
|
|
|
|
|
|
|
+@mixin border-vertical($beforeOrAfter, $borderLength, $zIndex: initial, $isBtnGroup: false) {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
@if $isBtnGroup {
|
|
@if $isBtnGroup {
|
|
|
&:not(:first-child) {
|
|
&:not(:first-child) {
|
|
@@ -248,53 +248,8 @@
|
|
|
height: $borderLength;
|
|
height: $borderLength;
|
|
|
margin-left: -0.5px;
|
|
margin-left: -0.5px;
|
|
|
content: '';
|
|
content: '';
|
|
|
- border-left: 1px solid $borderColor;
|
|
|
|
|
|
|
+ border-left: 1px solid transparent;
|
|
|
transition: border-color 0.15s ease-in-out;
|
|
transition: border-color 0.15s ease-in-out;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-@mixin page-editor-mode-manager($textColor, $borderColor, $bgColorHoverAndActive, $bgColor: white) {
|
|
|
|
|
- width: 70px;
|
|
|
|
|
- color: $textColor;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- background-color: $bgColor;
|
|
|
|
|
- border-color: $borderColor;
|
|
|
|
|
-
|
|
|
|
|
- @include border-vertical('before', $borderColor, 70%, 1, true);
|
|
|
|
|
-
|
|
|
|
|
- &.view-button,
|
|
|
|
|
- &.edit-button {
|
|
|
|
|
- line-height: 1.2rem;
|
|
|
|
|
- .grw-page-editor-mode-manager-icon {
|
|
|
|
|
- @include media-breakpoint-down(sm) {
|
|
|
|
|
- font-size: 1.2rem;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- &.hackmd-button {
|
|
|
|
|
- line-height: 1.2rem;
|
|
|
|
|
- .grw-page-editor-mode-manager-icon {
|
|
|
|
|
- @include media-breakpoint-down(sm) {
|
|
|
|
|
- font-size: 1.2rem;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .grw-page-editor-mode-manager-label {
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- letter-spacing: -0.6px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- &:hover,
|
|
|
|
|
- &:active,
|
|
|
|
|
- &.active {
|
|
|
|
|
- color: $textColor;
|
|
|
|
|
- background-color: $bgColorHoverAndActive;
|
|
|
|
|
- border-color: $borderColor;
|
|
|
|
|
- &::after {
|
|
|
|
|
- border-color: $bgColorHoverAndActive;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- &:not(:disabled):not(.disabled):focus {
|
|
|
|
|
- box-shadow: none;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|