web-extension-starter/source/Popup/Popup.module.scss

111 lines
2.0 KiB
SCSS

@use "../styles/fonts";
@use "../styles/reset";
@use "../styles/variables";
:global(body) {
color: variables.$black;
background: linear-gradient(180deg, variables.$greyWhite 0%, #eef2f7 100%);
width: 100%;
font-family: variables.$fontFamily;
}
.popup {
width: 380px;
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 20px;
padding-bottom: 16px;
border-bottom: 1px solid variables.$border;
}
.title {
font-size: 18px;
font-weight: variables.$bold;
letter-spacing: -0.3px;
color: variables.$black;
background: linear-gradient(135deg, variables.$primary 0%, #8b5cf6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.greeting {
font-size: 13px;
color: variables.$skyBlue;
margin-top: 6px;
font-weight: variables.$medium;
}
.tabCard {
margin-bottom: 14px;
}
.statsCard {
background: white;
border-radius: 12px;
padding: 16px;
margin-bottom: 14px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.statsTitle {
font-size: 13px;
font-weight: variables.$semibold;
color: variables.$skyBlue;
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.statsGrid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.statItem {
display: flex;
flex-direction: column;
align-items: center;
padding: 8px;
background: variables.$greyWhite;
border-radius: 8px;
}
.statValue {
font-size: 20px;
font-weight: variables.$bold;
color: variables.$primary;
}
.statLabel {
font-size: 11px;
color: variables.$skyBlue;
margin-top: 4px;
}
.visitCard {
display: flex;
justify-content: space-between;
align-items: center;
background: white;
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 14px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.visitLabel {
font-size: 13px;
color: variables.$skyBlue;
}
.visitCount {
font-size: 18px;
font-weight: variables.$bold;
color: variables.$primary;
}