cookie-dialog-monster/packages/browser-extension/src/styles/popup.css

106 lines
1.8 KiB
CSS
Raw Normal View History

:root {
--color-error: #cc0000;
2022-05-24 21:31:59 +00:00
--color-primary: #3dd9eb;
--color-secondary: #34495e;
--color-success: #5cb85c;
2022-05-24 21:31:59 +00:00
--color-tertiary: #6b7280;
--color-warning: #ffdf00;
--color-white: #ffffff;
}
body {
box-sizing: border-box;
2022-05-24 21:31:59 +00:00
color: var(--color-tertiary);
display: flex;
flex-direction: column;
font-family: Inter, Arial, Helvetica, sans-serif;
width: 320px;
}
body * {
box-sizing: border-box;
}
2022-05-24 21:31:59 +00:00
footer {
background-color: var(--color-secondary);
font-size: 12px;
height: 4px;
2022-05-24 21:31:59 +00:00
margin-top: auto;
text-align: center;
}
header {
align-items: center;
background-color: var(--color-secondary);
color: var(--color-white);
display: flex;
font-size: 16px !important;
height: 48px;
2022-05-24 21:31:59 +00:00
justify-content: space-between;
padding: 0 16px;
2022-05-24 21:31:59 +00:00
}
main {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
padding: 16px;
}
popup-button {
border-radius: 4px;
cursor: pointer;
display: grid;
font-size: 14px;
gap: 16px;
grid-template-rows: repeat(2, 1fr);
height: 136px;
justify-items: center;
outline: none;
padding: 8px;
text-align: center;
transition: 0.4s;
width: 100%;
word-break: break-word;
}
popup-button:focus,
popup-button:hover {
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}
popup-button > span {
align-self: flex-start;
}
popup-button > svg {
align-self: flex-end;
}
strong {
font-weight: bold;
}
#power-option {
2022-05-24 21:31:59 +00:00
color: var(--color-white);
word-break: break-all;
}
#power-option[data-value='off'] {
background-color: var(--color-error);
}
#power-option[data-value='on'] {
background-color: var(--color-success);
}
#rate-option > svg {
2022-05-24 21:31:59 +00:00
transition: 0.4s;
}
#rate-option:focus > svg,
#rate-option:hover > svg {
color: var(--color-warning);
fill: var(--color-warning);
}