mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-01-30 09:48:12 +01:00
199 lines
4.1 KiB
SCSS
199 lines
4.1 KiB
SCSS
@use "../styles/fonts";
|
|
@use "../styles/reset";
|
|
@use "../styles/variables";
|
|
|
|
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;
|
|
}
|
|
|
|
&__card {
|
|
background: variables.$cardBg;
|
|
border-radius: variables.$radiusLg;
|
|
padding: 18px;
|
|
margin-bottom: 14px;
|
|
box-shadow: variables.$shadowMd;
|
|
border: 1px solid variables.$border;
|
|
}
|
|
|
|
&__card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
&__card-title {
|
|
font-size: 11px;
|
|
font-weight: variables.$bold;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
color: variables.$skyBlue;
|
|
}
|
|
|
|
&__tab-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
&__favicon {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: variables.$radiusMd;
|
|
flex-shrink: 0;
|
|
background: variables.$greyWhite;
|
|
object-fit: cover;
|
|
border: 1px solid variables.$border;
|
|
}
|
|
|
|
&__favicon-placeholder {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: variables.$radiusMd;
|
|
background: linear-gradient(135deg, variables.$primary 0%, #8b5cf6 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: variables.$white;
|
|
font-size: 18px;
|
|
font-weight: variables.$bold;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
&__tab-details {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
&__tab-title {
|
|
font-size: 14px;
|
|
font-weight: variables.$semibold;
|
|
color: variables.$black;
|
|
margin-bottom: 4px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
&__tab-url {
|
|
font-size: 12px;
|
|
color: variables.$skyBlue;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__btn {
|
|
width: 100%;
|
|
padding: 11px 16px;
|
|
font-size: 13px;
|
|
font-weight: variables.$semibold;
|
|
border: none;
|
|
border-radius: variables.$radiusMd;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: variables.$shadowMd;
|
|
}
|
|
|
|
&:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
&--primary {
|
|
background: linear-gradient(135deg, variables.$primary 0%, variables.$primaryDark 100%);
|
|
color: variables.$white;
|
|
}
|
|
|
|
&--secondary {
|
|
background: variables.$greyWhite;
|
|
color: variables.$black;
|
|
border: 1px solid variables.$border;
|
|
|
|
&:hover {
|
|
background: #eef2f7;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__footer {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
&__footer-btn {
|
|
flex: 1;
|
|
padding: 12px 10px;
|
|
font-size: 12px;
|
|
font-weight: variables.$semibold;
|
|
border: none;
|
|
border-radius: variables.$radiusMd;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: variables.$shadowMd;
|
|
}
|
|
|
|
&--settings {
|
|
background: linear-gradient(135deg, variables.$primary 0%, #8b5cf6 100%);
|
|
color: variables.$white;
|
|
}
|
|
|
|
&--github {
|
|
background: linear-gradient(135deg, #24292e 0%, #1a1a1a 100%);
|
|
color: variables.$white;
|
|
}
|
|
|
|
&--support {
|
|
background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
|
|
color: variables.$white;
|
|
}
|
|
}
|
|
}
|