You are here

admin.css in Gutenberg 8

Same filename in this branch
  1. 8 css/admin.css
  2. 8 modules/editorskit/admin.css
Same filename and directory in other branches
  1. 8.2 css/admin.css
/**
 * Don't edit this file. Find all style at ./sass folder.
 **/
#media-browser-modal {
  padding: 0;
  overflow: hidden !important;
}

.ui-dialog .form-actions .selected-summary {
  float: left;
  width: 50%;
}

.ui-dialog .form-actions .buttons {
  display: flex;
  justify-content: flex-end;
}

.ui-dialog .form-actions .buttons > * {
  margin: 0 5px;
}

.media-browser {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.media-browser .content {
  overflow: hidden;
  height: 100%;
}

.media-browser .content .toolbar {
  padding: 5px 10px;
}

.media-browser .content .list {
  position: absolute;
  left: 0;
  right: 320px;
  top: 50px;
  bottom: 0;
  overflow: auto;
}

.media-browser .content .media-details {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  overflow: auto;
  padding: 10px;
  background-color: #f0f0f0;
}

.media-browser .content .media-details figure {
  padding: 0;
  margin: 0;
}

.media-browser .content .media-details figure figcaption {
  overflow-wrap: break-word;
}

.media-browser .content .media-details figure video {
  width: 100%;
}

.media-browser ul.list {
  padding: 2px;
  margin: 0;
  list-style: none;
}

.media-browser li.attachment {
  width: 16.6%;
  padding: 8px;
  margin: 0;
  position: relative;
  list-style: none;
  float: left;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.media-browser li.attachment img {
  max-height: none;
  max-width: none;
}

.media-browser li.attachment .landscape img {
  max-height: 100%;
}

.media-browser li.attachment .portrait img {
  max-width: 100%;
}

.media-browser li.attachment .thumbnail {
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 1;
  transition: opacity 0.1s;
}

.media-browser li.attachment .thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
}

.media-browser li.attachment .thumbnail .centered {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate(50%, 50%);
}

.media-browser li.attachment .thumbnail .centered img {
  transform: translate(-50%, -50%);
}

.media-browser li.attachment .thumbnail:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.media-browser li.attachment .thumbnail .filename {
  position: absolute;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-top: solid 1px #eee;
}

.media-browser li.attachment .check {
  display: none;
  height: 24px;
  width: 24px;
  padding: 0;
  border: 0;
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  outline: 0;
  cursor: pointer;
  background-color: #0073aa;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px #0073aa;
}

.media-browser li.attachment .check .media-modal-icon {
  display: block;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="white" d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg>');
  height: 15px;
  width: 15px;
  margin: 5px;
}

.media-browser li.attachment .check:hover .media-modal-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="white" d="M0 10h24v4h-24z"/></svg>');
}

.media-browser li.attachment.details {
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #0073aa;
}

.media-browser li.attachment.selected .check {
  display: block;
}

.media-browser li.attachment:focus {
  outline: none;
}

.media-browser .attachment-preview {
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #eee;
  cursor: pointer;
  background-position: top center;
  background-repeat: no-repeat;
}

.media-browser .attachment-preview.type-application {
  background-image: url(../images/application.png);
}

.media-browser .attachment-preview.type-audio {
  background-image: url(../images/audio.png);
}

.media-browser .attachment-preview.type-video {
  background-image: url(../images/video.png);
}

.media-browser .attachment-preview:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.media-browser .media-modal-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="white" d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg>');
  background-repeat: no-repeat;
}

.media-browser .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

#media-entity-browser-modal {
  padding: 0;
}

#media-entity-browser-modal > div {
  height: 100%;
}

#media-entity-browser-modal .media-library-wrapper {
  height: 100%;
  margin: 0;
}

#media-entity-browser-modal .media-library-select.form-submit {
  display: none;
}

#views-form-reusable-blocks-page-1 {
  display: flex;
  flex-wrap: wrap;
}

#views-form-reusable-blocks-page-1 #edit-header {
  flex-basis: 100%;
}

