This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
calcite-tip.scss
81 lines (67 loc) · 1.53 KB
/
calcite-tip.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
$tip-content-only-width: 100% !default;
$tip-content-width: 70% !default;
$tip-image-frame-width: 25% !default;
$tip-image-max-width: 100% !default;
:host {
@extend %component-host;
position: relative;
display: flex;
flex-flow: column;
background-color: var(--calcite-app-background-clear);
}
@import "../../scss/includes/_component";
@import "../../scss/includes/_header";
.container {
background-color: var(--calcite-app-background);
padding: var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing) var(--calcite-app-cap-spacing);
margin: var(--calcite-app-cap-spacing) var(--calcite-app-side-spacing);
box-shadow: var(--calcite-app-shadow-2);
border-radius: var(--calcite-app-border-radius);
}
:host([selected]) .container {
box-shadow: none;
margin: 0;
padding: 0;
}
.header {
justify-content: flex-end;
}
.header .heading {
padding-left: 0;
padding-right: 0;
}
.container[hidden] {
display: none;
}
.content {
display: flex;
padding-top: var(--calcite-app-cap-spacing-half);
}
.info {
padding: 0 var(--calcite-app-side-spacing);
width: $tip-content-width;
&:only-child {
width: $tip-content-only-width;
padding-left: 0;
padding-right: 0;
}
}
::slotted(p) {
margin-top: 0;
}
::slotted(a) {
color: var(--calcite-app-foreground-link);
@include focus-style-base();
}
::slotted(a:focus) {
@include focus-style-outset();
}
.image-frame {
width: $tip-image-frame-width;
img {
max-width: $tip-image-max-width;
}
}
::slotted(img) {
max-width: $tip-image-max-width;
}