/
toolbar.scss
103 lines (85 loc) · 1.95 KB
/
toolbar.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
// load reusable components
@import "i4p/mixins";
@import "i4p/constants";
// create sprites for toolbar
$i4p-toolbar-sprite-dimensions: true;
@import "project_sheet/i4p-toolbar/*.png"; // */
@include all-i4p-toolbar-sprites;
.project-toolbar {
ul {
margin: 0;
}
@include border-radius(0 $sizeRadiusSmall $sizeRadiusSmall 0);
@include i4p-box-shadow-bottomleft;
@include i4p-sprite('sheet');
background-color: $colorDarkGrey;
display: block;
min-height: 120px;
position: fixed;
top: 20%;
min-width: 40px;
z-index: 90;
// FIXME define a reusable tooltip + mixin
.i4p-tooltip {
position: relative;
&:after {
@include i4p-transition;
content: attr(data-tooltip);
opacity: 0;
}
&:hover {
&:after {
opacity: 1;
}
}
&.i4p-tooltip-round-black {
&:after {
@include border-radius($sizeRadiusBig);
position: absolute;
display: block;
height: 20px;
color: white;
left: -100px;
top: -$sizePaddingSmall;
background-color: $colorDarkGrey;
padding: $sizePaddingSmall;
padding-left: $sizePaddingMedium;
padding-right: $sizePaddingMedium;
}
&:hover {
&:after {
left: 38px;
}
}
}
}
ul {
li {
@include i4p-transition;
padding: $sizeMarginSmall;
padding-top: $sizeMarginSmall * 1.5;
padding-bottom: $sizeMarginSmall * 1.5;
padding-left: $sizeMarginSmall * 1.5;
border-top: 1px solid lighten($colorDarkGrey,10%);
border-bottom: 1px solid darken($colorDarkGrey,10%);
display: block;
&:first-child {
@include border-radius(0 $sizeRadiusSmall 0 0);
}
&:last-child {
@include border-radius(0 0 $sizeRadiusSmall 0);
}
&:hover {
border-bottom: 1px solid transparent;
border-top: 1px solid transparent;
background-color: darken($colorDarkGrey,3%);
}
a {
display: block;
}
}
}
}
@media screen and (max-width:1050px) {
.project-toolbar { display:none }
}