_contextual-help.scss 2.04 KB
Newer Older
Naomi Guyer's avatar
Naomi Guyer committed
1
// using bootstrap popover to style the help content
Pat Kira's avatar
Pat Kira committed
2
span.help {
Pat Kira's avatar
Pat Kira committed
3
4
5
6
    font-size: $font-size-base + 5;
    vertical-align: top;
    padding-left:10px;
    display: inline-block;
Pat Kira's avatar
Pat Kira committed
7

8
    .icon {
9
        color: $help-icon-color;
Naomi Guyer's avatar
Naomi Guyer committed
10
11
12
13
        font-size: 20px;
        opacity: 0.8;
    }
    &:hover {
14
        .icon {
Naomi Guyer's avatar
Naomi Guyer committed
15
16
            opacity:1;
        }
Pat Kira's avatar
Pat Kira committed
17
    }
Naomi Guyer's avatar
Naomi Guyer committed
18
19
20
21
22
23
    .table & {
        margin-top:-6px;
        .icon {
            font-size: 0.9em;
        }
    }
Pat Kira's avatar
Pat Kira committed
24
25
}

Naomi Guyer's avatar
Naomi Guyer committed
26
.contextualHelp {
Pat Kira's avatar
Pat Kira committed
27
28
29
30
31
32
33
    position: absolute;
    z-index: $zindex-popover;
    width: 300px;
    padding: 1px;
    // Reset font and text propertes given new insertion method
    font-family: $font-family-base;
    font-size: $font-size-base;
34
    text-transform: none;
Pat Kira's avatar
Pat Kira committed
35
36
37
38
39
40
41
42
43
44
45
    font-weight: normal;
    line-height: $line-height-base;
    text-align: left;
    background-color: $popover-bg;
    background-clip: padding-box;
    border: 1px solid $popover-fallback-border-color;
    border: 1px solid $popover-border-color;
    border-radius: $border-radius-large;
    padding: 0 14px 8px;
    font-size: $font-size-base - 1;
    @include box-shadow(0 5px 10px rgba(0,0,0,.2));
Naomi Guyer's avatar
Naomi Guyer committed
46

Pat Kira's avatar
Pat Kira committed
47
48
    // Overrides for proper insertion
    white-space: normal;
Naomi Guyer's avatar
Naomi Guyer committed
49

Pat Kira's avatar
Pat Kira committed
50
51
52
53
    .help-dismiss {
        font-size: 16px;
        color: $gray;
    }
Naomi Guyer's avatar
Naomi Guyer committed
54

Pat Kira's avatar
Pat Kira committed
55
56
57
58
59
60
61
    h3 {
        margin: 0 -14px 20px;
        font-size: $font-size-base;
        padding:8px 14px;
        background-color: $popover-title-bg;
        border-bottom: 1px solid darken($popover-title-bg, 5%);
        border-radius: ($border-radius-large - 1) ($border-radius-large - 1) 0 0;
Naomi Guyer's avatar
Naomi Guyer committed
62
63


Pat Kira's avatar
Pat Kira committed
64
    }
Naomi Guyer's avatar
Naomi Guyer committed
65
}
Naomi Guyer's avatar
Naomi Guyer committed
66
67
68
69
70
// Needed to be more specific
table.table td .contextualHelp h3{
    margin: 0 -14px 20px;
    font-size: $font-size-base;
}
71
72
73
74
75
76

.form-select-filter .contextualHelp {
  //  top: 0 !important; //fixes a bug where the contextualhelp displays outside the top of the page. Overrides inline styles
    width: 500px !important;
    max-width:100%;
}
Naomi Guyer's avatar
Naomi Guyer committed
77
78

.input-group.with-help {
Naomi Guyer's avatar
Naomi Guyer committed
79
80
    position: relative;
    padding-right:40px;
Naomi Guyer's avatar
Naomi Guyer committed
81
82
83
84
85
    select:not(:first-child),
    input:not(:first-child) {
        @include border-right-radius(3px);
    }
}