#views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

#views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-item {
  margin: 0 10px;
}

#views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-item:first-child {
  margin-left: 0;
}

#views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-actions {
  padding: 0;
  margin: 0;
}

#views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-actions .button {
  margin: 0;
}

#views-form-reusable-blocks-page-1 #edit-actions {
  flex-basis: 100%;
}

#views-form-reusable-blocks-page-1 .form-actions {
  margin: 0.75em 0;
  align-self: flex-end;
}

#views-form-reusable-blocks-page-1 .views-row {
  cursor: pointer;
  width: 360px;
  max-height: 360px;
  overflow: hidden;
  position: relative;
  border: 1px solid #dbdbdb;
  background: #fff;
  margin: 16px 16px 2px 2px;
  transition: border-color 0.2s, color 0.2s;
}

#views-form-reusable-blocks-page-1 .views-row:hover {
  margin: 14px 14px 0 0;
  border: solid 3px #40b6ff;
}

#views-form-reusable-blocks-page-1 .views-row .views-field-info {
  padding: 0 10px;
  border-bottom: 1px solid #dbdbdb;
}

#views-form-reusable-blocks-page-1 .views-row .views-field.views-field-body {
  transform: scale(0.5);
  transform-origin: top left;
  width: 720px;
  max-height: 180px;
}

#views-form-reusable-blocks-page-1 .views-row .views-field-block-content-bulk-form .field-content {
  position: absolute;
  top: 0;
  right: 10px;
}

#edit-allowed-blocks-details .details-wrapper {
  display: flex;
  flex-direction: row;
}

#edit-allowed-blocks-details .details-wrapper fieldset {
  flex: 1;
  margin-right: 10px;
}

#edit-allowed-blocks-details .details-wrapper fieldset:last-child {
  margin-right: 0;
}

#edit-allowed-drupal-blocks-details .details-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#edit-allowed-drupal-blocks-details .details-wrapper fieldset {
  margin-right: 10px;
}

#edit-allowed-drupal-blocks-details .details-wrapper fieldset:last-child {
  margin-right: 0;
}

.ajax-progress-throbber .throbber {
  padding: 1px 7px 2px !important;
}

/*# sourceMappingURL=admin.css.map */

File

