editor.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. @charset "UTF-8";
  2. /* ---- CKEditor Minimal Reset ---- {{{ */
  3. .navbar.navbar-inverse .cke_chrome {
  4. border: none;
  5. }
  6. .navbar.navbar-inverse .cke_inner {
  7. background: rgba(0, 0, 0, 0);
  8. }
  9. .navbar.navbar-inverse .cke_toolbar {
  10. position: relative;
  11. top: 1px;
  12. }
  13. .navbar.navbar-inverse .cke_combo_button {
  14. padding-top: 3px;
  15. padding-bottom: 3px;
  16. }
  17. .navbar.navbar-inverse .cke_button {
  18. padding-top: 7px;
  19. padding-bottom: 7px;
  20. }
  21. .navbar.navbar-inverse .cke_top {
  22. background: rgba(0, 0, 0, 0);
  23. border: none;
  24. -moz-box-shadow: none;
  25. -webkit-box-shadow: none;
  26. box-shadow: none;
  27. -ms-filter: "alpha(opacity=50)";
  28. }
  29. #cke_1_top {
  30. padding: 0;
  31. }
  32. #cke_wrapwrap {
  33. -moz-box-shadow: none;
  34. -webkit-box-shadow: none;
  35. box-shadow: none;
  36. }
  37. #cke_wrapwrap .cke_button {
  38. padding-top: 5px;
  39. padding-bottom: 5px;
  40. }
  41. #cke_wrapwrap .cke_combo_button {
  42. padding-top: 1px;
  43. padding-bottom: 1px;
  44. }
  45. /* ---- OpenERP Style ---- {{{ */
  46. .oe_website_editorbar {
  47. position: fixed;
  48. top: 0;
  49. right: 0;
  50. display: block;
  51. width: 100%;
  52. padding: 2px;
  53. margin: 0;
  54. z-index: 20000;
  55. background: #414141, url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzY0NjA2MCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzI2MjYyNiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  56. background: #414141, -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #646060), color-stop(100%, #262626));
  57. background: #414141, -moz-linear-gradient(#646060, #262626);
  58. background: #414141, -webkit-linear-gradient(#646060, #262626);
  59. background: #414141, linear-gradient(#646060, #262626);
  60. -moz-box-sizing: border-box;
  61. -webkit-box-sizing: border-box;
  62. box-sizing: border-box;
  63. }
  64. .oe_website_editorbar li {
  65. display: inline;
  66. color: #eee;
  67. }
  68. .oe_website_editorbar li:hover {
  69. background: rgba(0, 0, 0, 0.2);
  70. text-shadow: black 0px 0px 3px;
  71. color: white;
  72. }
  73. .oe_website_editorbar .oe_rte_toolbar div.dropdown {
  74. display: inline-block;
  75. }
  76. .oe_website_editorbar .oe_rte_toolbar div.dropdown li {
  77. display: list-item;
  78. }
  79. .oe_website_editorbar .oe_rte_toolbar button {
  80. font-family: FontAwesome;
  81. font-weight: normal;
  82. font-style: normal;
  83. text-decoration: inherit;
  84. }
  85. .oe_website_editorbar .oe_rte_toolbar button.oe_button_list {
  86. padding-right: 3px;
  87. }
  88. .oe_website_editorbar .oe_rte_toolbar button.oe_button_list:after {
  89. content: "";
  90. padding-left: 6px;
  91. }
  92. .oe_editable:focus {
  93. outline: none !important;
  94. }
  95. .css_editable_display {
  96. display: block !important;
  97. }
  98. .css_editable_hidden {
  99. display: none !important;
  100. }
  101. .cke_editable .css_editable_mode_hidden {
  102. display: none;
  103. }
  104. .cke_editable .css_editable_mode_display {
  105. display: block !important;
  106. }
  107. .oe_structure.oe_empty:empty, [data-oe-type=html]:empty, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child {
  108. background-image: url("/website/static/src/img/edit_here.png") !important;
  109. }
  110. .oe_structure.oe_empty:empty:before, [data-oe-type=html]:empty:before, .oe_structure.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before {
  111. content: "Press The Top-Left Edit Button" !important;
  112. }
  113. [data-oe-type=html].oe_no_empty:empty:before {
  114. content: "" !important;
  115. }
  116. [data-oe-type=html].oe_no_empty:empty {
  117. background-image: none !important;
  118. height: 16px !important;
  119. }
  120. #website-top-edit {
  121. width: 100%;
  122. }
  123. #website-top-edit > ul > li {
  124. margin: 0;
  125. }
  126. #website-top-navbar {
  127. min-height: 34px;
  128. height: 34px;
  129. }
  130. #website-top-navbar form {
  131. margin: 0;
  132. }
  133. #website-top-navbar form button, #website-top-navbar form a {
  134. padding: 4px 8px 4px 8px;
  135. margin-top: 2px;
  136. font-size: 13px;
  137. }
  138. /* ---- EDITOR BAR ---- {{{ */
  139. table.editorbar-panel {
  140. cursor: pointer;
  141. width: 100%;
  142. }
  143. table.editorbar-panel td {
  144. border: 1px solid #aaa;
  145. }
  146. table.editorbar-panel td.selected {
  147. background-color: #b1c9d9;
  148. }
  149. .link-style .dropdown > .btn {
  150. min-width: 160px;
  151. }
  152. .link-style .link-style {
  153. display: none;
  154. }
  155. .link-style li {
  156. text-align: center;
  157. }
  158. .link-style li label {
  159. width: 100px;
  160. margin: 0 5px;
  161. }
  162. .link-style .col-sm-2 > * {
  163. line-height: 2em;
  164. }
  165. /* ---- TRANSLATIONS ---- {{{ */
  166. .oe_translate_or {
  167. color: white;
  168. padding: 0 0 0 1em;
  169. }
  170. .oe_translate_examples li {
  171. margin: 10px;
  172. padding: 4px;
  173. }
  174. .oe_translatable_text {
  175. outline: 1px solid black;
  176. }
  177. .oe_translatable_field {
  178. outline: 1px dashed black;
  179. }
  180. .oe_translatable_text.oe_dirty, .oe_translatable_field.oe_dirty {
  181. outline-color: red;
  182. }
  183. .oe_translatable_text.oe_dirty:empty {
  184. padding: 0 10px;
  185. }
  186. .oe_translatable_todo {
  187. background: #ffffb6;
  188. }
  189. /* ---- MENU ---- {{{ */
  190. div.oe_menu_buttons {
  191. top: -8px;
  192. right: -8px;
  193. }
  194. ul.oe_menu_editor .fa-home {
  195. display: none;
  196. }
  197. ul.oe_menu_editor > li:first-child > div > span > .fa-home {
  198. display: block;
  199. }
  200. ul.oe_menu_editor .oe_menu_placeholder {
  201. outline: 1px dashed #4183C4;
  202. }
  203. ul.oe_menu_editor ul {
  204. list-style: none;
  205. }
  206. ul.oe_menu_editor li div {
  207. cursor: move;
  208. }
  209. ul.oe_menu_editor .disclose {
  210. cursor: pointer;
  211. width: 10px;
  212. display: none;
  213. }
  214. /* ---- RTE ---- {{{ */
  215. .oe_editable .btn, .btn.oe_editable {
  216. -moz-user-select: auto;
  217. -ms-user-select: auto;
  218. -webkit-user-select: auto;
  219. user-select: auto;
  220. cursor: text !important;
  221. }
  222. .modal-dialog.select-media {
  223. width: 80%;
  224. }
  225. .modal .existing-attachments .pager {
  226. margin: 0;
  227. }
  228. .modal .image-preview {
  229. margin-bottom: 0.5em;
  230. }
  231. .modal-footer {
  232. text-align: left;
  233. }
  234. .modal.nosave .wait {
  235. display: inline-block !important;
  236. visibility: visible !important;
  237. }
  238. .modal.nosave .modal-body .filepicker, .modal.nosave .modal-body .image-preview {
  239. display: none;
  240. }
  241. .modal.nosave .modal-body .wait {
  242. width: 100%;
  243. }
  244. .modal.nosave .modal-footer .save {
  245. display: none;
  246. }
  247. .modal .font-icons-icons {
  248. font-size: 2em;
  249. max-height: 9em;
  250. overflow: auto;
  251. }
  252. .modal .font-icons-icons .font-icons-icon {
  253. display: inline-block;
  254. width: 2em;
  255. padding: 0.25em;
  256. text-align: center;
  257. cursor: pointer;
  258. }
  259. .modal .font-icons {
  260. position: relative;
  261. display: block;
  262. }
  263. .modal .font-icons:before {
  264. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
  265. opacity: 0.7;
  266. position: absolute;
  267. top: 2px;
  268. left: 3px;
  269. font-size: 2em;
  270. }
  271. .modal #icon-search {
  272. padding-left: 2.5em;
  273. }
  274. .modal #fa-preview {
  275. text-align: center;
  276. }
  277. .modal #fa-preview span {
  278. cursor: pointer;
  279. padding: 0 15px;
  280. }
  281. .modal #fa-preview .font-icons-selected {
  282. background-color: #ddd;
  283. }
  284. .existing-attachments .pager .disabled {
  285. display: none;
  286. }
  287. .existing-attachments .existing-attachment-cell {
  288. position: relative;
  289. }
  290. .existing-attachments .existing-attachment-cell .img {
  291. border: 1px solid #848490;
  292. }
  293. .existing-attachments .existing-attachment-cell .existing-attachment-remove {
  294. position: absolute;
  295. top: 0;
  296. left: 15px;
  297. cursor: pointer;
  298. background: white;
  299. padding: 2px;
  300. border: 1px solid #848490;
  301. border-top: none;
  302. border-left: none;
  303. -moz-border-radius-bottomright: 8px;
  304. -webkit-border-bottom-right-radius: 8px;
  305. border-bottom-right-radius: 8px;
  306. }
  307. .existing-attachments .existing-attachment-cell.media_selected > i, .existing-attachments .existing-attachment-cell.media_selected > img {
  308. border-width: 5px;
  309. border-color: #00f8f8;
  310. }
  311. .cke_widget_wrapper {
  312. position: static !important;
  313. }
  314. .cke_widget_inline {
  315. display: inline !important;
  316. }
  317. .cke_widget_editable:empty:after {
  318. opacity: 0.3;
  319. white-space: pre-wrap;
  320. }
  321. .cke_widget_editable:not([placeholder]):empty::after {
  322. content: " ";
  323. }
  324. .cke_widget_editable[placeholder]:not(:focus):empty::after {
  325. content: attr(placeholder);
  326. }
  327. .oe_carlos_danger {
  328. outline: 1px solid red !important;
  329. background-color: #ffd9dd !important;
  330. }
  331. .hover-edition {
  332. display: inline-block;
  333. position: absolute;
  334. top: 0;
  335. left: 0;
  336. z-index: 1001;
  337. }
  338. .preview-container {
  339. text-align: center;
  340. line-height: 100px;
  341. height: 100px;
  342. }
  343. .preview-container > * {
  344. max-height: 100px;
  345. line-height: 100px;
  346. margin: 0 auto;
  347. display: inline-block;
  348. }
  349. .cke_editable .fa {
  350. cursor: pointer;
  351. }
  352. .img-responsive {
  353. text-align: center;
  354. }
  355. /* ---- MOBILE PREVIEW ---- {{{ */
  356. .oe_mobile_preview.modal .modal-content {
  357. height: 660px;
  358. background-color: #000000;
  359. border: 2px solid #1C1F1F;
  360. -moz-border-radius: 10px;
  361. -webkit-border-radius: 10px;
  362. border-radius: 10px;
  363. margin: auto;
  364. top: 0;
  365. left: 0;
  366. bottom: 0;
  367. right: 0;
  368. max-width: 330px;
  369. }
  370. .oe_mobile_preview.modal .modal-content .modal-header {
  371. background-color: #000000;
  372. border-bottom: 0;
  373. -moz-border-radius-topleft: 10px;
  374. -webkit-border-top-left-radius: 10px;
  375. border-top-left-radius: 10px;
  376. -moz-border-radius-topright: 10px;
  377. -webkit-border-top-right-radius: 10px;
  378. border-top-right-radius: 10px;
  379. }
  380. .oe_mobile_preview.modal .modal-content .modal-header .modal-title {
  381. color: #1C1F1F;
  382. }
  383. .oe_mobile_preview.modal .modal-content .modal-header .close {
  384. color: lightgrey;
  385. filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  386. opacity: 1;
  387. }
  388. .oe_mobile_preview.modal .modal-content .modal-header .close:hover {
  389. color: #E00101;
  390. filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  391. opacity: 1;
  392. }
  393. .oe_mobile_preview.modal .modal-content .modal-body {
  394. background-color: #000000;
  395. max-height: 600px;
  396. padding: 0;
  397. margin: 0;
  398. }
  399. .oe_mobile_preview.modal .modal-content .modal-body .oe_mobile_viewport {
  400. width: 320px;
  401. height: 568px;
  402. padding: 5px;
  403. border: none;
  404. }
  405. .oe_mobile_preview.modal .modal-content .modal-footer {
  406. background-color: #000000;
  407. }
  408. /* ---- SEO TOOLS ---- {{{ */
  409. .oe_seo_configuration .modal-dialog {
  410. width: 80%;
  411. }
  412. .oe_seo_configuration .oe_remove {
  413. color: #E00101;
  414. }
  415. .oe_seo_configuration .oe_seo_suggestion {
  416. cursor: pointer;
  417. }
  418. .oe_seo_configuration .oe_seo_keyword {
  419. padding: 0.2em 0.4em 0.2em 0.5em;
  420. -moz-border-radius: 0.4em;
  421. -webkit-border-radius: 0.4em;
  422. border-radius: 0.4em;
  423. }
  424. .oe_seo_configuration li.oe_seo_preview_g {
  425. line-height: 1.2;
  426. list-style: none;
  427. list-style-image: none;
  428. list-style-position: outside;
  429. list-style-type: none;
  430. font-size: small;
  431. font-family: arial, sans-serif;
  432. }
  433. .oe_seo_configuration li.oe_seo_preview_g h3 {
  434. font-size: medium;
  435. }
  436. .oe_seo_configuration li.oe_seo_preview_g .r {
  437. margin: 0;
  438. font-size: 16px;
  439. font-style: normal;
  440. font-weight: normal;
  441. overflow: hidden;
  442. text-overflow: ellipsis;
  443. -webkit-text-overflow: ellipsis;
  444. white-space: nowrap;
  445. }
  446. .oe_seo_configuration li.oe_seo_preview_g .r a {
  447. color: #1e0fbe;
  448. text-decoration: underline;
  449. text-transform: none;
  450. }
  451. .oe_seo_configuration li.oe_seo_preview_g .r a em {
  452. font-style: normal !important;
  453. }
  454. .oe_seo_configuration li.oe_seo_preview_g .s {
  455. color: #444;
  456. max-width: 42em;
  457. }
  458. .oe_seo_configuration li.oe_seo_preview_g .kv, .oe_seo_configuration li.oe_seo_preview_g .slp {
  459. display: block;
  460. margin-bottom: 1px;
  461. }
  462. .oe_seo_configuration li.oe_seo_preview_g .f {
  463. color: #666;
  464. margin-bottom: 1px;
  465. }
  466. .oe_seo_configuration li.oe_seo_preview_g .f cite {
  467. color: #006621;
  468. font-style: normal;
  469. font-size: 14px;
  470. }
  471. .oe_seo_configuration li.oe_seo_preview_g .st {
  472. line-height: 1.24;
  473. }
  474. /* ---- ACE EDITOR ---- {{{ */
  475. .oe_ace_view_editor {
  476. position: fixed;
  477. right: 0;
  478. z-index: 1001;
  479. height: 100%;
  480. background: #2F3129;
  481. color: white;
  482. }
  483. .oe_ace_view_editor .oe_ace_view_editor_title {
  484. width: 100%;
  485. padding-top: 0;
  486. padding-left: 0;
  487. height: 30px;
  488. }
  489. .oe_ace_view_editor .oe_ace_view_editor_title .oe_view_list {
  490. width: 50%;
  491. height: 30px;
  492. font-size: 14px;
  493. font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", monospace;
  494. line-height: normal;
  495. }
  496. .oe_ace_view_editor .oe_ace_view_editor_title .btn {
  497. height: 30px;
  498. padding: 0 4px 0 4px;
  499. font-size: 14px;
  500. font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", monospace;
  501. line-height: normal;
  502. }
  503. .oe_ace_view_editor .ace_editor {
  504. position: absolute;
  505. top: 50px;
  506. right: 0;
  507. left: 0;
  508. }
  509. .oe_ace_view_editor .ace_editor .ace_gutter {
  510. cursor: ew-resize;
  511. }
  512. .oe_ace_view_editor #ace-view-id {
  513. padding: 0 1em;
  514. }
  515. .oe_ace_view_editor.oe_ace_open {
  516. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=97);
  517. opacity: 0.97;
  518. }
  519. .oe_ace_view_editor.oe_ace_closed {
  520. z-index: -1000;
  521. filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  522. opacity: 0;
  523. }
  524. /* ---- CUSTOMIZE THEME ---- {{{ */
  525. #theme_error {
  526. background: #ffc;
  527. }
  528. #theme_customize_modal {
  529. overflow: visible;
  530. overflow-y: auto;
  531. z-index: 1020;
  532. background: rgba(0, 0, 0, 0);
  533. display: block;
  534. }
  535. #theme_customize_modal .modal-dialog {
  536. top: 75px;
  537. width: auto;
  538. margin: 0;
  539. position: absolute;
  540. right: 10px;
  541. font-family: "Lato-Regular";
  542. font-weight: normal;
  543. text-transform: capitalize;
  544. letter-spacing: normal;
  545. }
  546. #theme_customize_modal .modal-h5 {
  547. color: #ffffff;
  548. font-family: "Lato-Regular";
  549. font-weight: normal;
  550. text-transform: uppercase;
  551. letter-spacing: normal;
  552. font-size: 14px;
  553. color: white;
  554. padding: 4px 0 4px 4px;
  555. background-color: #bdc3c7;
  556. }
  557. #theme_customize_modal table {
  558. width: 100%;
  559. margin-bottom: 8px;
  560. }
  561. #theme_customize_modal label {
  562. display: block;
  563. text-align: center;
  564. }
  565. #theme_customize_modal label > div, #theme_customize_modal label > img {
  566. border: 1px solid #fff;
  567. line-height: 30px;
  568. font-size: 0.9em;
  569. margin: 2px 4px;
  570. }
  571. #theme_customize_modal label.checked > div, #theme_customize_modal label.checked > img {
  572. box-shadow: 2px 2px 3px #888;
  573. border: 1px solid #666;
  574. }
  575. #theme_customize_modal label img {
  576. width: 60px;
  577. height: 35px;
  578. margin: 2px;
  579. border: 1px solid rgba(136, 136, 136, 0.5);
  580. }
  581. #theme_customize_modal label input {
  582. display: none;
  583. }
  584. #theme_customize_modal .loading_backdrop {
  585. display: none;
  586. }
  587. #theme_customize_modal.loading .loading_backdrop {
  588. display: block;
  589. width: 100%;
  590. height: 100%;
  591. background: #000;
  592. opacity: 0.3;
  593. position: absolute;
  594. z-index: 1;
  595. }
  596. /* ---- force the browse to re-compute the stylesheets ---- */
  597. body.theme_customize_css_loading {
  598. magin-top: 1px;
  599. }
  600. body.theme_customize_css_loading #wrapwrap {
  601. magin-top: -1px;
  602. }