Skip to content

Commit 63f336e

Browse files
authored
Merge pull request #50 from topcoder-platform/issues-544
Issues-544: Tooltips
2 parents f8849e2 + 53ce204 commit 63f336e

File tree

5 files changed

+88
-4
lines changed

5 files changed

+88
-4
lines changed

design/custom.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

design/custom.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scss/base/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
@import 'table';
2525
@import 'group';
2626
@import 'lists';
27-
@import 'utilities';
27+
@import 'utilities';
28+
@import 'tooltip';

src/scss/base/_tooltip.scss

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
.tooltip {
2+
position: relative;
3+
font-size: $global-medium_fontSize;
4+
font-family: $global-body_fontFamily;
5+
font-weight: normal;
6+
7+
&:hover .tooltiptext {
8+
visibility: visible;
9+
}
10+
.tooltiptext {
11+
visibility: hidden;
12+
line-height:16px;
13+
padding-top: 6px;
14+
padding-bottom: 6px;
15+
background-color: $global-color_grey;
16+
color: $global-color_white;
17+
text-align: center;
18+
border-radius: 5px;
19+
position: absolute;
20+
z-index: 1;
21+
bottom: 100%;
22+
left: 50%;
23+
&::after {
24+
content: "";
25+
position: absolute;
26+
top: 100%;
27+
left: 50%;
28+
margin-left: 5px;
29+
border-width: 5px;
30+
border-style: solid;
31+
border-color: $global-color_grey transparent transparent transparent;
32+
}
33+
}
34+
}
35+
36+
.tooltip .tooltiptext{
37+
width: 109px;
38+
padding-right: 14px;
39+
padding-left:13px;
40+
margin-left: -64px;
41+
margin-bottom: 3px;
42+
text-transform: none;
43+
44+
@media screen and (max-width: 992px) {
45+
margin-left: -69px;
46+
&::after {
47+
margin-left: 9px;
48+
}
49+
}
50+
51+
}
52+
.isWatching.tooltip .tooltiptext{
53+
width: 155px;
54+
padding-left: 13px;
55+
padding-right: 9px;
56+
margin-left: -110px;
57+
margin-bottom: 6px;
58+
&::after {
59+
margin-left: 27px;
60+
}
61+
62+
@media screen and (max-width: 992px) {
63+
margin-left: -115px;
64+
&::after {
65+
margin-left: 32px;
66+
}
67+
}
68+
}
69+
70+
.GroupOptions.OptionsMenu.ButtonGroup {
71+
.tooltip {
72+
padding-top: 10px;
73+
}
74+
}
75+
.GroupOptions.OptionsMenu.ButtonGroup {
76+
.isWatching.tooltip {
77+
padding-top: 3px;
78+
padding-left: 8px;
79+
}
80+
}

src/scss/pages/_group.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ body.Group {
2121
.Group-Header.NoBanner {
2222
min-height: 1px;
2323
display: flex;
24+
.GroupOptions {
25+
float: right;
26+
}
2427
.Group-Info {
2528
margin: 0px;
2629
padding-left: 0;

0 commit comments

Comments
 (0)