summaryrefslogtreecommitdiff
path: root/addons/website/static/src/less/website.wrapwrap.less
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-07-18 09:49:47 +0200
committerThibault Delavallée <tde@odoo.com>2017-08-08 14:23:58 +0200
commitda8d418ff08aa55c7378887c9a5a06a5d12b72c0 (patch)
treeed2392eb2a38f0696b7c1fc3442d4a62ac95ce2e /addons/website/static/src/less/website.wrapwrap.less
parent471b049811c30f83986e3e12c39663c0fde4e090 (diff)
[ADD] portal: add module for customer portal and sharing features
This module adds required base code for a fully integrated customer portal. It contains the base controller class and base templates. Business addons will add their specific templates and controllers to extend the customer portal. This module contains most code coming from odoo v10 website_portal. Purpose of this module is to allow the display of a customer portal without having a dependency towards website edition and customization capabilities. Some CSS files used in frontend assets are already moved to have a working portal skeleton. A is_public method on users is also added as it will be used in various portal code soon.
Diffstat (limited to 'addons/website/static/src/less/website.wrapwrap.less')
-rw-r--r--addons/website/static/src/less/website.wrapwrap.less309
1 files changed, 0 insertions, 309 deletions
diff --git a/addons/website/static/src/less/website.wrapwrap.less b/addons/website/static/src/less/website.wrapwrap.less
deleted file mode 100644
index 0e422f3faea..00000000000
--- a/addons/website/static/src/less/website.wrapwrap.less
+++ /dev/null
@@ -1,309 +0,0 @@
-///
-/// This file regroups the general rules for website design. See the website.snippets.less rules for
-/// snippets-specific rules.
-///
-
-// Resize and vertically align navbar’s items relative to @navbar-height
-.o-w-fill-navbar(@ratio: 0.8) {
- height: round(@navbar-height * @ratio);
- margin-top: round(@navbar-height * (1 - @ratio) / 2);
-}
-
-#wrapwrap {
- position: relative;
- display: table;
- table-layout: fixed;
- width: 100%;
- height: 100%;
-
- > * {
- display: table-row;
- }
- > main {
- height: 100%;
- }
-}
-
-// Default Style
-header a.navbar-brand {
- &.logo {
- padding: 0 15px;
-
- img {
- .o-w-fill-navbar();
- }
- }
-}
-footer {
- background-color: #F8F8F8;
-
- #footer {
- padding-top: 32px;
- }
-}
-
-// Odoo utility classes
-.o_hidden {
- display: none!important;
-}
-
-.o_text_overflow {
- .text-overflow()
-}
-
-.o_div_text_overflow * > div {
- // .text-overflow() we don't want wordwrap
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-// Odoo options classes
-.jumbotron {
- margin-bottom: 0;
-}
-
-// Odoo image background classes
-.oe_img_bg {
- background-size: cover;
- background-repeat: no-repeat;
-
- &.o_bg_img_opt_contain {
- background-size: contain;
- background-position: center center;
- }
- &.o_bg_img_opt_custom {
- background-size: auto;
- }
- &.o_bg_img_opt_repeat {
- background-repeat: repeat;
- }
- &.o_bg_img_opt_repeat_x {
- background-repeat: repeat-x;
- }
- &.o_bg_img_opt_repeat_y {
- background-repeat: repeat-y;
- }
-}
-
-// Typography
-ul {
- list-style-type: disc;
-}
-li > ul {
- list-style-type: circle;
-}
-li > * > li > ul {
- list-style-type: square;
-}
-li > * > li > * > li > ul {
- list-style-type: disc;
-}
-li > * > li > * > li > * > li > ul {
- list-style-type: circle;
-}
-li > * > li > * > li > * > li > * > li > ul {
- list-style-type: square;
-}
-li > * > li > * > li > * > li > * > li > * > li > ul {
- list-style-type: disc;
-}
-ol {
- list-style-type: decimal;
-}
-li > ol {
- list-style-type: lower-alpha;
-}
-li > * > li > ol {
- list-style-type: lower-greek;
-}
-li > * > li > * > li > ol {
- list-style-type: decimal;
-}
-li > * > li > * > li > * > li > ol {
- list-style-type: lower-alpha;
-}
-li > * > li > * > li > * > li > * > li > ol {
- list-style-type: lower-greek;
-}
-li > * > li > * > li > * > li > * > li > * > li > ol {
- list-style-type: decimal;
-}
-li > p {
- margin: 0;
-}
-
-font[style*='background'], font[class*='bg-'] {
- padding: 0 2px;
-}
-hr {
- padding: 4px 0;
-}
-
-// O_UL
-.o_ul_toggle_self, .o_ul_toggle_next {
- display: none;
-}
-.o_ul_folded {
- .o_close {
- display: none!important;
- }
- .o_ul_toggle_self, .o_ul_toggle_next {
- display: inline-block;
- line-height: inherit;
- float: left;
- position: relative;
- margin-left: -1em;
- top: -0.15em;
- left: 0.2em;
- font-size: 1.4em;
- text-decoration: none;
- &.o_open:before {
- content: "";
- }
- &:before {
- content: "";
- }
- }
-}
-
-// Bootstrap hacks
-.container {
- max-width: 100%;
-}
-.container .container {
- padding-left: 0;
- padding-right: 0;
- width: auto;
-}
-
-// HEADER NAV BAR
-.navbar.navbar-static-top {
- margin-bottom: 0;
- ul.nav > li {
- &.divider {
- .o-w-fill-navbar();
- border-right: 1px solid @navbar-default-link-disabled-color;
- }
-
- &.active + .divider {
- visibility: hidden;
- }
- }
-}
-ul.nav-stacked > li > a {
- padding: 2px 15px;
-}
-
-// Columns min height
-[class^="col-md-"] {
- min-height: 24px;
-}
-
-// Others
-::-moz-selection {
- background: rgba(150, 150, 220, 0.3);
-}
-::selection {
- background: rgba(150, 150, 220, 0.3);
-}
-
-.oe_demo {
- position: relative;
- img {
- width: 100%;
- }
- div {
- .o-position-absolute(@left: 0, @bottom: 0);
- background-color: rgba(0, 0, 0, 0.4);
- opacity: 0.85;
- width: 100%;
- padding: 7px;
- color: white;
- font-weight: bold;
- a {
- color: white;
- }
- }
-}
-
-.oe_search_box {
- padding-right: 23px;
-}
-
-// Kept for (up to) saas-12 compatibility
-.para_large {
- font-size: 120%;
-}
-.jumbotron .para_large p {
- font-size: 150%;
-}
-
-.readable {
- font-size: 120%;
- max-width: 700px;
- margin-left: auto;
- margin-right: auto;
-
- .container {
- padding-left: 0;
- padding-right: 0;
- width: auto;
- }
-}
-
-// Background (kept for 8.0 compatibility) (! some are still used by website_blog)
-.oe_dark {
- background-color: rgba(200, 200, 200, 0.14);
-}
-.oe_black {
- background-color: rgba(0, 0, 0, 0.9);
- color: white;
-}
-.oe_green {
- background-color: #169C78;
- color: white;
- .text-muted {
- color: #ddd;
- }
-}
-.oe_blue_light {
- background-color: #41b6ab;
- color: white;
- .text-muted {
- color: #ddd;
- }
-}
-.oe_blue {
- background-color: #34495e;
- color: white;
-}
-.oe_orange {
- background-color: #f05442;
- color: white;
- .text-muted {
- color: #ddd;
- }
-}
-.oe_purple {
- background-color: #b163a3;
- color: white;
- .text-muted {
- color: #ddd;
- }
-}
-.oe_red {
- background-color: #9C1b31;
- color: white;
- .text-muted {
- color: #ddd;
- }
-}
-.oe_none {
- background-color: #FFFFFF;
-}
-.oe_yellow {
- background-color: #A2A51B;
-}
-.oe_green {
- background-color: #149F2C;
-}