Skip to content

Commit

Permalink
sccs fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroProger committed Jul 31, 2023
1 parent bfcb4d1 commit f9aa5a8
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 21 deletions.
13 changes: 6 additions & 7 deletions src/components/filters/Filters.module.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
@import '../../styles/mixins.scss';

.container {
@apply mb-4 flex flex-col items-start gap-4;
@apply mb-4 flex flex-col items-start justify-center gap-4;

@include md(lg, 'max') {
@apply flex-row;
@include md(md, 'max') {
@apply flex-col items-center;
}

.heading {
@apply text-xl min-w-[150px] border-b-2 pb-3;

@include md(lg, 'max') {
@apply border-b-0 pb-0 min-w-[125px];
@include md(md, 'max') {
@apply min-w-[125px] text-center;
}
}

.filters {
@apply flex flex-row gap-4;

@include md(lg, 'max') {
@apply border-l-2 pl-5;
@include md(md, 'max') {
}
}
}
2 changes: 1 addition & 1 deletion src/components/filters/select/SelectPriorityFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function SelectPriorityFilter() {

return (
<div className="flex flex-col gap-2">
<div className="text-xl">Приоритет</div>
<div className="text-xl text-center md:text-start">Приоритет</div>
<Select
onValueChange={(priority) => {
priority === '-1' ? setPriorityFilter(null) : setPriorityFilter(parseInt(priority))
Expand Down
2 changes: 1 addition & 1 deletion src/components/sorting/PrioritySorting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function PrioritySorting() {

return (
<div className="flex flex-col gap-2">
<div className="text-xl">Приоритет</div>
<div className="text-xl text-center md:text-start">Приоритет</div>
<Select
onValueChange={(priority) => {
setPrioritySorting(priority)
Expand Down
13 changes: 6 additions & 7 deletions src/components/sorting/Sorting.module.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
@import '../../styles/mixins.scss';

.container {
@apply mb-4 flex flex-col items-start gap-4;
@apply mb-4 flex flex-col items-start justify-center gap-4;

@include md(lg, 'max') {
@apply flex-row;
@include md(md, 'max') {
@apply flex-col items-center;
}

.heading {
@apply text-xl min-w-[150px] border-b-2 pb-3;

@include md(lg, 'max') {
@apply border-b-0 pb-0 min-w-[125px];
@include md(md, 'max') {
@apply min-w-[125px] text-center;
}
}

.sorts {
@apply flex flex-row gap-4;

@include md(lg, 'max') {
@apply border-l-2 pl-5;
@include md(md, 'max') {
}
}
}
6 changes: 6 additions & 0 deletions src/screens/notes/Notes.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
flex-basis: 300px;

@include md(lg, 'max') {
@apply flex-row gap-8 justify-center;
flex-basis: 0;
}

@include md(md, 'max') {
@apply flex flex-col gap-4;
flex-basis: 0;
}
}
Expand Down
12 changes: 7 additions & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ module.exports = {
},
},
screens: {
md: { max: '900px' },
'md-min': { min: '900px' },
'md-header': { max: '768px' },
sm: { min: '600px' },
xs: { max: '500px' },
xs: { min: '420px' },
sm: { min: '660px' },
md: { min: '768px' },
lg: { min: '980px' },
xl: { min: '1280px' },
'2xl': { min: '1536px' },
'3xl': { min: '1920px' },
},
extend: {
spacing: {
Expand Down

0 comments on commit f9aa5a8

Please sign in to comment.