edit_mode.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /* ----------------------------------
  2. * Edit mode
  3. * ---------------------------------- */
  4. [role="dialog"][data-type="edit"] {
  5. overflow: hidden;
  6. position: absolute;
  7. z-index: 100;
  8. top: 0;
  9. left: 0;
  10. right: 0;
  11. bottom: 0;
  12. pointer-events: none;
  13. }
  14. /* Header */
  15. [role="dialog"][data-type="edit"] [role="region"] > header:first-child {
  16. background-color: #f4f4f4;
  17. transition: transform 0.4s ease;
  18. pointer-events: auto;
  19. }
  20. [role="dialog"][data-type="edit"] [role="region"] > header:first-child h1 {
  21. color: #868692;
  22. }
  23. [role="dialog"][data-type="edit"] [role="region"] > header:first-child menu[type="toolbar"] button {
  24. color: #00aac5;
  25. }
  26. [role="dialog"][data-type="edit"] [role="region"] > header:first-child .icon.icon-close {
  27. background-image: url(headers/images/icons/organic/close.svg);
  28. }
  29. /* Menu */
  30. [role="dialog"][data-type="edit"] > menu {
  31. white-space: nowrap;
  32. margin: 0;
  33. padding: 1.5rem;
  34. border-top: solid 0.1rem rgba(189,189,189,0.2);
  35. background: #fff;
  36. display: block;
  37. overflow: hidden;
  38. position: absolute;
  39. left: 0;
  40. right: 0;
  41. bottom: 0;
  42. display: flex;
  43. transition: transform 0.4s ease;
  44. pointer-events: auto;
  45. }
  46. [role="dialog"][data-type="edit"] > menu button {
  47. font-family: sans-serif;
  48. font-style: italic;
  49. height: 4rem;
  50. margin: 0 0 0 1rem;
  51. padding: 0 1.2rem;
  52. -moz-box-sizing: border-box;
  53. display: block;
  54. text-overflow: ellipsis;
  55. white-space: nowrap;
  56. overflow: hidden;
  57. background: #e7e7e7;
  58. border: none;
  59. border-radius: 2rem;
  60. font-weight: normal;
  61. font-size: 1.6rem;
  62. line-height: 4rem;
  63. color: #333;
  64. text-align: center;
  65. text-decoration: none;
  66. outline: none;
  67. flex: 1;
  68. }
  69. /* Press (default & recommend) */
  70. [role="dialog"][data-type="edit"] > menu button:not(:disabled):active {
  71. background: #b2f2ff;
  72. color: #fff;
  73. }
  74. /* Recommend */
  75. [role="dialog"][data-type="edit"] > menu button.recommend {
  76. background-color: #00caf2;
  77. color: #fff;
  78. }
  79. /* Danger */
  80. [role="dialog"][data-type="edit"] > menu button.danger {
  81. background-color: #e51e1e;
  82. color: #fff;
  83. }
  84. /* Danger Press */
  85. [role="dialog"][data-type="edit"] > menu button.danger:active {
  86. background-color: #b2f2ff;
  87. }
  88. /* Disabled */
  89. /* Using pointer-events: none, makes events go through the button. As edit mode is an overlay is quite possible we have active buttons underneath */
  90. [role="dialog"][data-type="edit"] button[disabled] {
  91. pointer-events: auto;
  92. }
  93. [role="dialog"][data-type="edit"] > menu button[disabled] {
  94. opacity: 0.6;
  95. color: rgba(51,51,51,0.5);
  96. }
  97. [role="dialog"][data-type="edit"] button[disabled]::-moz-selection {
  98. -moz-user-select: none;
  99. }
  100. /* Danger disabled */
  101. [role="dialog"][data-type="edit"] > menu button[disabled].danger {
  102. background-color: #e51e1e;
  103. color: #fff;
  104. }
  105. [role="dialog"][data-type="edit"] > menu button:first-child {
  106. margin-left: 0;
  107. }