tutu/src/material/material.module.css

73 lines
1.2 KiB
CSS
Raw Normal View History

2024-07-14 12:28:44 +00:00
.surface {
background-color: var(--tutu-color-surface);
color: var(--tutu-color-on-surface);
}
.touchTarget {
min-width: 44px;
min-height: 44px;
cursor: pointer;
}
.button {
2024-08-05 07:33:00 +00:00
composes: buttonText from "./typography.module.css";
2024-07-14 12:28:44 +00:00
composes: touchTarget;
border: none;
background-color: transparent;
color: var(--tutu-color-primary);
font-family: inherit;
2024-08-05 07:33:00 +00:00
&:focus,
&:hover,
&:focus-visible {
background-color: var(--tutu-color-surface-dd);
2024-07-14 12:28:44 +00:00
}
&.pressed {
2024-08-05 07:33:00 +00:00
background-color: var(--tutu-color-surface-d);
2024-07-14 12:28:44 +00:00
}
&.raised {
2024-08-05 07:33:00 +00:00
background-color: var(--tutu-color-primary);
color: var(--tutu-color-on-primary);
2024-07-14 12:28:44 +00:00
}
2024-08-05 07:33:00 +00:00
&:disabled,
&[aria-disabled]:not([aria-disabled="false"]) {
color: #9e9e9e;
2024-07-14 12:28:44 +00:00
2024-08-05 07:33:00 +00:00
&:focus,
&:hover,
&:focus-visible {
background-color: transparent;
}
2024-07-14 12:28:44 +00:00
}
2024-08-05 07:33:00 +00:00
.toolbar &,
.appbar & {
2024-07-14 12:28:44 +00:00
height: 100%;
margin-block: 0;
padding-block: 0;
border-radius: 0;
}
.appbar & {
color: var(--tutu-color-on-primary);
2024-08-05 07:33:00 +00:00
&:focus,
&:hover,
&:focus-visible {
2024-07-14 12:28:44 +00:00
background-color: var(--tutu-color-primary-ll);
}
&.pressed {
background-color: var(--tutu-color-primary-l);
}
}
.toolbar & {
color: var(--tutu-color-on-surface);
}
}