quickedit.theme.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /**
  2. * @file
  3. * Styling for Quick Edit module.
  4. */
  5. /**
  6. * Editable.
  7. */
  8. .quickedit-field.quickedit-editable,
  9. .quickedit-field .quickedit-editable {
  10. box-shadow: 0 0 0 2px #74b7ff;
  11. }
  12. /**
  13. * Highlighted (hovered) editable.
  14. */
  15. .quickedit-field.quickedit-highlighted,
  16. .quickedit-form.quickedit-highlighted,
  17. .quickedit-field .quickedit-highlighted {
  18. box-shadow: 0 0 0 1px #74b7ff, 0 0 0 2px #007fff;
  19. }
  20. .quickedit-field.quickedit-changed,
  21. .quickedit-form.quickedit-changed,
  22. .quickedit-field .quickedit-changed {
  23. box-shadow: 0 0 0 1px #fec17e, 0 0 0 2px #f7870a;
  24. }
  25. .quickedit-editing.quickedit-validation-error,
  26. .quickedit-form.quickedit-validation-error {
  27. box-shadow: 0 0 0 1px #ee8b74, 0 0 0 2px #fa2209;
  28. }
  29. .quickedit-editing.quickedit-editor-is-popup {
  30. box-shadow: none;
  31. }
  32. .quickedit-form .form-item .error {
  33. border: 1px solid #eea0a0;
  34. }
  35. /**
  36. * Default form styling overrides.
  37. */
  38. .quickedit-form form {
  39. padding: 0.5em;
  40. }
  41. .quickedit-form .form-item {
  42. margin: 0;
  43. }
  44. .quickedit-form .form-wrapper {
  45. margin: 0.5em;
  46. }
  47. /**
  48. * Animations.
  49. */
  50. .quickedit-animate-invisible {
  51. opacity: 0;
  52. }
  53. .quickedit-animate-default {
  54. -webkit-transition: all 0.4s ease;
  55. transition: all 0.4s ease;
  56. }
  57. .quickedit-animate-slow {
  58. -webkit-transition: all 0.6s ease;
  59. transition: all 0.6s ease;
  60. }
  61. .quickedit-animate-delay-veryfast {
  62. -webkit-transition-delay: 0.05s;
  63. transition-delay: 0.05s;
  64. }
  65. .quickedit-animate-delay-fast {
  66. -webkit-transition-delay: 0.2s;
  67. transition-delay: 0.2s;
  68. }
  69. .quickedit-animate-disable-width {
  70. -webkit-transition: width 0s;
  71. transition: width 0s;
  72. }
  73. .quickedit-animate-only-visibility {
  74. -webkit-transition: opacity 0.2s ease;
  75. transition: opacity 0.2s ease;
  76. }
  77. /**
  78. * In-place editors that don't use a popup.
  79. */
  80. .quickedit-validation-errors .messages.error {
  81. background-color: white;
  82. box-shadow: 0 0 1px 1px red, 0 0 3px 3px rgba(153, 153, 153, 0.5);
  83. }
  84. /**
  85. * Styling specific to the 'form' in-place editor.
  86. */
  87. .quickedit-form {
  88. background-color: white;
  89. box-shadow: 0 0 30px 4px #4f4f4f;
  90. }
  91. /**
  92. * Toolbars.
  93. */
  94. .quickedit-toolbar-container {
  95. padding-top: 7px;
  96. padding-bottom: 7px;
  97. -webkit-transition: all 1s;
  98. transition: all 1s;
  99. font-family: "Source Sans Pro", "Lucida Grande", sans-serif;
  100. }
  101. .quickedit-toolbar-container > .quickedit-toolbar-content {
  102. position: relative;
  103. z-index: 2;
  104. box-sizing: border-box;
  105. padding: 0.1667em;
  106. -webkit-user-select: none;
  107. -moz-user-select: none;
  108. -ms-user-select: none;
  109. user-select: none;
  110. color: black;
  111. background-image: -webkit-linear-gradient(top, #fff, #e4e4e4);
  112. background-image: linear-gradient(to bottom, #fff, #e4e4e4);
  113. }
  114. .quickedit-toolbar-container > .quickedit-toolbar-pointer {
  115. position: absolute;
  116. z-index: 1;
  117. bottom: 2px;
  118. left: 18px; /* LTR */
  119. display: block;
  120. width: 16px;
  121. height: 16px;
  122. -webkit-transform: rotate(45deg);
  123. -ms-transform: rotate(45deg);
  124. transform: rotate(45deg);
  125. background-color: #e4e4e4;
  126. box-shadow: 0 0 0 1px #818181, 0 0 0 4px rgba(150, 150, 150, 0.5);
  127. }
  128. [dir="rtl"] .quickedit-toolbar-container > .quickedit-toolbar-pointer {
  129. right: 18px;
  130. left: auto;
  131. }
  132. .quickedit-toolbar-container.quickedit-toolbar-pointer-top > .quickedit-toolbar-pointer {
  133. top: 2px;
  134. bottom: auto;
  135. }
  136. .quickedit-toolbar-container > .quickedit-toolbar-lining {
  137. position: absolute;
  138. z-index: 0;
  139. top: 7px;
  140. right: 0;
  141. bottom: 7px;
  142. left: 0;
  143. display: block;
  144. box-shadow: 0 0 0 1px #818181, 0 3px 0 1px rgba(150, 150, 150, 0.5);
  145. }
  146. .quickedit-toolbar-label {
  147. overflow: hidden;
  148. padding: 0.333em 0.4em;
  149. white-space: nowrap;
  150. text-overflow: ellipsis;
  151. font-style: italic;
  152. }
  153. .quickedit-toolbar-label .field:after {
  154. content: " → "; /* LTR */
  155. }
  156. [dir="rtl"] .quickedit-toolbar-label .field:after {
  157. content: " ← ";
  158. }
  159. /* The toolbar; these are not necessarily visible. */
  160. .quickedit-toolbar {
  161. font-family: "Droid sans", "Lucida Grande", sans-serif;
  162. }
  163. .quickedit-toolbar-entity {
  164. padding: 0.1667em 0.2em;
  165. }
  166. /**
  167. * Info toolgroup.
  168. */
  169. .quickedit-toolbar-fullwidth {
  170. width: 100%;
  171. }
  172. .quickedit-toolgroup.wysiwyg-floated {
  173. float: right; /* LTR */
  174. }
  175. [dir="rtl"] .quickedit-toolgroup.wysiwyg-floated {
  176. float: left;
  177. }
  178. .quickedit-toolgroup.wysiwyg-main {
  179. clear: both;
  180. width: 100%;
  181. padding-left: 0; /* LTR */
  182. }
  183. [dir="rtl"] .quickedit-toolgroup.wysiwyg-main {
  184. padding-right: 0;
  185. padding-left: 0;
  186. }
  187. /**
  188. * Buttons.
  189. */
  190. .quickedit-button {
  191. display: inline-block;
  192. margin: 0;
  193. padding: 0.345em;
  194. cursor: pointer;
  195. -webkit-transition: opacity 0.1s ease;
  196. transition: opacity 0.1s ease;
  197. opacity: 1;
  198. color: #5a5a5a;
  199. border: 1px solid #d2d2d2;
  200. background-color: #e4e4e4;
  201. }
  202. .quickedit-button[aria-hidden="true"] {
  203. visibility: hidden;
  204. opacity: 0;
  205. }
  206. .quickedit-button + .quickedit-button {
  207. margin-left: 0.2em; /* LTR */
  208. }
  209. [dir="rtl"] .quickedit-button + .quickedit-button {
  210. margin-right: 0.25em;
  211. margin-left: auto;
  212. }
  213. /* Button with icons. */
  214. .quickedit-button:hover,
  215. .quickedit-button:active {
  216. color: #2e2e2e;
  217. border: 1px solid #a0a0a0;
  218. background-color: #c8c8c8;
  219. }
  220. .quickedit-toolbar-container .quickedit-button.action-cancel {
  221. border: 1px solid transparent;
  222. background-color: transparent;
  223. }
  224. .quickedit-button.action-save {
  225. color: white;
  226. border: 1px solid transparent;
  227. background-color: #50a0e9;
  228. background-image: -webkit-linear-gradient(top, #50a0e9, #4481dc);
  229. background-image: linear-gradient(to bottom, #50a0e9, #4481dc);
  230. }
  231. .quickedit-button.action-save:hover,
  232. .quickedit-button.action-save:active {
  233. border: 1px solid #a0a0a0;
  234. }
  235. .quickedit-button.action-saving,
  236. .quickedit-button.action-saving:hover,
  237. .quickedit-button.action-saving:active {
  238. color: #5a5a5a;
  239. border-color: #d2d2d2;
  240. background-color: #e4e4e4;
  241. background-image: none;
  242. }