view core/modules/image/css/editors/image.theme.css @ 13:5fb285c0d0e3

Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've been lucky to get away with this so far, as we don't support self-registration which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5 was vulnerable to.
author Chris Cannam
date Mon, 23 Apr 2018 09:33:26 +0100
parents 4c8ae668cc8c
children 1fec387a4317
line wrap: on
line source
/**
 * @file
 * Theme styles for the Image module's in-place editor.
 */

.quickedit-image-dropzone {
  background: rgba(116, 183, 255, 0.8);
  transition: background .2s;
}

.quickedit-image-icon {
  margin: 0 0 10px 0;
  transition: margin .5s;
}

.quickedit-image-dropzone.hover {
  background: rgba(116, 183, 255, 0.9);
}

.quickedit-image-dropzone.error {
  background: rgba(255, 52, 27, 0.81);
}

.quickedit-image-dropzone.upload .quickedit-image-icon {
  background-image: url('../../images/upload.svg');
}

.quickedit-image-dropzone.error .quickedit-image-icon {
  background-image: url('../../images/error.svg');
}

.quickedit-image-dropzone.loading .quickedit-image-icon {
  margin: -10px 0 20px 0;
}

.quickedit-image-dropzone.loading .quickedit-image-icon::after {
  display: block;
  content: "";
  margin-left: -10px;
  margin-top: -5px;
  animation-duration: 2s;
  animation-name: quickedit-image-spin;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  width: 60px;
  height: 60px;
  border-style: solid;
  border-radius: 35px;
  border-width: 5px;
  border-color: white transparent transparent transparent;
}

@keyframes quickedit-image-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

.quickedit-image-text {
  text-align: center;
  color: white;
  font-family: "Droid sans", "Lucida Grande", sans-serif;
  font-size: 16px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.quickedit-image-field-info {
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid #c5c5c5;
  padding: 5px;
}

.quickedit-image-field-info div {
  margin-right: 10px; /* LTR */
}

.quickedit-image-field-info div:last-child {
  margin-right: 0; /* LTR */
}

[dir="rtl"] .quickedit-image-field-info div {
  margin-left: 10px;
  margin-right: 0;
}

[dir="rtl"] .quickedit-image-field-info div:last-child {
  margin-left: 0;
}

.quickedit-image-errors .messages__wrapper {
  margin: 0;
  padding: 0;
}

.quickedit-image-errors .messages--error {
  box-shadow: none;
}