summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/styles/components/Table.scss
blob: 04209f0a7d5850e48a4bc284dbad40e8ac666e33 (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
@import "../../styles/mixins";

.stripped{
  tbody tr:nth-child(even){
    background: material-color('grey', '100');
  }
}

.hover{
  tbody tr:hover{
    background: material-color('grey', '200');
  }
}

.bordered{
  thead tr{
    background: material-color('grey', '200');
  }
  td, th{
    border: 1px solid material-color('grey', '300');
  }
  tr td, tr th{
    &:first-child{
      border-left: none
    }
    &:last-child{
      border-right: none
    }
  }
}

table.small{
  tr{
    height: 24px;
    td, th{
      padding: 4px 10px;
      font-size: 12px;
    }
  }
}

table.medium{
  tr{
    height: 48px;
    td, th{
      padding: 4px 56px 4px 24px;
      font-size: 14px;
    }
  }
}

table.big{
  tr{
    height: 64px;
    td, th{
      padding: 8px 56px 8px 24px;
      font-size: 18px;
    }
  }
}

.nodata{
  text-align: center;
  padding: 10px 10px 40px;
  font-size: 14px;
  line-height: 16px;
  color: material-color('grey', '500');
  svg{
    position: relative;
    top: 5px;
    width: 22px;
    margin: 0 6px;
    fill: material-color('grey', '500');
  }
}

.hideAction{
  display: none !important;
}

.tableCrud{
  table-layout: fixed;
  .hiddenField{
    opacity: 0;
    position: absolute;
  }
  .editing{
    background: material-color('lime', '50');
    td .crudInput{
      &:before{
        opacity: 1;
      }
      > * {
        &:before, &:after{
          opacity: 1;
        } 
      }
      svg, button {
        visibility: visible;
      }
      input[type="text"],
      input[type="number"],
      input[type="email"]{
        width: 100%;
      }
    }
  }
  th{
    padding: 0 15px;
  }
  td{
    padding: 0 15px;
    &.toggleCell{
      position: relative;
    }
    vertical-align: middle;
    .coverReadonly{
      width: 100%;
      height: 100%;
      position: absolute;
      z-index: 2;
      display: none;
      &.show{
        display: block;
      }
    }
    .crudInput{
      &:before{
        opacity: 0;
      }
      color: material-color('grey', '900');
      > * > input {
        color: material-color('grey', '900');
        &:before, &:after{
          opacity: 0;
        } 
      }
      svg, button {
        visibility: hidden;
      }
    }
  }
  td [disabled], td[disabled]:hover{
    border: none !important;
    box-shadow: none;
    cursor: text;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
  }
}