- Introduced typography styles in _typography.scss for headings, paragraphs, blockquotes, and horizontal rules. - Added utility classes in _utils.scss for card styling and clearfix. - Updated layout.scss to include new typography and utility styles. - Defined common CSS variables in _common.scss for consistent theming. - Created dark and light theme variables in _dark.scss and _light.scss respectively. - Integrated Tailwind CSS with custom configurations in tailwind.config.js and postcss.config.js. - Implemented database migrations for contact and contact_persons tables. - Added data fixtures for generating sample contact data. - Developed Contact and ContactPerson entities with appropriate validation and serialization. - Enhanced ContactRepository with search and type filtering methods.
202 lines
4.4 KiB
SCSS
202 lines
4.4 KiB
SCSS
@use 'mixins' as *;
|
|
|
|
.layout-topbar {
|
|
position: fixed;
|
|
height: 4rem;
|
|
z-index: 997;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
padding: 0 2rem;
|
|
background-color: var(--surface-card);
|
|
transition: left var(--layout-section-transition-duration);
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.layout-topbar-logo-container {
|
|
width: 20rem;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.layout-topbar-logo {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 1.5rem;
|
|
border-radius: var(--content-border-radius);
|
|
color: var(--text-color);
|
|
font-weight: 500;
|
|
gap: 0.5rem;
|
|
|
|
svg {
|
|
width: 3rem;
|
|
}
|
|
|
|
&:focus-visible {
|
|
@include focused();
|
|
}
|
|
}
|
|
|
|
.layout-topbar-action {
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 50%;
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
color: var(--text-color);
|
|
transition: background-color var(--element-transition-duration);
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: var(--surface-hover);
|
|
}
|
|
|
|
&:focus-visible {
|
|
@include focused();
|
|
}
|
|
|
|
i {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
span {
|
|
font-size: 1rem;
|
|
display: none;
|
|
}
|
|
|
|
&.layout-topbar-action-highlight {
|
|
background-color: var(--primary-color);
|
|
color: var(--primary-contrast-color);
|
|
}
|
|
}
|
|
|
|
.layout-menu-button {
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.layout-topbar-menu-button {
|
|
display: none;
|
|
}
|
|
|
|
.layout-topbar-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.layout-topbar-menu-content {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.layout-config-menu {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 991px) {
|
|
.layout-topbar {
|
|
padding: 0 2rem;
|
|
|
|
.layout-topbar-logo-container {
|
|
width: auto;
|
|
}
|
|
|
|
.layout-menu-button {
|
|
margin-left: 0;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.layout-topbar-menu-button {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.layout-topbar-menu {
|
|
position: absolute;
|
|
background-color: var(--surface-overlay);
|
|
transform-origin: top;
|
|
box-shadow:
|
|
0px 3px 5px rgba(0, 0, 0, 0.02),
|
|
0px 0px 2px rgba(0, 0, 0, 0.05),
|
|
0px 1px 4px rgba(0, 0, 0, 0.08);
|
|
border-radius: var(--content-border-radius);
|
|
padding: 1rem;
|
|
right: 2rem;
|
|
top: 4rem;
|
|
min-width: 15rem;
|
|
border: 1px solid var(--surface-border);
|
|
|
|
.layout-topbar-menu-content {
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.layout-topbar-action {
|
|
display: flex;
|
|
width: 100%;
|
|
height: auto;
|
|
justify-content: flex-start;
|
|
border-radius: var(--content-border-radius);
|
|
padding: 0.5rem 1rem;
|
|
|
|
i {
|
|
font-size: 1rem;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
span {
|
|
font-weight: medium;
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.layout-topbar-menu-content {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
}
|
|
|
|
.config-panel {
|
|
.config-panel-label {
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary-color);
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
}
|
|
|
|
.config-panel-colors {
|
|
> div {
|
|
padding-top: 0.5rem;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
|
|
button {
|
|
border: none;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
border-radius: 50%;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
outline-color: transparent;
|
|
outline-width: 2px;
|
|
outline-style: solid;
|
|
outline-offset: 1px;
|
|
|
|
&.active-color {
|
|
outline-color: var(--primary-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.config-panel-settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
}
|