| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- @use '@growi/core/scss/bootstrap/init' as bs;
- @use './comment-inheritance';
- @use '../PageEditor/page-editor-inheritance';
- // display cheatsheet for comment form only
- .comment-editor-styles :global {
- .cm-editor {
- height: 300px !important;
- }
- .comment-form {
- position: relative;
- // background
- .bg-comment {
- @extend %bg-comment
- }
- // user icon
- .picture {
- @extend %picture;
- }
- // textarea
- .comment-form-preview {
- padding-top: 0.5em;
- }
- }
- .comment-write {
- .nav {
- --bs-nav-link-padding-x: 12px;
- --bs-nav-link-padding-y: 6px;
- }
- }
- }
- @include bs.color-mode(light) {
- .comment-editor-styles :global {
- .comment-write {
- .nav.nav-pills {
- background-color: white;
- &:hover {
- background-color: bs.$gray-100;
- }
- border: 2px solid bs.$gray-500;
- --bs-nav-link-color: #{ bs.$gray-500 };
- --bs-nav-link-hover-color: #{ bs.$gray-500 };
- --bs-nav-pills-link-active-bg: #{ bs.$gray-500 };
- }
- }
- }
- }
- @include bs.color-mode(dark) {
- .comment-editor-styles :global {
- .comment-write {
- .nav.nav-pills {
- // background-color: bs.$gray-600;
- &:hover {
- background-color: rgba(bs.$gray-600, 0.1);
- }
- border: 2px solid bs.$gray-800;
- --bs-nav-pills-link-active-color: #{ bs.$gray-400 };
- --bs-nav-link-color: #{ bs.$gray-400 };
- --bs-nav-link-hover-color: #{ bs.$gray-400 };
- --bs-nav-pills-link-active-bg: #{ bs.$gray-800 };
- }
- }
- }
- }
|