Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions popover-api/popover-hint/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ body {
border-radius: 4px;
background: #eee;
flex: 1;
position: relative; /* 1 */
}

#button-bar button:hover,
Expand All @@ -55,18 +56,17 @@ body {
}

#button-bar button:active {
box-shadow: inset 1px 1px 2px #333, inset -1px -1px 2px #eee;
box-shadow:
inset 1px 1px 2px #333,
inset -1px -1px 2px #eee;
}

/* Styling auto popovers */

[popover="auto"] {
inset: unset;
position: absolute;
bottom: calc(anchor(top) + 20px);
justify-self: anchor-center;
margin: 0;

position-area: top;
margin-bottom: 15px;
width: 200px;
text-align: center;
padding: 8px;
Expand Down Expand Up @@ -94,17 +94,19 @@ body {
}

[popover="auto"] button:active {
box-shadow: inset 1px 1px 2px #333, inset -1px -1px 2px #eee;
box-shadow:
inset 1px 1px 2px #333,
inset -1px -1px 2px #eee;
}

/* Styling hint popovers */

[popover="hint"] {
inset: unset;
position: absolute;
position-anchor: auto;
margin: 0; /* reset popover default */
top: calc(anchor(bottom) + 5px);
justify-self: anchor-center;
margin: 0;

padding: 8px;
border-radius: 6px;
Expand Down