You are here

quickedit.theme.css in Quick Edit 7

Styling for Quick Edit module.

File

css/quickedit.theme.css
View source
  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: -moz-linear-gradient(top, #fff, #e4e4e4);
  104. background-image: -o-linear-gradient(top, #fff, #e4e4e4);
  105. background-image: linear-gradient(to bottom, #fff, #e4e4e4);
  106. -moz-box-sizing: border-box;
  107. -webkit-box-sizing: border-box;
  108. box-sizing: border-box;
  109. color: black;
  110. padding: 0.1667em;
  111. position: relative;
  112. -webkit-user-select: none;
  113. -moz-user-select: none;
  114. -ms-user-select: none;
  115. user-select: none;
  116. z-index: 2;
  117. }
  118. .quickedit-toolbar-container > .quickedit-toolbar-pointer {
  119. background-color: #e4e4e4;
  120. bottom: 2px;
  121. box-shadow: 0 0 0 1px #818181, 0px 0px 0 4px rgba(150, 150, 150, 0.5);
  122. display: block;
  123. height: 16px;
  124. left: 18px; /* LTR */
  125. position: absolute;
  126. -moz-transform: rotate(45deg);
  127. -webkit-transform: rotate(45deg);
  128. transform: rotate(45deg);
  129. width: 16px;
  130. z-index: 1;
  131. }
  132. [dir="rtl"] .quickedit-toolbar-container > .quickedit-toolbar-pointer {
  133. left: auto;
  134. right: 18px;
  135. }
  136. .quickedit-toolbar-container.quickedit-toolbar-pointer-top > .quickedit-toolbar-pointer {
  137. bottom: auto;
  138. top: 2px;
  139. }
  140. .quickedit-toolbar-container > .quickedit-toolbar-lining {
  141. bottom: 7px;
  142. box-shadow: 0 0 0 1px #818181, 0px 3px 0px 1px rgba(150, 150, 150, 0.5);
  143. display: block;
  144. left: 0;
  145. position: absolute;
  146. right: 0;
  147. top: 7px;
  148. z-index: 0;
  149. }
  150. .quickedit-toolbar-label {
  151. font-style: italic;
  152. overflow: hidden;
  153. padding: 0.333em 0.4em;
  154. text-overflow: ellipsis;
  155. white-space: nowrap;
  156. }
  157. .quickedit-toolbar-label .field:after {
  158. content: ' → '; /* LTR */
  159. }
  160. [dir="rtl"] .quickedit-toolbar-label .field:after {
  161. content: ' ← ';
  162. }
  163. /* The toolbar; these are not necessarily visible. */
  164. .quickedit-toolbar {
  165. font-family: 'Droid sans', 'Lucida Grande', sans-serif;
  166. }
  167. .quickedit-toolbar-entity {
  168. padding: 0.1667em 0.2em;
  169. }
  170. /**
  171. * Info toolgroup.
  172. */
  173. .quickedit-toolbar-fullwidth {
  174. width: 100%;
  175. }
  176. .quickedit-toolgroup.wysiwyg-floated {
  177. float: right; /* LTR */
  178. }
  179. [dir="rtl"] .quickedit-toolgroup.wysiwyg-floated {
  180. float: left;
  181. }
  182. .quickedit-toolgroup.wysiwyg-main {
  183. clear: both;
  184. width: 100%;
  185. padding-left: 0; /* LTR */
  186. }
  187. [dir="rtl"] .quickedit-toolgroup.wysiwyg-main {
  188. padding-left: 0;
  189. padding-right: 0;
  190. }
  191. /**
  192. * Buttons.
  193. */
  194. .quickedit-button {
  195. background-color: #e4e4e4;
  196. border: 1px solid #d2d2d2;
  197. color: #5a5a5a;
  198. cursor: pointer;
  199. display: inline-block;
  200. margin: 0;
  201. opacity: 1;
  202. padding: 0.345em;
  203. -webkit-transition: opacity .1s ease;
  204. transition: opacity .1s ease;
  205. }
  206. .quickedit-button[aria-hidden="true"] {
  207. visibility: hidden;
  208. opacity: 0;
  209. }
  210. .quickedit-button + .quickedit-button {
  211. margin-left: 0.2em; /* LTR */
  212. }
  213. [dir="rtl"] .quickedit-button + .quickedit-button {
  214. margin-left: auto;
  215. margin-right: 0.25em;
  216. }
  217. /* Button with icons. */
  218. .quickedit-button:hover,
  219. .quickedit-button:active {
  220. background-color: #c8c8c8;
  221. border: 1px solid #a0a0a0;
  222. color: #2e2e2e;
  223. }
  224. .quickedit-toolbar-container .quickedit-button.action-cancel {
  225. background-color: transparent;
  226. border: 1px solid transparent;
  227. }
  228. .quickedit-button.action-save {
  229. color: white;
  230. background-color: #50a0e9;
  231. background-image: -webkit-linear-gradient(top, #50a0e9, #4481dc);
  232. background-image: -moz-linear-gradient(top, #50a0e9, #4481dc);
  233. background-image: -o-linear-gradient(top, #50a0e9, #4481dc);
  234. background-image: linear-gradient(to bottom, #50a0e9, #4481dc);
  235. border: 1px solid transparent;
  236. }
  237. .quickedit-button.action-save:hover,
  238. .quickedit-button.action-save:active {
  239. border: 1px solid #a0a0a0;
  240. }
  241. .quickedit-button.action-saving,
  242. .quickedit-button.action-saving:hover,
  243. .quickedit-button.action-saving:active {
  244. background-color: #e4e4e4;
  245. background-image: none;
  246. border-color: #d2d2d2;
  247. color: #5a5a5a;
  248. }
  249. /**
  250. * Modal.
  251. */
  252. #quickedit_modal {
  253. background-color: white;
  254. border: 1px solid #0199ff;
  255. box-shadow: 3px 3px 5px #333;
  256. font-family: 'Droid sans', 'Lucida Grande', sans-serif;
  257. }
  258. #quickedit_modal .main {
  259. font-size: 130%;
  260. margin: 25px;
  261. padding-left: 40px; /* LTR */
  262. background: transparent url('../images/attention.png') no-repeat;
  263. }
  264. [dir="rtl"] #quickedit_modal .main {
  265. padding-left: 0;
  266. padding-right: 40px;
  267. }
  268. #quickedit_modal .actions {
  269. border-top: 1px solid #ddd;
  270. padding: 0.25em 0.2em;
  271. text-align: right; /* LTR */
  272. background: #f5f5f5;
  273. }
  274. [dir="rtl"] #quickedit_modal .actions {
  275. text-align: left;
  276. }