CSS improvements
[odoo/odoo.git] / addons / website / static / src / css / editor.css
1 @charset "utf-8";
2 .oe_hidden {
3   display: none !important;
4 }
5
6 .oe_website_editorbar {
7   position: fixed;
8   top: 0;
9   right: 0;
10   z-index: 10;
11   display: block;
12   width: 100%;
13   padding: 2px;
14   margin: 0px;
15   z-index: 10000;
16   background-color: #414141;
17   background: -webkit-linear-gradient(#646060, #262626);
18   box-sizing: border-box;
19 }
20 .oe_website_editorbar li {
21   display: inline;
22   color: #eeeeee;
23 }
24 .oe_website_editorbar li:hover {
25   background: rgba(0, 0, 0, 0.2);
26   text-shadow: black 0px 0px 3px;
27   color: white;
28 }
29
30 .oe_website_editorbar .oe_rte_toolbar div.dropdown {
31   display: inline-block;
32 }
33 .oe_website_editorbar .oe_rte_toolbar div.dropdown li {
34   display: list-item;
35 }
36 .oe_website_editorbar .oe_rte_toolbar button {
37   font-family: FontAwesome;
38   font-weight: normal;
39   font-style: normal;
40   text-decoration: inherit;
41 }
42 .oe_website_editorbar .oe_rte_toolbar button.oe_button_list {
43   padding-right: 3px;
44 }
45 .oe_website_editorbar .oe_rte_toolbar button.oe_button_list:after {
46   content: "\F0D7";
47   padding-left: 6px;
48 }
49
50 .oe_editable:focus {
51   outline: none !important;
52 }
53
54 .oe_carousel_options {
55   cursor: pointer;
56   position: absolute;
57   white-space: nowrap;
58   z-index: 1;
59   display: none;
60 }
61
62 .oe_snippets {
63   position: fixed;
64   left: 0px;
65   right: 0px;
66   bottom: 0px;
67   max-height: 280px;
68   min-height: 140px;
69   background: #282828;
70   box-shadow: 0px 10px 10px -10px black inset;
71   overflow-y: auto;
72 }
73
74 .oe_snippet {
75   display: inline-block;
76   vertical-align: top;
77   background: white;
78   width: 120px;
79   height: 120px;
80   border-radius: 3px;
81   margin: 10px;
82   margin-right: 0px;
83   cursor: move;
84   position: relative;
85   box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
86   overflow: hidden;
87   -webkit-user-select: none;
88   user-select: none;
89 }
90 .oe_snippet .oe_snippet_thumbnail.oe_label {
91   text-align: center;
92   background: #747474;
93   background-image: radial-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.4));
94   height: 100%;
95   line-height: 120px;
96   color: white;
97   text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.95);
98 }
99 .oe_snippet .oe_snippet_body {
100   display: none;
101 }
102 .oe_snippet > * {
103   pointer-events: none;
104 }
105 .oe_snippet > *:first-child:not(.oe_snippet_thumbnail) {
106   display: block;
107   -webkit-transform-origin-x: 5px;
108   -webkit-transform-origin-y: 10px;
109   -webkit-transform: scale(0.095);
110 }
111
112 .oe_drop_zone {
113   display: block;
114   background: rgba(153, 0, 255, 0.17);
115   border-radius: 3px;
116   height: 32px;
117   margin: -16px 0px;
118   -webkit-transition: margin 250ms linear;
119 }
120 .oe_drop_zone:first-child:not(:last-child) {
121   margin-top: -8px;
122   margin-bottom: -24px;
123 }
124 .oe_drop_zone:last-child:not(:first-child) {
125   margin-top: -24px;
126   margin-bottom: -8px;
127 }
128 .oe_drop_zone.oe_hover {
129   background: rgba(0, 255, 133, 0.22);
130   z-index: 100000;
131 }
132 .oe_drop_zone:before {
133   content: "";
134   display: block;
135   border-top: dashed 2px rgba(209, 178, 255, 0.72);
136   position: relative;
137   top: 16px;
138 }
139 .oe_drop_zone:first-child:not(:last-child):before {
140   top: 8px;
141 }
142 .oe_drop_zone:last-child:not(:first-child):before {
143   top: 24px;
144 }
145 .oe_drop_zone.oe_hover:before {
146   border-top: dashed 2px rgba(116, 255, 161, 0.72);
147 }
148
149 .oe_stop_scrolling {
150   height: 100%;
151   overflow: hidden;
152 }
153
154 #mobile-preview.modal {
155   height: 660px;
156   background-color: black;
157   border: 2px solid;
158   border-radius: 10px;
159   border-color: #1a1a1a;
160   margin: auto;
161   position: absolute;
162   top: 0;
163   left: 0;
164   bottom: 0;
165   right: 0;
166   max-width: 330px;
167 }
168 #mobile-preview.modal .modal-header {
169   background-color: black;
170   border-bottom: 0;
171   border-top-left-radius: 10px;
172   border-top-right-radius: 10px;
173 }
174 #mobile-preview.modal .modal-header .oe_mobile_preview_title {
175   color: #1a1a1a;
176 }
177 #mobile-preview.modal .modal-body {
178   background-color: black;
179   max-height: 600px;
180   padding: 0;
181   margin: 0;
182 }
183 #mobile-preview.modal .modal-footer {
184   background-color: black;
185 }
186
187 .oe_mobile_viewport {
188   width: 320px;
189   height: 568px;
190   padding: 5px;
191   border: none;
192 }
193
194 .oe_mobile_preview_header .close {
195   color: lightgrey;
196   opacity: 1;
197 }
198 .oe_mobile_preview_header .close:hover {
199   color: #e00101;
200   opacity: 1;
201 }