diff options
Diffstat (limited to 'addons/website/static/src/css')
| -rw-r--r-- | addons/website/static/src/css/snippets.css | 10 | ||||
| -rw-r--r-- | addons/website/static/src/css/snippets.sass | 9 | ||||
| -rw-r--r-- | addons/website/static/src/css/website.css | 108 | ||||
| -rw-r--r-- | addons/website/static/src/css/website.sass | 96 |
4 files changed, 222 insertions, 1 deletions
diff --git a/addons/website/static/src/css/snippets.css b/addons/website/static/src/css/snippets.css index a1c42b0b814..ebe87769794 100644 --- a/addons/website/static/src/css/snippets.css +++ b/addons/website/static/src/css/snippets.css @@ -46,6 +46,7 @@ display: inline-block; white-space: nowrap; background: black; + margin-right: 60px; } #oe_snippets .tab-content > div { background: black; @@ -119,6 +120,12 @@ .oe_snippet > :not(.oe_snippet_thumbnail) { display: none !important; } +.oe_snippet.disable .oe_snippet_thumbnail { + background-color: rgba(255, 0, 0, 0.75); +} +.oe_snippet.disable .oe_snippet_thumbnail_img { + opacity: 0.8; +} #oe_snippets .oe_snippet_thumbnail { background: #747474, -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 100, color-stop(0%, rgba(0, 0, 0, 0.25)), color-stop(100%, rgba(0, 0, 0, 0.4))); @@ -381,6 +388,9 @@ float: none; margin: 0 -3px; } +.oe_overlay .oe_overlay_options > .btn-group > div { + float: none; +} .oe_overlay .oe_overlay_options .btn, .oe_overlay .oe_overlay_options a { cursor: pointer; } diff --git a/addons/website/static/src/css/snippets.sass b/addons/website/static/src/css/snippets.sass index 71613f8dfbe..a94b8665e0c 100644 --- a/addons/website/static/src/css/snippets.sass +++ b/addons/website/static/src/css/snippets.sass @@ -43,6 +43,7 @@ display: inline-block white-space: nowrap background: black + margin-right: 60px > div background: rgb(0,0,0) label @@ -87,7 +88,11 @@ line-height: 18px & > :not(.oe_snippet_thumbnail) display: none !important - + &.disable + .oe_snippet_thumbnail + background-color: rgba(255, 0, 0, 0.75) + .oe_snippet_thumbnail_img + opacity: 0.8 #oe_snippets .oe_snippet_thumbnail @include background(#747474, radial-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.4))) @@ -286,6 +291,8 @@ display: inline-block float: none margin: 0 -3px + > div + float: none .btn, a cursor: pointer .dropdown diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index c5d403bfdda..055ac7fb4e3 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -356,6 +356,114 @@ ul.nav-stacked > li > a { padding: 4px 0; } +/* gallery */ +.o_gallery.o_grid.o_spc-none div.row, .o_gallery.o_masonry.o_spc-none div.row { + margin: 0; +} +.o_gallery.o_grid.o_spc-none div.row > *, .o_gallery.o_masonry.o_spc-none div.row > * { + padding: 0; +} +.o_gallery.o_grid.o_spc-small div.row, .o_gallery.o_masonry.o_spc-small div.row { + margin: 5px 0; +} +.o_gallery.o_grid.o_spc-small div.row > *, .o_gallery.o_masonry.o_spc-small div.row > * { + padding: 0 5px; +} +.o_gallery.o_grid.o_spc-medium div.row, .o_gallery.o_masonry.o_spc-medium div.row { + margin: 10px 0; +} +.o_gallery.o_grid.o_spc-medium div.row > *, .o_gallery.o_masonry.o_spc-medium div.row > * { + padding: 0 10px; +} +.o_gallery.o_grid.o_spc-big div.row, .o_gallery.o_masonry.o_spc-big div.row { + margin: 15px 0; +} +.o_gallery.o_grid.o_spc-big div.row > *, .o_gallery.o_masonry.o_spc-big div.row > * { + padding: 0 15px; +} +.o_gallery.o_grid .img, .o_gallery.o_masonry .img { + width: 100%; +} +.o_gallery.o_grid.size-auto .row { + height: auto; +} +.o_gallery.o_grid.size-small .row { + height: 100px; +} +.o_gallery.o_grid.size-medium .row { + height: 250px; +} +.o_gallery.o_grid.size-big .row { + height: 400px; +} +.o_gallery.o_grid.size-small .img, .o_gallery.o_grid.size-medium .img, .o_gallery.o_grid.size-big .img { + height: 100%; +} +.o_gallery.o_nomode.o_spc-none .img { + padding: 0; +} +.o_gallery.o_nomode.o_spc-small .img { + padding: 5px; +} +.o_gallery.o_nomode.o_spc-medium .img { + padding: 10px; +} +.o_gallery.o_nomode.o_spc-big .img { + padding: 15px; +} +.o_gallery.o_slideshow .carousel ul.carousel-indicators li { + border: 1px solid #aaaaaa; +} +.o_gallery .carousel-inner .item img { + max-width: none; +} + +.o_gallery.o_slideshow > .container { + height: 100%; +} + +.o_gallery.o_slideshow .carousel, .modal-body.o_slideshow .carousel { + height: 100%; +} +.o_gallery.o_slideshow .carousel img, .modal-body.o_slideshow .carousel img { + max-height: 100%; + max-width: 100%; + margin: auto; + position: relative; + top: 50%; + -webkit-transform: translateY(-50%); + -ms-transform: translateY(-50%); + transform: translateY(-50%); +} +.o_gallery.o_slideshow .carousel ul.carousel-indicators, .modal-body.o_slideshow .carousel ul.carousel-indicators { + display: block; + height: auto; + padding: 0; + border-width: 0; + position: absolute; + bottom: 0; +} +.o_gallery.o_slideshow .carousel ul.carousel-indicators li, .modal-body.o_slideshow .carousel ul.carousel-indicators li { + list-style-image: none; + display: inline-block; + width: 35px; + height: 35px; + margin: 0 0px 5px 5px; + padding: 0; + border: 1px solid #aaaaaa; + text-indent: initial; + background-size: cover; + opacity: 0.5; + background-color: black; +} +.o_gallery.o_slideshow .carousel ul.carousel-indicators li.active, .modal-body.o_slideshow .carousel ul.carousel-indicators li.active { + opacity: 1; +} +.o_gallery.o_slideshow .carousel .carousel-control.left, .o_gallery.o_slideshow .carousel .carousel-control.right, .modal-body.o_slideshow .carousel .carousel-control.left, .modal-body.o_slideshow .carousel .carousel-control.right { + background-image: none; + background-color: transparent; +} + /* Parallax Theme */ div.carousel .carousel-indicators li { border: 1px solid grey; diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass index f4cf73437f8..ba47a12c90f 100644 --- a/addons/website/static/src/css/website.sass +++ b/addons/website/static/src/css/website.sass @@ -285,6 +285,102 @@ ul.nav-stacked > li > a .hr padding: 4px 0 +/* gallery */ + +.o_gallery + &.o_grid, &.o_masonry + &.o_spc-none + div.row + margin: 0 + div.row > * + padding: 0 + &.o_spc-small + div.row + margin: 5px 0 + div.row > * + padding: 0 5px + &.o_spc-medium + div.row + margin: 10px 0 + div.row > * + padding: 0 10px + &.o_spc-big + div.row + margin: 15px 0 + div.row > * + padding: 0 15px + .img + width: 100% + &.o_grid + &.size-auto .row + height: auto + &.size-small .row + height: 100px + &.size-medium .row + height: 250px + &.size-big .row + height: 400px + &.size-small, &.size-medium, &.size-big + .img + height: 100% + &.o_nomode + &.o_spc-none + .img + padding: 0 + &.o_spc-small + .img + padding: 5px + &.o_spc-medium + .img + padding: 10px + &.o_spc-big + .img + padding: 15px + + &.o_slideshow .carousel ul.carousel-indicators li + border: 1px solid #aaa + .carousel-inner .item img + max-width: none + +.o_gallery.o_slideshow > .container + height: 100% + +.o_gallery.o_slideshow .carousel, .modal-body.o_slideshow .carousel + height: 100% + img + max-height: 100% + max-width: 100% + margin: auto + position: relative + top: 50% + -webkit-transform: translateY(-50%) + -ms-transform: translateY(-50%) + transform: translateY(-50%) + ul.carousel-indicators + display: block + height: auto + padding: 0 + border-width: 0 + position: absolute + bottom: 0 + li + list-style-image: none + display: inline-block + width: 35px + height: 35px + margin: 0 0px 5px 5px + padding: 0 + border: 1px solid #aaa + text-indent: initial + background-size: cover + opacity: 0.5 + background-color: #000 + li.active + opacity: 1 + .carousel-control.left, .carousel-control.right + background-image: none + background-color: transparent + /* Parallax Theme */ div.carousel |
