Skip to content

Commit f31eea8

Browse files
authored
IBX-9374: stored copied link clipboard (#1431)
1 parent a164b65 commit f31eea8

File tree

3 files changed

+55
-84
lines changed

3 files changed

+55
-84
lines changed

src/bundle/Resources/public/scss/_custom.tooltip.scss

Lines changed: 7 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -62,99 +62,22 @@
6262
box-shadow: 0 calculateRem(4px) calculateRem(6px) rgba(135, 135, 135, 0.35);
6363
}
6464

65-
&--ground-dark {
66-
.ibexa-tooltip {
67-
&__inner {
68-
color: $ibexa-color-white;
69-
background-color: $ibexa-color-complementary-strong;
70-
}
71-
}
72-
73-
&.ibexa-tooltip {
74-
&.bs-tooltip-top,
75-
&[data-popper-placement='top'] {
76-
.ibexa-tooltip__arrow {
77-
&::before {
78-
border-top-color: $ibexa-color-complementary-strong;
79-
}
80-
}
81-
}
82-
83-
&.bs-tooltip-end,
84-
&[data-popper-placement='right'] {
85-
.ibexa-tooltip__arrow {
86-
&::before {
87-
border-right-color: $ibexa-color-complementary-strong;
88-
}
89-
}
90-
}
91-
92-
&.bs-tooltip-bottom,
93-
&[data-popper-placement='bottom'] {
94-
.ibexa-tooltip__arrow {
95-
&::before {
96-
border-bottom-color: $ibexa-color-complementary-strong;
97-
}
98-
}
99-
}
65+
&--dark {
66+
@include tooltip-variant($ibexa-color-white, $ibexa-color-dark);
67+
}
10068

101-
&.bs-tooltip-start,
102-
&[data-popper-placement='left'] {
103-
.ibexa-tooltip__arrow {
104-
&::before {
105-
border-left-color: $ibexa-color-complementary-strong;
106-
}
107-
}
108-
}
109-
}
69+
&--ground-dark {
70+
@include tooltip-variant($ibexa-color-white, $ibexa-color-complementary-strong);
11071
}
11172

11273
&--navigation {
74+
@include tooltip-variant($ibexa-color-dark, $ibexa-color-complementary-primary-400);
75+
11376
.ibexa-tooltip {
11477
&__inner {
115-
color: $ibexa-color-dark;
116-
background-color: $ibexa-color-complementary-primary-400;
11778
border-color: transparent;
11879
box-shadow: 0 calculateRem(2px) calculateRem(8px) rgba($ibexa-color-dark, 0.15);
11980
}
12081
}
121-
122-
&.ibexa-tooltip {
123-
&.bs-tooltip-top,
124-
&[data-popper-placement='top'] {
125-
.ibexa-tooltip__arrow {
126-
&::before {
127-
border-top-color: $ibexa-color-complementary-primary-400;
128-
}
129-
}
130-
}
131-
132-
&.bs-tooltip-end,
133-
&[data-popper-placement='right'] {
134-
.ibexa-tooltip__arrow {
135-
&::before {
136-
border-right-color: $ibexa-color-complementary-primary-400;
137-
}
138-
}
139-
}
140-
141-
&.bs-tooltip-bottom,
142-
&[data-popper-placement='bottom'] {
143-
.ibexa-tooltip__arrow {
144-
&::before {
145-
border-bottom-color: $ibexa-color-complementary-primary-400;
146-
}
147-
}
148-
}
149-
150-
&.bs-tooltip-start,
151-
&[data-popper-placement='left'] {
152-
.ibexa-tooltip__arrow {
153-
&::before {
154-
border-left-color: $ibexa-color-complementary-primary-400;
155-
}
156-
}
157-
}
158-
}
15982
}
16083
}

src/bundle/Resources/public/scss/_mixins.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@import 'mixins/drag-and-drop';
1414
@import 'mixins/spinner';
1515
@import 'mixins/tab-selector';
16+
@import 'mixins/tooltips';
1617

1718
@mixin datetime-field() {
1819
&.is-invalid {
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@mixin tooltip-variant($color, $background-color) {
2+
.ibexa-tooltip {
3+
&__inner {
4+
color: $color;
5+
background-color: $background-color;
6+
border-color: $ibexa-color-dark;
7+
}
8+
}
9+
10+
&.ibexa-tooltip {
11+
&.bs-tooltip-top,
12+
&[data-popper-placement='top'] {
13+
.ibexa-tooltip__arrow {
14+
&::before {
15+
border-top-color: $background-color;
16+
}
17+
}
18+
}
19+
20+
&.bs-tooltip-end,
21+
&[data-popper-placement='right'] {
22+
.ibexa-tooltip__arrow {
23+
&::before {
24+
border-right-color: $background-color;
25+
}
26+
}
27+
}
28+
29+
&.bs-tooltip-bottom,
30+
&[data-popper-placement='bottom'] {
31+
.ibexa-tooltip__arrow {
32+
&::before {
33+
border-bottom-color: $background-color;
34+
}
35+
}
36+
}
37+
38+
&.bs-tooltip-start,
39+
&[data-popper-placement='left'] {
40+
.ibexa-tooltip__arrow {
41+
&::before {
42+
border-left-color: $background-color;
43+
}
44+
}
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)