summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css/base.sass
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/css/base.sass')
-rw-r--r--addons/web/static/src/css/base.sass133
1 files changed, 116 insertions, 17 deletions
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index a0b29b1fc81..82ed305a275 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -6,6 +6,7 @@ $facets-border: #afafb6
$facets-border-selected: #a6a6fe
$hover-background: #f0f0fa
$colour4: #8a89ba
+$sheet-max-width: 860px
// }}}
// Mixins {{{
@font-face
@@ -143,7 +144,7 @@ $colour4: #8a89ba
li
list-style-type: none
input, textarea, select
- padding: 1px 4px
+ padding: 2px 4px
border: 1px solid #ccc
@include radius(3px)
background: white
@@ -200,6 +201,75 @@ $colour4: #8a89ba
width: auto
a.ui-state-active
background: #f0f0fa
+
+ // Modal box
+ &.ui-dialog
+ display: none
+ position: fixed
+ padding: 6px
+ top: 50%
+ left: 50%
+ z-index: 1050
+ width: 560px
+ margin: -150px 0 0 -280px
+ //overflow: hidden
+ background-color: rgba(60,60,60,0.7)
+ border: 1px solid
+ border-color: #888 #555 #444
+ //overflow: hidden
+ @include radius(8px)
+ @include box-shadow(0 1px 12px rgba(0, 0, 0, 0.6))
+ @include background-clip()
+ .ui-dialog-titlebar, .ui-dialog-content, .ui-dialog-buttonpane
+ padding: 16px
+ .ui-dialog-titlebar
+ border-bottom: 1px solid #cacaca
+ @include radius(2px 2px 0 0)
+ @include vertical-gradient(#FCFCFC, #DEDEDE)
+ .ui-dialog-title
+ margin: 0
+ padding: 0
+ .ui-widget-header
+ border: none
+ .ui-dialog-content
+ background: white
+ .ui-dialog-buttonpane
+ border-top: 1px solid #e0e0e0
+ background: #f5f7f9
+ padding: 8px
+ margin: 0
+ @include radius(0 0 2px 2px)
+ button
+ margin-left: 8px
+ .ui-dialog-titlebar-close
+ padding: 0
+ .ui-icon-closethick
+ display: none
+ &:before
+ content: "×"
+ font-size: 18px
+ font-weight: bold
+ line-height: 16px
+ color: black
+ text-shadow: 0 1px 0 white
+ padding: 0
+ cursor: pointer
+ background: transparent
+ border: 0
+ &:hover
+ color: black
+ text-decoration: none
+
+ .modal-backdrop
+ position: fixed
+ top: 0
+ right: 0
+ bottom: 0
+ left: 0
+ z-index: 1040
+ background-color: black
+ @include opacity(.3)
+
// }}}
// Generic classes {{{
.oe_i
@@ -252,7 +322,7 @@ $colour4: #8a89ba
&:hover
background: #ED6F6A
.oe_title
- width: 55%
+ width: 60%
.oe_title:after
content: "."
display: block
@@ -279,6 +349,17 @@ $colour4: #8a89ba
font-weight: bold
&:hover
text-decoration: underline
+ .oe_webclient
+ .oe_star_on, .oe_star_off
+ color: #cccccc
+ text-shadow: 0 0 2px black
+ vertical-align: top
+ position: relative
+ top: -5px
+ .oe_star_on:hover, .oe_star_off:hover
+ text-decoration: none
+ .oe_star_on
+ color: gold
//.oe_edit_only 
// }}}
@@ -305,6 +386,8 @@ $colour4: #8a89ba
padding: 0 16px
list-style: none
zoom: 1
+ .oe_notebook.ui-corner-all
+ @include radius(0)
.oe_notebook:before, .oe_notebook:after
display: table
content: ""
@@ -348,17 +431,20 @@ $colour4: #8a89ba
.oe_dropdown, .oe_dropdown_hover, .oe_dropdown_toggle
position: relative
cursor: pointer
+ .oe_dropdown_toggle
+ color: #888
+ font-weight: normal
.oe_dropdown_hover:hover .oe_dropdown_menu, .oe_dropdown_menu.oe_opened
display: block
.oe_dropdown_menu
display: none
position: absolute
- top: 28px
+ top: 32px
z-index: 1
border: 1px solid #afafb6
background: white
- padding: 8px
- min-width: 120px
+ padding: 6px 0
+ min-width: 140px
text-align: left
@include radius(3px)
@include box-shadow(0 1px 4px rgba(0,0,0,0.3))
@@ -373,7 +459,7 @@ $colour4: #8a89ba
> a
white-space: nowrap
display: block
- padding: 3px 6px
+ padding: 4px 15px
color: #4c4c4c
text-decoration: none
&:hover
@@ -391,7 +477,6 @@ $colour4: #8a89ba
border-right: 4px solid transparent
border-top: 4px solid#404040
@include opacity(0.5)
-
.oe_sidebar
white-space: nowrap
.oe_dropdown_menu
@@ -612,6 +697,7 @@ $colour4: #8a89ba
.oe_dropdown_arrow:after
border-top: 4px solid white
.oe_dropdown_menu
+ top: 32px
background: #333
background: rgba(37,37,37,0.9)
border-color: #999
@@ -627,6 +713,7 @@ $colour4: #8a89ba
&:hover
@include vertical-gradient(#292929, #191919)
@include box-shadow(none)
+
// }}}
// Webclient.leftbar {{{
.oe_leftbar
@@ -912,7 +999,7 @@ $colour4: #8a89ba
content: "f"
// }}}
// ViewManager application {{{
- .oe_view_manager_global
+ .oe_view_manager_current
height: 100%
> .oe_view_manager_header
border-top: 1px solid #cacaca
@@ -926,6 +1013,12 @@ $colour4: #8a89ba
td
padding-top: 8px
// }}}
+ // ViewManager inline {{{
+ .oe_view_manager_inline
+ height: 100%
+ > .oe_view_manager_header
+ display: none
+ // }}}
// Viewmanager popup {{{
.oe_popup_form > .oe_formview > .oe_form_pager
display: none !important
@@ -945,7 +1038,7 @@ $colour4: #8a89ba
input, textarea
padding: 3px
height: 14px
- font-size: 11px
+ font-size: 12px
line-height: 18px
&.oe_focused
border-color: $facets-border-selected
@@ -1240,7 +1333,7 @@ $colour4: #8a89ba
input, select, textarea
background-color: #F66 !important
border: 1px solid #D00 !important
- .oe_form_editable
+ .oe_view_manager_current .oe_form_editable
.oe_highlight
color: #404040
background: none
@@ -1258,9 +1351,12 @@ $colour4: #8a89ba
.oe_form_readonly
.oe_edit_only, .oe_form_field:empty
display: none !important
- .oe_form_nosheet > *:not(header)
- margin-left: 10px !important
- margin-right: 10px !important
+ .oe_form_nosheet
+ margin-left: 10px
+ margin-right: 10px
+ .oe_form_nosheet > header
+ margin-left: -10px
+ margin-right: -10px
// }}}
// FormView.custom tags and classes {{{
.oe_form
@@ -1275,7 +1371,7 @@ $colour4: #8a89ba
float: right
footer
min-width: 650px
- max-width: 960px
+ max-width: $sheet-max-width
margin: 0 auto
ul.oe_form_steps
height: 30px
@@ -1330,7 +1426,7 @@ $colour4: #8a89ba
border-bottom: 1px solid #ddd
.oe_form_sheet_width
min-width: 650px
- max-width: 960px
+ max-width: $sheet-max-width
margin: 0 auto
.oe_form_sheet
background: white
@@ -1589,7 +1685,9 @@ $colour4: #8a89ba
.oe_form_field_one2many
// TODO: oe_form_field_one2many_list?
.oe_list .oe_list_edit_row_save
- background-image: url(/web/static/src/img/iconset-b-remove.png)
+ background: url(/web/static/src/img/iconset-b-remove.png) 50% 50% no-repeat
+ &:before
+ visibility: hidden
&> .oe_view_manager
.oe_header_row_top
@@ -1649,7 +1747,6 @@ $colour4: #8a89ba
@include opacity(0.6)
> tbody
cursor: pointer
- background: white
> tr
border-top: 1px solid #ddd
> td.oe_list_field_cell
@@ -1684,6 +1781,8 @@ $colour4: #8a89ba
width: 82px
input
text-align: right
+ .oe_list_edit_row_save:before
+ content: "S"
// }}}
// Translation {{{
.oe_trad_field.touched