feat: adapt portfolio sections for smaller screens
This commit is contained in:
@@ -84,12 +84,9 @@
|
||||
line-height: var(--line-height-label-small);
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.badgePill:hover {
|
||||
border-color: var(--accent-default);
|
||||
color: var(--text-primary);
|
||||
transition:
|
||||
color var(--motion-duration-fast) ease,
|
||||
border-color var(--motion-duration-fast) ease;
|
||||
}
|
||||
|
||||
.toolsBlock {
|
||||
@@ -113,16 +110,15 @@
|
||||
border: 1px solid var(--border-default);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 16px 8px;
|
||||
transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
|
||||
transition:
|
||||
opacity var(--motion-duration-default) ease,
|
||||
filter var(--motion-duration-default) ease,
|
||||
border-color var(--motion-duration-fast) ease,
|
||||
box-shadow var(--motion-duration-default) ease,
|
||||
transform var(--motion-duration-default) var(--motion-ease-out);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.toolTile:hover {
|
||||
border-color: var(--accent-default);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 8px 24px var(--shadow-color);
|
||||
}
|
||||
|
||||
.toolDimmed {
|
||||
opacity: 0.35;
|
||||
filter: grayscale(0.8);
|
||||
@@ -168,3 +164,87 @@
|
||||
[data-theme="dark"] .toolTile {
|
||||
background-color: var(--bg-raised);
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.toolsGrid {
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.toolTile {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.skillsSection {
|
||||
padding-top: var(--space-8);
|
||||
padding-bottom: var(--space-9);
|
||||
}
|
||||
|
||||
.mainCard {
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
.skillsGrid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
column-gap: var(--space-6);
|
||||
}
|
||||
|
||||
.toolsGrid {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.filterTabsRow {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.mainCard {
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
||||
.skillsGrid {
|
||||
grid-template-columns: 1fr;
|
||||
row-gap: var(--space-5);
|
||||
}
|
||||
|
||||
.toolsGrid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.toolTile {
|
||||
height: 124px;
|
||||
padding: var(--space-3) var(--space-2);
|
||||
}
|
||||
|
||||
.toolIconContainer {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
}
|
||||
|
||||
.filterTabsRow {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
.filterButton {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.badgePill:hover {
|
||||
border-color: var(--accent-default);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.toolTile:hover {
|
||||
border-color: var(--accent-default);
|
||||
box-shadow: 0 8px 24px var(--shadow-color);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user