css/admin.css
View source
  1. /**
  2. * Don't edit this file. Find all style at ./sass folder.
  3. **/
  4. #media-browser-modal {
  5. padding: 0;
  6. overflow: hidden !important;
  7. }
  8. .ui-dialog .form-actions .selected-summary {
  9. float: left;
  10. width: 50%;
  11. }
  12. .ui-dialog .form-actions .buttons {
  13. display: flex;
  14. justify-content: flex-end;
  15. }
  16. .ui-dialog .form-actions .buttons > * {
  17. margin: 0 5px;
  18. }
  19. .media-browser {
  20. height: 100%;
  21. position: relative;
  22. overflow: hidden;
  23. }
  24. .media-browser .content {
  25. overflow: hidden;
  26. height: 100%;
  27. }
  28. .media-browser .content .toolbar {
  29. padding: 5px 10px;
  30. }
  31. .media-browser .content .list {
  32. position: absolute;
  33. left: 0;
  34. right: 320px;
  35. top: 50px;
  36. bottom: 0;
  37. overflow: auto;
  38. }
  39. .media-browser .content .media-details {
  40. position: absolute;
  41. right: 0;
  42. top: 0;
  43. bottom: 0;
  44. width: 300px;
  45. overflow: auto;
  46. padding: 10px;
  47. background-color: #f0f0f0;
  48. }
  49. .media-browser .content .media-details figure {
  50. padding: 0;
  51. margin: 0;
  52. }
  53. .media-browser .content .media-details figure figcaption {
  54. overflow-wrap: break-word;
  55. }
  56. .media-browser .content .media-details figure video {
  57. width: 100%;
  58. }
  59. .media-browser ul.list {
  60. padding: 2px;
  61. margin: 0;
  62. list-style: none;
  63. }
  64. .media-browser li.attachment {
  65. width: 16.6%;
  66. padding: 8px;
  67. margin: 0;
  68. position: relative;
  69. list-style: none;
  70. float: left;
  71. box-sizing: border-box;
  72. -webkit-user-select: none;
  73. -moz-user-select: none;
  74. -ms-user-select: none;
  75. user-select: none;
  76. }
  77. .media-browser li.attachment img {
  78. max-height: none;
  79. max-width: none;
  80. }
  81. .media-browser li.attachment .landscape img {
  82. max-height: 100%;
  83. }
  84. .media-browser li.attachment .portrait img {
  85. max-width: 100%;
  86. }
  87. .media-browser li.attachment .thumbnail {
  88. overflow: hidden;
  89. position: absolute;
  90. top: 0;
  91. right: 0;
  92. bottom: 0;
  93. left: 0;
  94. opacity: 1;
  95. transition: opacity 0.1s;
  96. }
  97. .media-browser li.attachment .thumbnail img {
  98. position: absolute;
  99. top: 0;
  100. left: 0;
  101. }
  102. .media-browser li.attachment .thumbnail .centered {
  103. position: absolute;
  104. top: 0;
  105. left: 0;
  106. width: 100%;
  107. height: 100%;
  108. transform: translate(50%, 50%);
  109. }
  110. .media-browser li.attachment .thumbnail .centered img {
  111. transform: translate(-50%, -50%);
  112. }
  113. .media-browser li.attachment .thumbnail:after {
  114. content: "";
  115. display: block;
  116. position: absolute;
  117. top: 0;
  118. left: 0;
  119. right: 0;
  120. bottom: 0;
  121. box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  122. overflow: hidden;
  123. }
  124. .media-browser li.attachment .thumbnail .filename {
  125. position: absolute;
  126. bottom: 0;
  127. background-color: rgba(255, 255, 255, 0.8);
  128. padding: 5px;
  129. border-top: solid 1px #eee;
  130. }
  131. .media-browser li.attachment .check {
  132. display: none;
  133. height: 24px;
  134. width: 24px;
  135. padding: 0;
  136. border: 0;
  137. position: absolute;
  138. z-index: 10;
  139. top: 0;
  140. right: 0;
  141. outline: 0;
  142. cursor: pointer;
  143. background-color: #0073aa;
  144. box-shadow: 0 0 0 1px #fff, 0 0 0 2px #0073aa;
  145. }
  146. .media-browser li.attachment .check .media-modal-icon {
  147. display: block;
  148. background-image: url('data:image/svg+xml;utf8,');
  149. height: 15px;
  150. width: 15px;
  151. margin: 5px;
  152. }
  153. .media-browser li.attachment .check:hover .media-modal-icon {
  154. background-image: url('data:image/svg+xml;utf8,');
  155. }
  156. .media-browser li.attachment.details {
  157. box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #0073aa;
  158. }
  159. .media-browser li.attachment.selected .check {
  160. display: block;
  161. }
  162. .media-browser li.attachment:focus {
  163. outline: none;
  164. }
  165. .media-browser .attachment-preview {
  166. position: relative;
  167. box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  168. background: #eee;
  169. cursor: pointer;
  170. background-position: top center;
  171. background-repeat: no-repeat;
  172. }
  173. .media-browser .attachment-preview.type-application {
  174. background-image: url(../images/application.png);
  175. }
  176. .media-browser .attachment-preview.type-audio {
  177. background-image: url(../images/audio.png);
  178. }
  179. .media-browser .attachment-preview.type-video {
  180. background-image: url(../images/video.png);
  181. }
  182. .media-browser .attachment-preview:before {
  183. content: "";
  184. display: block;
  185. padding-top: 100%;
  186. }
  187. .media-browser .media-modal-icon {
  188. background-image: url('data:image/svg+xml;utf8,');
  189. background-repeat: no-repeat;
  190. }
  191. .media-browser .screen-reader-text {
  192. border: 0;
  193. clip: rect(1px, 1px, 1px, 1px);
  194. -webkit-clip-path: inset(50%);
  195. clip-path: inset(50%);
  196. height: 1px;
  197. margin: -1px;
  198. overflow: hidden;
  199. padding: 0;
  200. position: absolute;
  201. width: 1px;
  202. word-wrap: normal !important;
  203. }
  204. #media-entity-browser-modal {
  205. padding: 0;
  206. }
  207. #media-entity-browser-modal > div {
  208. height: 100%;
  209. }
  210. #media-entity-browser-modal .media-library-wrapper {
  211. height: 100%;
  212. margin: 0;
  213. }
  214. #media-entity-browser-modal .media-library-select.form-submit {
  215. display: none;
  216. }
  217. #views-form-reusable-blocks-page-1 {
  218. display: flex;
  219. flex-wrap: wrap;
  220. }
  221. #views-form-reusable-blocks-page-1 #edit-header {
  222. flex-basis: 100%;
  223. }
  224. #views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 {
  225. display: flex;
  226. flex-wrap: wrap;
  227. align-items: baseline;
  228. }
  229. #views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-item {
  230. margin: 0 10px;
  231. }
  232. #views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-item:first-child {
  233. margin-left: 0;
  234. }
  235. #views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-actions {
  236. padding: 0;
  237. margin: 0;
  238. }
  239. #views-form-reusable-blocks-page-1 #edit-block-content-bulk-form--2 .form-actions .button {
  240. margin: 0;
  241. }
  242. #views-form-reusable-blocks-page-1 #edit-actions {
  243. flex-basis: 100%;
  244. }
  245. #views-form-reusable-blocks-page-1 .form-actions {
  246. margin: 0.75em 0;
  247. align-self: flex-end;
  248. }
  249. #views-form-reusable-blocks-page-1 .views-row {
  250. cursor: pointer;
  251. width: 360px;
  252. max-height: 360px;
  253. overflow: hidden;
  254. position: relative;
  255. border: 1px solid #dbdbdb;
  256. background: #fff;
  257. margin: 16px 16px 2px 2px;
  258. transition: border-color 0.2s, color 0.2s;
  259. }
  260. #views-form-reusable-blocks-page-1 .views-row:hover {
  261. margin: 14px 14px 0 0;
  262. border: solid 3px #40b6ff;
  263. }
  264. #views-form-reusable-blocks-page-1 .views-row .views-field-info {
  265. padding: 0 10px;
  266. border-bottom: 1px solid #dbdbdb;
  267. }
  268. #views-form-reusable-blocks-page-1 .views-row .views-field.views-field-body {
  269. transform: scale(0.5);
  270. transform-origin: top left;
  271. width: 720px;
  272. max-height: 180px;
  273. }
  274. #views-form-reusable-blocks-page-1 .views-row .views-field-block-content-bulk-form .field-content {
  275. position: absolute;
  276. top: 0;
  277. right: 10px;
  278. }
  279. #edit-allowed-blocks-details .details-wrapper {
  280. display: flex;
  281. flex-direction: row;
  282. }
  283. #edit-allowed-blocks-details .details-wrapper fieldset {
  284. flex: 1;
  285. margin-right: 10px;
  286. }
  287. #edit-allowed-blocks-details .details-wrapper fieldset:last-child {
  288. margin-right: 0;
  289. }
  290. #edit-allowed-drupal-blocks-details .details-wrapper {
  291. display: flex;
  292. flex-direction: row;
  293. flex-wrap: wrap;
  294. }
  295. #edit-allowed-drupal-blocks-details .details-wrapper fieldset {
  296. margin-right: 10px;
  297. }
  298. #edit-allowed-drupal-blocks-details .details-wrapper fieldset:last-child {
  299. margin-right: 0;
  300. }
  301. .ajax-progress-throbber .throbber {
  302. padding: 1px 7px 2px !important;
  303. }
  304. /*# sourceMappingURL=admin.css.map */