-
Notifications
You must be signed in to change notification settings - Fork 0
/
entity.scss
123 lines (92 loc) · 2.98 KB
/
entity.scss
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
// Import custom Bootstrap variables
@import 'bootstrap-variables';
// Then import Bootstrap with the global defaults so that changes cascade
@import 'bootstrap';
// FontAwesome
$fa-font-path: '/fonts/font-awesome';
@import 'font-awesome/scss/font-awesome';
@import 'compass/css3/border-radius';
@mixin round-corners($radius, $adjust-top: 0) {
&:first-child {
@include border-radius(($radius + $adjust-top) 0 0 $radius);
}
&:last-child {
@include border-radius(0 ($radius + $adjust-top) $radius 0);
}
}
// datatables
// @import './table/datatables';
// native
@import './table/native';
// derby-entities-lib - in here for the Api.render() functions (used by dataTables) since they don't add CSS,
// only using the components adds CSS automatically.
@import 'derby-entities-lib/types/color';
@import 'derby-entities-lib/types/image';
.animate-selection td {
@include round-corners($border-radius-base);
transition-property: all;
transition-duration: .5s;
transition-delay: .3s;
}
.popover {
max-width: none;
white-space: nowrap;
ul {
padding-left: 16px;
}
}
span.highlight {
//background-color: $brand-info;
background-color: $brand-aux-1-med-light;
}
table.table-condensed {
background-color: #fcf8e3;
> thead {
> tr > th {
@include round-corners($border-radius-base);
border: 0;
background-color: $brand-primary;
}
}
> tbody {
// table borders
> tr {
> td {
border-top: 1px dotted $brand-primary-light; // TODO: try opacify() with solid/double
border-bottom: 1px dotted $brand-primary;
}
&:last-child > td {
border-bottom-style: solid;
}
}
> tr:not(.child) {
// cursor
> td:not(.actions):not(#{$empty-table}):not(.control) {
cursor: pointer;
}
// hover, selected, and round borders
&:hover,
&.selected {
> td:not(#{$empty-table}) {
@supports (-webkit-appearance:none) {
border-top: 1px solid $brand-primary-light; // solid is more specific than dotted
border-bottom: 1px solid $brand-primary-light;
@include round-corners($border-radius-base, 1px);
}
@supports (-moz-appearance:none) {
border-top: hidden;
border-bottom: hidden;
@include round-corners($border-radius-base);
}
color: $brand-primary-light;
}
}
&.selected > td:not(#{$empty-table}) {
background-color: $table-bg-selected;
}
&:hover > td:not(#{$empty-table}) {
background-color: $table-bg-hover;
}
}
}
}