cb0c7f9c808554b97371631ec6f5f38ed3b2de79
[yaffs-website] / web / core / modules / image / css / editors / image.theme.css
1 /**
2  * @file
3  * Theme styles for the Image module's in-place editor.
4  */
5
6 .quickedit-image-dropzone {
7   background: rgba(116, 183, 255, 0.8);
8   transition: background .2s;
9 }
10
11 .quickedit-image-icon {
12   margin: 0 0 10px 0;
13   transition: margin .5s;
14 }
15
16 .quickedit-image-dropzone.hover {
17   background: rgba(116, 183, 255, 0.9);
18 }
19
20 .quickedit-image-dropzone.error {
21   background: rgba(255, 52, 27, 0.81);
22 }
23
24 .quickedit-image-dropzone.upload .quickedit-image-icon {
25   background-image: url('../../images/upload.svg');
26 }
27
28 .quickedit-image-dropzone.error .quickedit-image-icon {
29   background-image: url('../../images/error.svg');
30 }
31
32 .quickedit-image-dropzone.loading .quickedit-image-icon {
33   margin: -10px 0 20px 0;
34 }
35
36 .quickedit-image-dropzone.loading .quickedit-image-icon::after {
37   display: block;
38   content: "";
39   margin-left: -10px;
40   margin-top: -5px;
41   animation-duration: 2s;
42   animation-name: quickedit-image-spin;
43   animation-iteration-count: infinite;
44   animation-timing-function: linear;
45   width: 60px;
46   height: 60px;
47   border-style: solid;
48   border-radius: 35px;
49   border-width: 5px;
50   border-color: white transparent transparent transparent;
51 }
52
53 @keyframes quickedit-image-spin {
54   0% {transform: rotate(0deg);}
55   50% {transform: rotate(180deg);}
56   100% {transform: rotate(360deg);}
57 }
58
59 .quickedit-image-text {
60   text-align: center;
61   color: white;
62   font-family: "Droid sans", "Lucida Grande", sans-serif;
63   font-size: 16px;
64   user-select: none;
65   -webkit-user-select: none;
66   -moz-user-select: none;
67   -ms-user-select: none;
68 }
69
70 .quickedit-image-field-info {
71   background: rgba(0, 0, 0, 0.05);
72   border-top: 1px solid #c5c5c5;
73   padding: 5px;
74 }
75
76 .quickedit-image-field-info div {
77   margin-right: 10px; /* LTR */
78 }
79
80 .quickedit-image-field-info div:last-child {
81   margin-right: 0; /* LTR */
82 }
83
84 [dir="rtl"] .quickedit-image-field-info div {
85   margin-left: 10px;
86   margin-right: 0;
87 }
88
89 [dir="rtl"] .quickedit-image-field-info div:last-child {
90   margin-left: 0;
91 }
92
93 .quickedit-image-errors .messages__wrapper {
94   margin: 0;
95   padding: 0;
96 }
97
98 .quickedit-image-errors .messages--error {
99   box-shadow: none;
100 }