summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-cp2-5422/recipes-phosphor/webui/webui-vue/0077-IBS-custom-styles-_tables.scss.patch
blob: df487173084dd9acf7b5279d842442ce9d24bd51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
From bc759fbb12e038cf7b3d92b56cc91d5e97ed1a2a Mon Sep 17 00:00:00 2001
From: "Andrey V.Kosteltsev" <AKosteltsev@IBS.RU>
Date: Thu, 30 Jun 2022 02:53:43 +0300
Subject: [PATCH] IBS: custom styles _tables.scss

---
 src/assets/styles/bmc/custom/_tables.scss | 59 +++++++++++++++--------
 1 file changed, 38 insertions(+), 21 deletions(-)

diff --git a/src/assets/styles/bmc/custom/_tables.scss b/src/assets/styles/bmc/custom/_tables.scss
index e8b5a832..d73bfdde 100644
--- a/src/assets/styles/bmc/custom/_tables.scss
+++ b/src/assets/styles/bmc/custom/_tables.scss
@@ -3,16 +3,18 @@
   z-index: $zindex-dropdown;
 
   td {
-    border-top: 1px solid gray("300");
-    border-bottom: 1px solid gray("300");
+    border-top: 1px solid $gray-10;
+    border-right: 1px solid $gray-10;
+    border-bottom-width: 0px;
     &:first-of-type {
-      border-left: 1px solid gray("300");
+      border-right: 1px solid $gray-10;
     }
     &:last-of-type {
-      border-right: 1px solid gray("300");
+      border-left: 1px solid $gray-10;
+      border-right-width: 0px;
     }
     vertical-align: middle;
-
+    font-size: 0.875rem;
     // Table action buttons
     .btn-link {
       width: 40px;
@@ -26,19 +28,30 @@
 
   // thead-light added for specificity
   .thead-light th {
+    background-color: $surface-secondary;
     vertical-align: middle;
-    border-top: 1px solid gray("300");
-    border-bottom: 1px solid gray("300");
+    border-top-width: 0px;
+    border-bottom: 1px solid $gray-10;
+    border-right: 1px solid $gray-10;
     &:first-of-type {
-      border-left: 1px solid gray("300");
+      border-right: 1px solid $gray-10;
     }
     &:last-of-type {
-      border-right: 1px solid gray("300");
+      border-left: 1px solid $gray-10;
+      border-right-width: 0px;
     }
-    color: theme-color("dark");
+    text-transform: uppercase;
+    color: $text-primary;
     &:focus {
       outline: none;
     }
+    & > div {
+      font-size: 0.875rem !important;
+    }
+  }
+
+  .custom-switch {
+    width: 100%;
   }
 
   .status-icon svg {
@@ -56,21 +69,24 @@
   }
 
   .b-table-details {
-    background-color: theme-color("light");
+    border-top: 1px solid rgba(26,62,91,.3);
+    background-color: inherit;
     td {
-      padding-left: calc(50px + (#{$table-cell-padding} * 2));
-      padding-right: calc(50px + (#{$table-cell-padding} * 2));
+      padding-left: $table-cell-padding;
+      padding-right: $table-cell-padding;
     }
     dl {
       margin: 0;
     }
     dt {
+      font-size: 0.75rem !important;
       float: left;
       clear: left;
       margin-right: $spacer / 2;
     }
     dd {
-      line-height: 1.2
+      font-size: 0.75rem !important;
+      line-height: 1.5
     }
   }
 
@@ -78,12 +94,13 @@
     width: 50px;
     .btn {
       padding: 0;
-      width: 50px;
+      width: 40px;
     }
     svg {
       fill: theme-color("dark");
     }
   }
+
   .b-table-sort-icon-left {
     background-position: left calc(1.5rem / 2) center !important;
     padding-left: calc(1.2rem + 0.65em) !important;
@@ -104,12 +121,12 @@
 // Table stacked style for small screen only
 @include media-breakpoint-down(xs) {
   .b-table-stacked-sm {
-    border: 1px solid gray("300");
+    border: 1px solid $gray-10;
 
     tr {
 
       &:not(:first-child) > td[aria-colindex='1'] {
-        border-top: 1px solid gray("300");
+        border-top: 1px solid $gray-10;
         padding-top: 0.625rem;
       }
 
@@ -157,15 +174,15 @@
   .table.b-table.b-table-stacked-sm > tbody > tr > [data-label] {
     &::before {
       text-align: left;
-      padding-left: $spacer /2;
+      padding-left: $spacer / 2;
     }
 
     > div {
       padding-left: 1rem;
     }
   }
+}
 
-  .table.b-table.b-table-stacked-sm > tbody > tr > :first-child {
-    border-top-width: 1px;
-  }
+.table-responsive, .table-responsive-md {
+  margin-top: 0.5rem;
 }
-- 
2.35.1