discourse/app/assets/stylesheets/common/base/d-popover.scss
Joffrey JAFFEUX fad94160c7
FIX: uses tippy for popover (#15409)
Note this commit also introduce a new {{d-popover}} component, example usage:

```hbs
{{#d-popover |state|}}
  {{d-button label="foo.things" class="d-popover-trigger"}}

  <div class="d-popover-content">
    Some content
  <div>
{{/d-popover}}
```
2022-05-02 17:10:26 +02:00

31 lines
609 B
SCSS

$d-popover-background: var(--secondary);
$d-popover-border: var(--primary-medium);
.tippy-box {
color: var(--primary);
background: $d-popover-background;
box-shadow: shadow("card");
border: 1px solid $d-popover-border;
}
.tippy-box[data-placement^="top"] .tippy-svg-arrow > svg {
top: 12px;
}
.tippy-box[data-placement^="bottom"] .tippy-svg-arrow > svg {
top: -10px;
}
.tippy-rounded-arrow {
fill: $d-popover-background;
.svg-arrow {
fill: $d-popover-border;
}
.svg-content {
fill: $d-popover-background;
}
}
[data-tooltip] > *,
[data-popover] > * {
pointer-events: none;
}