summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/views.scss
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/scss/views.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/views.scss')
-rw-r--r--addons/web/static/src/scss/views.scss96
1 files changed, 96 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/views.scss b/addons/web/static/src/scss/views.scss
new file mode 100644
index 00000000..ff843145
--- /dev/null
+++ b/addons/web/static/src/scss/views.scss
@@ -0,0 +1,96 @@
+/**
+ * This file regroups the rules which apply on elements which are shared between
+ * all renderers. For field default rules, see the fields.scss file.
+ */
+
+// Invisible modifier (can be inside the view, the button area, ...)
+.o_invisible_modifier {
+ display: none!important;
+}
+
+// Status
+// This should normally be put in fields.scss but these classes are used outside
+// of `.o_field_widget` so it needs to be placed at an upper level.
+.o_status {
+ display: inline-block;
+ height: 12px;
+ width: 12px;
+ border-radius: 6px;
+ vertical-align: middle;
+
+ background-color: gray('300');
+
+ &.o_status_green {
+ background-color: theme-color('success');
+ }
+ &.o_status_red {
+ background-color: theme-color('danger');
+ }
+}
+
+.o_btn-link-as-button {
+ padding: 2px;
+ font-size:12px;
+
+ & > a {
+ margin-bottom: -4px !important;
+ margin-left: 3px;
+ }
+}
+
+// No content helper
+.o_view_nocontent {
+ @include o-position-absolute(30%, 0, 0, 0);
+ pointer-events: none;
+ z-index: 1;
+
+ .o_nocontent_help {
+ @include o-nocontent-empty;
+
+ .o_view_nocontent_smiling_face:before {
+ @extend %o-nocontent-init-image;
+ @include size(120px, 140px);
+ background: transparent url(/web/static/src/img/smiling_face.svg) no-repeat center;
+ }
+
+ .o_view_nocontent_neutral_face:before {
+ @extend %o-nocontent-init-image;
+ @include size(120px, 140px);
+ background: transparent url(/web/static/src/img/neutral_face.svg) no-repeat center;
+ }
+
+ .o_view_nocontent_empty_folder:before {
+ @extend %o-nocontent-empty-document;
+ }
+
+ .o_empty_custom_dashboard {
+ min-height: 327px;
+ margin-left: -$grid-gutter-width/2;
+ margin-top: -$grid-gutter-width/2;
+ padding: 100px 0 0 137px;
+ background: transparent url(/web/static/src/img/graph_background.png) no-repeat 0 0;
+ }
+ }
+}
+
+.o_view_sample_data {
+ .o_list_table {
+ cursor: default !important;
+
+ & > thead .o_list_record_selector {
+ pointer-events: none;
+ }
+ }
+
+ .o_nocontent_help {
+ border-radius: 20%;
+ background-color: #f9f9f9;
+ box-shadow: 0 0 120px 100px #f9f9f9;
+ }
+
+ .o_sample_data_disabled {
+ opacity: 0.33;
+ pointer-events: none;
+ user-select: none;
+ }
+}