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 0px 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: .5em;
  46. }
  47. /**
  48. * Animations.
  49. */
  50. .quickedit-animate-invisible {
  51. opacity: 0;
  52. }
  53. .quickedit-animate-default {
  54. -webkit-transition: all .4s ease;
  55. transition: all .4s ease;
  56. }
  57. .quickedit-animate-slow {
  58. -webkit-transition: all .6s ease;
  59. transition: all .6s ease;
  60. }
  61. .quickedit-animate-delay-veryfast {
  62. -webkit-transition-delay: .05s;
  63. transition-delay: .05s;
  64. }
  65. .quickedit-animate-delay-fast {
  66. -webkit-transition-delay: .2s;
  67. transition-delay: .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 .2s ease;
  75. transition: opacity .2s ease;
  76. }
  77. /**
  78. * In-place editors that don't use a popup.
  79. */
  80. .quickedit-validation-errors .messages.error {
  81. box-shadow: 0 0 1px 1px red, 0 0 3px 3px rgba(153, 153, 153, .5);
  82. background-color: white;
  83. }
  84. /**
  85. * Styling specific to the 'form' in-place editor.
  86. */
  87. .quickedit-form {
  88. box-shadow: 0 0 30px 4px #4f4f4f;
  89. background-color: white;
  90. }
  91. /**
  92. * Toolbars.
  93. */
  94. .quickedit-toolbar-container {
  95. font-family: 'Source Sans Pro','Lucida Grande', sans-serif;
  96. padding-bottom: 7px;
  97. padding-top: 7px;
  98. -webkit-transition: all 1s;
  99. transition: all 1s;
  100. }
  101. .quickedit-toolbar-container > .quickedit-toolbar-content {
  102. background-image: -webkit-linear-gradient(top, #fff, #e4e4e4);
  103. background-image: linear-gradient(to bottom, #fff, #e4e4e4);
  104. box-sizing: border-box;
  105. color: black;
  106. padding: 0.1667em;
  107. position: relative;
  108. -webkit-user-select: none;
  109. -moz-user-select: none;
  110. -ms-user-select: none;
  111. user-select: none;
  112. z-index: 2;
  113. }
  114. .quickedit-toolbar-container > .quickedit-toolbar-pointer {
  115. background-color: #e4e4e4;
  116. bottom: 2px;
  117. box-shadow: 0 0 0 1px #818181, 0px 0px 0 4px rgba(150, 150, 150, 0.5);
  118. display: block;
  119. height: 16px;
  120. left: 18px; /* LTR */
  121. position: absolute;
  122. -webkit-transform: rotate(45deg);
  123. -ms-transform: rotate(45deg);
  124. transform: rotate(45deg);
  125. width: 16px;
  126. z-index: 1;
  127. }
  128. [dir="rtl"] .quickedit-toolbar-container > .quickedit-toolbar-pointer {
  129. left: auto;
  130. right: 18px;
  131. }
  132. .quickedit-toolbar-container.quickedit-toolbar-pointer-top > .quickedit-toolbar-pointer {
  133. bottom: auto;
  134. top: 2px;
  135. }
  136. .quickedit-toolbar-container > .quickedit-toolbar-lining {
  137. bottom: 7px;
  138. box-shadow: 0 0 0 1px #818181, 0px 3px 0px 1px rgba(150, 150, 150, 0.5);
  139. display: block;
  140. left: 0;
  141. position: absolute;
  142. right: 0;
  143. top: 7px;
  144. z-index: 0;
  145. }
  146. .quickedit-toolbar-label {
  147. font-style: italic;
  148. overflow: hidden;
  149. padding: 0.333em 0.4em;
  150. text-overflow: ellipsis;
  151. white-space: nowrap;
  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-left: 0;
  185. padding-right: 0;
  186. }
  187. /**
  188. * Buttons.
  189. */
  190. .quickedit-button {
  191. background-color: #e4e4e4;
  192. border: 1px solid #d2d2d2;
  193. color: #5a5a5a;
  194. cursor: pointer;
  195. display: inline-block;
  196. margin: 0;
  197. opacity: 1;
  198. padding: 0.345em;
  199. -webkit-transition: opacity .1s ease;
  200. transition: opacity .1s ease;
  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-left: auto;
  211. margin-right: 0.25em;
  212. }
  213. /* Button with icons. */
  214. .quickedit-button:hover,
  215. .quickedit-button:active {
  216. background-color: #c8c8c8;
  217. border: 1px solid #a0a0a0;
  218. color: #2e2e2e;
  219. }
  220. .quickedit-toolbar-container .quickedit-button.action-cancel {
  221. background-color: transparent;
  222. border: 1px solid transparent;
  223. }
  224. .quickedit-button.action-save {
  225. color: white;
  226. background-color: #50a0e9;
  227. background-image: -webkit-linear-gradient(top, #50a0e9, #4481dc);
  228. background-image: linear-gradient(to bottom, #50a0e9, #4481dc);
  229. border: 1px solid transparent;
  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. background-color: #e4e4e4;
  239. background-image: none;
  240. border-color: #d2d2d2;
  241. color: #5a5a5a;
  242. }