github.com/rpdict/ponzu@v0.10.1-0.20190226054626-477f29d6bf5e/system/admin/static/editor/sass/materialNote.scss (about) 1 @import "components/color"; 2 @import "components/variables"; 3 4 /* variables 5 =================================================================================*/ 6 $toolbarColor: color("grey", "lighten-2") !default; 7 $toolbarTextColor: color("grey", "darken-3") !default; 8 9 $borderColor: color("grey", "base") !default; 10 11 $firstButtonColor: color("grey", "lighten-2") !default; 12 $firstButtonHoverColor: color("grey", "base") !default; 13 $secondButtonColor: color("blue", "darken-4") !default; 14 $secondButtonHoverColor: color("blue", "base") !default; 15 $thirdButtonColor: color("red", "darken-4") !default; 16 $thirdButtonHoverColor: color("blue", "base") !default; 17 18 $firstFocusColor: color("blue", "base") !default; 19 $secondFocusColor: color("grey", "base") !default; 20 21 $selectionColor: color("grey", "darken-1") !default; 22 23 $helpBackgroundColor: color("grey", "lighten-2") !default; 24 25 // base unit for table dimension picker 26 $gridUnit: 26px; 27 28 29 .editorDialogs .modal, .note-editor .modal { 30 background-color: lighten($toolbarColor, 100%); 31 color: $toolbarTextColor; 32 z-index: 1057 !important; 33 backface-visibility: hidden; 34 35 .input-field input:not([readonly]), .input-field input.datepicker { 36 border-color: $toolbarTextColor !important; 37 } 38 .input-field input:focus:not([readonly]), .input-field input.datepicker:focus, textarea.materialize-textarea:focus:not([readonly]) { 39 box-shadow: 0 1px 0 0 $firstFocusColor !important; 40 border-color: $firstFocusColor !important; 41 } 42 label, .input-field input:not([readonly]) + label, .input-field input.datepicker + label, .input-field .prefix, .note-editor + label { 43 color: $toolbarTextColor !important; 44 } 45 .input-field input:focus:not([readonly]) + label, .input-field input.datepicker:focus + label, .input-field .prefix.active, textarea.materialize-textarea:focus:not([readonly]) + label { 46 color: $firstFocusColor !important; 47 } 48 49 .btn { 50 background-color: $secondButtonColor; 51 color: lighten($toolbarTextColor, 100%) !important; 52 } 53 .btn:hover { 54 background-color: lighten($secondButtonColor, 10%) !important; 55 } 56 57 .btn.disabled { 58 background-color: darken($secondButtonColor, 15%) !important; 59 } 60 61 .modal-footer { 62 background-color: darken($toolbarColor, 10%); 63 64 .btnClose { 65 margin-right: 15px; 66 background-color: $thirdButtonColor; 67 } 68 69 .btnClose:hover { 70 background-color: lighten($thirdButtonColor, 10%) !important; 71 } 72 } 73 74 .canvasContainerEmpty { 75 border: solid 5px $firstFocusColor; 76 } 77 } 78 79 //scrollbars 80 .note-editor .note-editable, .editorDialogs .modal-content, .note-editor .note-color-palette, .note-editor .note-codable, .modal.modal-fixed-footer .modal-content { 81 &::-webkit-scrollbar { 82 width: 17px !important; 83 } 84 &::-webkit-scrollbar-track { 85 background-color: $toolbarColor !important; 86 } 87 &::-webkit-scrollbar-thumb { 88 background-color: lighten($toolbarColor, 20%) !important; 89 } 90 &::-webkit-scrollbar-thumb:hover { 91 background-color: lighten($toolbarColor, 30%) !important; 92 } 93 } 94 95 .note-editor { 96 position: relative; 97 border: { 98 left: 1px solid $toolbarColor; 99 bottom: 1px solid $toolbarColor; 100 right: 1px solid $toolbarColor; 101 } 102 103 .img-circle { 104 border-radius: 50%; 105 } 106 107 .img-rounded { 108 border-radius: 5%; 109 } 110 111 .img-thumbnail { 112 border: solid 2px $toolbarColor; 113 height: 200px; 114 } 115 116 .img-bordered { 117 border: solid 5px $toolbarColor; 118 } 119 120 .btn:hover { 121 background-color: lighten($firstButtonColor, 10%) !important; 122 } 123 124 .btn.active { 125 background-color: $firstFocusColor; 126 } 127 128 .note-editable { 129 ul li { 130 list-style-type: square !important; 131 display: list-item; 132 list-style-position: inside; 133 } 134 } 135 136 .note-dialog { 137 & > div { 138 display: none 139 } 140 .form-group { 141 margin-right: 0; 142 margin-left: 0 143 } 144 .note-modal-form { 145 margin: 0 146 } 147 .note-image-dialog .note-dropzone { 148 min-height: 100px; 149 margin-bottom: 10px; 150 font-size: 30px; 151 line-height: 4; 152 color: lightgray; 153 text-align: center; 154 border: 4px dashed lightgray 155 } 156 } 157 158 .transparent { 159 opacity: 0; 160 } 161 162 .note-resizebar { 163 background-color: $toolbarColor; 164 width: 100%; 165 height: 13px; 166 cursor: ns-resize; 167 padding-top: 1px; 168 169 .note-icon-bar { 170 width: 20px; 171 margin: 2px auto; 172 border-top: 2px solid lighten($toolbarColor, 20%); 173 } 174 } 175 176 .note-toolbar { 177 position: relative; 178 color: $toolbarTextColor; 179 background-color: $toolbarColor; 180 margin: 0; 181 z-index: 1052; 182 183 ul { 184 padding: 0; 185 } 186 187 .btn.disabled, button.disabled { 188 display: none; 189 } 190 191 .dropdown { 192 cursor: pointer; 193 } 194 195 .note-current-fontname { 196 min-width: 134px; 197 display: inline-block; 198 text-align: left; 199 } 200 } 201 202 .note-handle { 203 .note-control-selection { 204 position: absolute; 205 display: none; 206 border: 2px solid $firstButtonColor; 207 208 .note-control-selection-bg { 209 width: 100%; 210 height: 100%; 211 z-index: 3; 212 background-color: transparentize($selectionColor, 0.7); 213 } 214 215 & > div { 216 position: absolute 217 } 218 .note-control-handle { 219 width: 7px; 220 height: 7px; 221 border: 1px solid black; 222 } 223 .note-control-holder { 224 width: 7px; 225 height: 7px; 226 border: 1px solid black; 227 } 228 .note-control-sizing { 229 width: 15px; 230 height: 15px; 231 background-color: $firstButtonColor; 232 z-index: 5; 233 cursor: se-resize; 234 } 235 .note-control-nw { 236 top: -5px; 237 left: -5px; 238 border-right: 0; 239 border-bottom: 0; 240 } 241 .note-control-ne { 242 top: -5px; 243 right: -5px; 244 border-bottom: 0; 245 border-left: none; 246 } 247 .note-control-sw { 248 bottom: -5px; 249 left: -5px; 250 border-top: 0; 251 border-right: 0; 252 } 253 .note-control-se { 254 right: -5px; 255 bottom: -5px; 256 } 257 .note-control-selection-info { 258 right: 0; 259 bottom: 0; 260 padding: 5px; 261 margin: 17px; 262 font-size: 15px; 263 color: $toolbarTextColor; 264 background-color: $firstButtonColor; 265 z-index: 5; 266 } 267 } 268 } 269 } 270 271 .note-dialog .note-help-dialog { 272 color: $toolbarColor; 273 274 h4 { 275 color: $toolbarTextColor; 276 } 277 278 thead { 279 background-color: $firstFocusColor; 280 } 281 282 tbody { 283 background-color: $helpBackgroundColor; 284 } 285 } 286 287 .note-editor, .popover { 288 .btn-group { 289 display: inline-block; 290 margin-right: 10px; 291 position: relative; 292 293 ul { 294 padding: 0; 295 } 296 297 .closeLeft { 298 padding-right: 0 !important; 299 margin-right: 0 !important; 300 301 i { 302 margin-right: 0 !important; 303 } 304 } 305 306 i.left { 307 margin-right: 5px; 308 } 309 } 310 311 .note-toolbar .btn { 312 border-radius: 0 !important; 313 box-shadow: none !important; 314 padding: 0 9px !important; 315 background-color: $firstButtonColor; 316 } 317 318 .btnSecond { 319 background-color: $secondButtonColor !important; 320 } 321 322 .btnThird { 323 background-color: $thirdButtonColor !important; 324 } 325 326 note-toolbar button, button, .note-toolbar .btn { 327 background-color: $firstButtonColor; 328 border: none; 329 height: 36px; 330 text-transform: uppercase; 331 color: $toolbarTextColor !important; 332 } 333 334 [type="checkbox"]:checked + label:before, [type="checkbox"]:checked + label:before { 335 border-right-color: $secondButtonColor !important; 336 border-bottom-color: $secondButtonColor !important; 337 } 338 339 .note-palette-title { 340 padding: 0 !important; 341 } 342 343 .colorName { 344 display: inline-block; 345 color: $toolbarTextColor; 346 347 @media #{$small-and-down} { 348 display: none; 349 } 350 } 351 352 .note-color-palette { 353 line-height: 10px; 354 border: solid 3px $toolbarColor; 355 padding: 0 !important; 356 overflow-x: scroll; 357 overflow-y: hidden; 358 359 .note-color-row { 360 padding: 0 !important; 361 min-width: 300px; 362 } 363 364 button.note-color-btn { 365 width: 20px; 366 height: 20px; 367 padding: 0; 368 margin: 0; 369 } 370 371 .note-color-btn:hover { 372 &:after { 373 position: absolute; 374 width: 30px; 375 height: 30px; 376 content: ""; 377 background-color: inherit; 378 margin-top: -15px; 379 margin-left: -15px; 380 } 381 } 382 } 383 384 .note-dimension-picker { 385 overflow: hidden; 386 } 387 388 .largeDropdown { 389 width: 290px; 390 } 391 392 .dropdown-menu { 393 z-index: 1033; 394 395 &.note-check { 396 min-width: 80px; 397 } 398 399 label { 400 color: $toolbarTextColor !important; 401 } 402 } 403 404 ul.dropdown-menu { 405 position: absolute; 406 top: 20px; 407 background-color: lighten($toolbarColor, 10%); 408 border: { 409 left: 3px solid $toolbarColor; 410 bottom: 3px solid $toolbarColor; 411 right: 3px solid $toolbarColor; 412 } 413 414 &#colors { 415 width: 342px; 416 417 .indicator { 418 width: 50%; 419 left: 0; 420 } 421 } 422 423 .colorTable { 424 padding: 3px 0; 425 } 426 427 .tabs { 428 background-color: $toolbarColor; 429 430 &:hover { 431 background-color: $toolbarColor; 432 } 433 434 .tab a, .tab a:hover { 435 color: $secondFocusColor; 436 } 437 438 .indicator { 439 background-color: $secondFocusColor; 440 } 441 } 442 443 li { 444 list-style-type: none; 445 padding: 0 !important; 446 447 div { 448 padding: 3px 15px; 449 cursor: pointer; 450 } 451 } 452 } 453 } 454 455 .note-popover .popover { 456 position: absolute; 457 max-width: none; 458 color: $toolbarTextColor; 459 460 .arrow { 461 width: 0; 462 height: 0; 463 border-style: solid; 464 border-width: 0 10px 10px 10px; 465 border-color: transparent transparent $firstButtonColor transparent; 466 } 467 468 .popover-content { 469 background-color: $firstButtonColor; 470 471 & > a { 472 margin-left: 12px; 473 } 474 475 a { 476 display: inline-block; 477 max-width: 200px; 478 overflow: hidden; 479 text-overflow: ellipsis; 480 white-space: nowrap; 481 vertical-align: middle 482 } 483 484 .arrow { 485 left: 20px 486 } 487 488 .btn-group { 489 display: inline-block; 490 491 .btn { 492 border-radius: 0 !important; 493 box-shadow: none !important; 494 padding: 0 9px !important; 495 background-color: $firstButtonColor; 496 color: $toolbarTextColor !important; 497 } 498 } 499 } 500 } 501 502 .note-popover .popover .popover-content .note-para .dropdown-menu, .note-toolbar .note-para .dropdown-menu { 503 min-width: 172px; 504 padding: 5px 505 } 506 .note-popover .popover .popover-content .note-para .dropdown-menu > div:first-child, .note-toolbar .note-para .dropdown-menu > div:first-child { 507 margin-right: 5px 508 } 509 510 511 512 513 514 515 516 // the following is unchanged from original summernote css 517 .note-editor .note-dropzone { 518 position: absolute; 519 z-index: 100; 520 display: none; 521 color: #87cefa; 522 background-color: white; 523 border: 2px dashed #87cefa; 524 opacity: .95; 525 pointer-event: none 526 } 527 .note-editor .note-dropzone .note-dropzone-message { 528 display: table-cell; 529 font-size: 28px; 530 font-weight: bold; 531 text-align: center; 532 vertical-align: middle 533 } 534 .note-editor .note-dropzone.hover { 535 color: #098ddf; 536 border: 2px dashed #098ddf 537 } 538 .note-editor.dragover .note-dropzone { 539 display: table 540 } 541 542 .note-editor.fullscreen { 543 position: fixed; 544 top: 0; 545 left: 0; 546 z-index: 2021; 547 width: 100% 548 } 549 .note-editor.fullscreen .note-editable { 550 background-color: white 551 } 552 .note-editor.fullscreen .note-resizebar { 553 display: none 554 } 555 .note-editor.codeview .note-editable { 556 display: none 557 } 558 .note-editor.codeview .note-codable { 559 display: block 560 } 561 .note-editor .note-statusbar { 562 background-color: #f5f5f5 563 } 564 .note-editor .note-editable[contenteditable=true]:empty:not(:focus):before { 565 color: #a9a9a9; 566 content: attr(data-placeholder) 567 } 568 .note-editor .note-editable { 569 padding: 10px; 570 overflow: auto; 571 outline: 0 572 } 573 .note-editor .note-editable[contenteditable="false"] { 574 background-color: #e5e5e5 575 } 576 .note-editor .note-codable { 577 display: none; 578 width: 100%; 579 padding: 10px; 580 margin-bottom: 0; 581 font-family: Menlo, Monaco, monospace, sans-serif; 582 font-size: 14px; 583 color: #ccc; 584 background-color: #222; 585 border: 0; 586 -webkit-border-radius: 0; 587 -moz-border-radius: 0; 588 border-radius: 0; 589 box-shadow: none; 590 -webkit-box-sizing: border-box; 591 -moz-box-sizing: border-box; 592 -ms-box-sizing: border-box; 593 box-sizing: border-box; 594 resize: none 595 } 596 .note-air-editor { 597 outline: 0 598 } 599 600 .note-popover .popover .popover-content, 601 .note-toolbar { 602 padding: 0; 603 margin: 0 604 } 605 .note-popover .popover .popover-content > .btn-group, 606 .note-toolbar > .btn-group { 607 margin-top: 0; 608 margin-right: 5px; 609 margin-left: 0 610 } 611 .note-popover .popover .popover-content .btn-group .note-table, 612 .note-toolbar .btn-group .note-table { 613 min-width: 0; 614 padding: 5px 615 } 616 .note-popover .popover .popover-content .btn-group .note-table .note-dimension-picker, 617 .note-toolbar .btn-group .note-table .note-dimension-picker { 618 font-size: 18px 619 } 620 .note-popover .popover .popover-content .btn-group .note-table .note-dimension-picker .note-dimension-picker-mousecatcher, 621 .note-toolbar .btn-group .note-table .note-dimension-picker .note-dimension-picker-mousecatcher { 622 position: absolute!important; 623 z-index: 3; 624 width: $gridUnit * 10; 625 height:$gridUnit * 10; 626 cursor: pointer 627 } 628 .note-popover .popover .popover-content .btn-group .note-table .note-dimension-picker .note-dimension-picker-unhighlighted, 629 .note-toolbar .btn-group .note-table .note-dimension-picker .note-dimension-picker-unhighlighted { 630 position: relative !important; 631 z-index: 1; 632 width: $gridUnit * 12; 633 height: $gridUnit * 5; 634 background-size: 26px 26px; 635 background-image:repeating-linear-gradient(0deg, #3b3b3b, #3b3b3b 4px, transparent 4px, transparent 26px), 636 repeating-linear-gradient(-90deg, transparent, transparent 4px, #fff 4px, #fff 26px); 637 } 638 .note-popover .popover .popover-content .btn-group .note-table .note-dimension-picker .note-dimension-picker-highlighted, 639 .note-toolbar .btn-group .note-table .note-dimension-picker .note-dimension-picker-highlighted { 640 position: absolute !important; 641 z-index: 2; 642 width: $gridUnit; 643 height: $gridUnit; 644 background-size: 26px 26px; 645 background-image:repeating-linear-gradient(0deg, #3b3b3b, #3b3b3b 4px, transparent 4px, transparent 26px), 646 repeating-linear-gradient(-90deg, transparent, transparent 4px, $firstFocusColor 4px, $firstFocusColor 26px); 647 } 648 649 .note-popover .popover .popover-content .note-style h1, 650 .note-toolbar .note-style h1, 651 .note-popover .popover .popover-content .note-style h2, 652 .note-toolbar .note-style h2, 653 .note-popover .popover .popover-content .note-style h3, 654 .note-toolbar .note-style h3, 655 .note-popover .popover .popover-content .note-style h4, 656 .note-toolbar .note-style h4, 657 .note-popover .popover .popover-content .note-style h5, 658 .note-toolbar .note-style h5, 659 .note-popover .popover .popover-content .note-style h6, 660 .note-toolbar .note-style h6, 661 .note-popover .popover .popover-content .note-style blockquote, 662 .note-toolbar .note-style blockquote { 663 margin: 0 664 } 665 .note-popover .popover .popover-content .note-color .dropdown-toggle, 666 .note-toolbar .note-color .dropdown-toggle { 667 width: 20px; 668 padding-left: 5px 669 } 670 .note-popover .popover .popover-content .note-color .dropdown-menu .btn-group, 671 .note-toolbar .note-color .dropdown-menu .btn-group { 672 margin: 0 673 } 674 .note-popover .popover .popover-content .note-color .dropdown-menu .btn-group:first-child, 675 .note-toolbar .note-color .dropdown-menu .btn-group:first-child { 676 margin: 0 5px 677 } 678 .note-popover .popover .popover-content .note-color .dropdown-menu .btn-group .note-palette-title, 679 .note-toolbar .note-color .dropdown-menu .btn-group .note-palette-title { 680 margin: 2px 7px; 681 font-size: 12px; 682 text-align: center; 683 border-bottom: 1px solid #eee 684 } 685 .note-popover .popover .popover-content .note-color .dropdown-menu .btn-group .note-color-reset, 686 .note-toolbar .note-color .dropdown-menu .btn-group .note-color-reset { 687 padding: 0 3px; 688 margin: 3px; 689 font-size: 11px; 690 cursor: pointer; 691 -webkit-border-radius: 5px; 692 -moz-border-radius: 5px; 693 border-radius: 5px 694 } 695 .note-popover .popover .popover-content .note-color .dropdown-menu .btn-group .note-color-row, 696 .note-toolbar .note-color .dropdown-menu .btn-group .note-color-row { 697 height: 20px 698 } 699 .note-popover .popover .popover-content .note-color .dropdown-menu .btn-group .note-color-reset:hover, 700 .note-toolbar .note-color .dropdown-menu .btn-group .note-color-reset:hover { 701 background: #eee 702 } 703 /*.note-popover .popover .popover-content .dropdown-menu, 704 .note-toolbar .dropdown-menu { 705 min-width: 90px 706 }*/ 707 .note-popover .popover .popover-content .dropdown-menu.right, 708 .note-toolbar .dropdown-menu.right { 709 right: 0; 710 left: auto 711 } 712 .note-popover .popover .popover-content .dropdown-menu.right::before, 713 .note-toolbar .dropdown-menu.right::before { 714 right: 9px; 715 left: auto!important 716 } 717 .note-popover .popover .popover-content .dropdown-menu.right::after, 718 .note-toolbar .dropdown-menu.right::after { 719 right: 10px; 720 left: auto!important 721 } 722 .note-popover .popover .popover-content .dropdown-menu.note-check li a i, 723 .note-toolbar .dropdown-menu.note-check li a i { 724 color: deepskyblue; 725 visibility: hidden 726 } 727 .note-popover .popover .popover-content .dropdown-menu.note-check li a.checked i, 728 .note-toolbar .dropdown-menu.note-check li a.checked i { 729 visibility: visible 730 } 731 .note-popover .popover .popover-content .note-fontsize-10, 732 .note-toolbar .note-fontsize-10 { 733 font-size: 10px 734 }