@each $url in $o-theme-font-urls { @if $url { @import url("https://fonts.googleapis.com/css?family=#{unquote($url)}"); } } .modal.o_theme_customize_modal { .modal-dialog { @include o-position-absolute(0, 2%); width: 96%; max-width: 550px; } .modal-header { background-color: $o-brand-odoo; color: white; border-radius: 0; * { color: inherit; } } .close:hover, .close:focus { color: white; } .nav { padding: 0; .nav-item { text-align: center; background-color: $o-brand-lightsecondary; .nav-link { color: $o-main-text-color; &.active { font-weight: bold; background-color: white; border: 1px solid #d9d7d7; border-left: 1px solid #333333; } &:hover, &:focus { text-decoration: none; } } } } .o_theme_customize_option { position: relative; width: 100%; > img { width: 100%; + label { @include o-position-absolute(0, 0, 0, 0); width: auto; background: transparent !important; } } label { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 24px; margin: 0; padding: 8px; border: 2px solid transparent; background-color: $o-brand-lightsecondary; text-align: center; font-size: 14px; line-height: 1; cursor: pointer; &:hover::after { content: ""; pointer-events: none; @include o-position-absolute(0, 0, 0, 0); background-color: rgba(0, 32, 64, 0.03); } &.checked { border-color: $o-brand-odoo; color: $o-brand-odoo; } &.o_switch { justify-content: flex-start; } } $i: 1; @each $font in $o-theme-fonts { &.o_theme_customize_option_font_#{$i} { font-family: if($font, $font, $font-family-base); > label > span::before { content: nth($o-theme-font-names, $i); } } $i: $i + 1; } &.o_theme_customize_with_widget { label { justify-content: flex-start; text-align: left; &.checked { border-color: transparent; color: inherit; } } } } .o_theme_customize_color { position: relative; width: 30px; height: 20px; margin-left: auto; border: 1px solid black; &::before, &::after { content: ""; @include o-position-absolute(0, 0, 0, 0); } &::before { background-image: url('/web_editor/static/src/img/transparent.png'); } &::after { background-color: inherit; } } .o_theme_customize_input { flex: 1 1 auto; text-align: right; .fa-edit { visibility: hidden; color: $o-brand-primary; } } .o_theme_customize_option:hover .o_theme_customize_input .fa-edit { visibility: visible; } .o_theme_customize_active_input { @include o-position-absolute(0, 0, 0, 0); width: auto; padding: 3px; > * { height: 100% !important; &.form-control { background: white !important; } &.form-control, .btn { padding: 2px 8px !important; text-align: right !important; font-size: $font-size-sm !important; } } } .o_theme_customize_option_input { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .o_theme_customize_option_list { box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.05); } } .o_homepage_editor_welcome_message { padding-top: 128px; padding-bottom: 128px; font-family: Roboto, $font-family-sans-serif; .o_tooltip_container { transition: opacity 1s linear; > .o_tooltip { @include o-position-absolute; position: relative; display: inline-block; margin: 0 8px; opacity: 1; z-index: auto; } } } .o_editable { &:not(:empty), &[data-oe-type] { &:not([data-oe-model="ir.ui.view"]):not([data-oe-type="html"]):hover { box-shadow: $o-brand-odoo 0 0 5px 2px inset; } } &:focus, &[data-oe-type] { min-height: 0.8em; min-width: 8px; } &.o_is_inline_editable { display: inline-block; } .btn, &.btn { -webkit-user-select: auto; -moz-user-select: auto; -ms-user-select: auto; user-select: auto; cursor: text!important; } /* Summernote not Support for placeholder text https://github.com/summernote/summernote/issues/581 */ &[placeholder]:empty:not(:focus):before { content: attr(placeholder); opacity: 0.3; } &.oe_structure.oe_empty, &[data-oe-type=html] { &:empty { border: 2px dashed gray('400'); margin: 20px; padding: 112px 0px; text-align: center; &:before { content: attr(data-editor-message); font-size: 20px; color: gray('400'); } } > p:empty:only-child { color: #aaa; } } } .editor_enable [data-oe-readonly]:hover { cursor: default; } /* Prevent the text contents of draggable elements from being selectable. */ [draggable] { user-select: none; } .oe_editable:focus, .css_editable_hidden, .editor_enable .css_editable_mode_hidden { outline: none!important; } .css_editable_display, .editor_enable .css_non_editable_mode_hidden, .o_editable .media_iframe_video .css_editable_mode_display { display: block!important; } [data-oe-type=html].oe_no_empty:empty { height: 16px!important; } // EDITOR BAR table.editorbar-panel { cursor: pointer; width: 100%; td { border: 1px solid #aaa} td.selected { background-color: #b1c9d9} } .link-style { .dropdown > .btn { min-width: 160px; } .link-style { display: none; } li { text-align: center; label { width: 100px; margin: 0 5px; } } .col-md-2 > * { line-height: 2em; } } // fontawesome .note-editable .fa { cursor: pointer; } // parallax dropzones are in conflict with outside of parallax dropzones .parallax .oe_structure > .oe_drop_zone { &:first-child { top: 16px; } &:last-child { bottom: 16px; } } .editor_enable .js_language_selector { display: none; } // Facebook Page .editor_enable .o_facebook_page:not(.o_facebook_preview) { iframe { pointer-events: none; } .o_facebook_alert .o_add_facebook_page { cursor: pointer; } }