style emoji chooser

This commit is contained in:
end-4
2024-02-13 21:17:48 +07:00
parent b86488cada
commit e44b6fdfa1
3 changed files with 43 additions and 15 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ export default {
}; };
// Stuff that don't need to be toggled. And they're async so ugh... // Stuff that don't need to be toggled. And they're async so ugh...
// Bar().catch(print); // Use this to debug the bar // Bar().catch(print); // Use this to debug the bar. Single monitor only.
forMonitors(Bar); forMonitors(Bar);
forMonitors(BarCornerTopleft); forMonitors(BarCornerTopleft);
forMonitors(BarCornerTopright); forMonitors(BarCornerTopright);
+28
View File
@@ -59,6 +59,7 @@ menu > menuitem:hover,
menu>menuitem:focus { menu>menuitem:focus {
background-color: mix($surfaceVariant, $onSurfaceVariant, 90%); background-color: mix($surfaceVariant, $onSurfaceVariant, 90%);
} }
menu>menuitem:active { menu>menuitem:active {
background-color: mix($surfaceVariant, $onSurfaceVariant, 80%); background-color: mix($surfaceVariant, $onSurfaceVariant, 80%);
} }
@@ -93,6 +94,33 @@ tooltip {
border: 1px solid $onSurfaceVariant; border: 1px solid $onSurfaceVariant;
} }
/////////////////////////////////////////
// Emoji Chooser structure
// popover
// ├── box.emoji-searchbar
// │ ╰── entry.search
// ╰── box.emoji-toolbar
// ├── button.image-button.emoji-section
// ├── ...
// ╰── button.image-button.emoji-section
popover {
@include elevation-border-softer;
padding: 0.681rem;
background: $surfaceVariant;
color: $onSurfaceVariant;
border-radius: 1.159rem;
-gtk-outline-radius: 1.159rem;
animation-name: appear;
animation-duration: 40ms;
animation-timing-function: ease-out;
animation-iteration-count: 1;
}
/////////////////////////////////////////
.configtoggle-box { .configtoggle-box {
padding: 0.205rem 0.341rem; padding: 0.205rem 0.341rem;
border: 0.136rem solid transparent; border: 0.136rem solid transparent;
+4 -4
View File
@@ -1,8 +1,8 @@
// Reset // Reset
* { // * {
all: unset; // all: unset;
} // }
// *:not(tooltip) { all: unset; } *:not(popover) { all: unset; }
// Colors // Colors
@import './material'; // Material colors @import './material'; // Material colors