Skip to content

Commit

Permalink
Merge pull request #11 from JAS-lzn/responsive-ish
Browse files Browse the repository at this point in the history
more responsive styles
  • Loading branch information
JAS-lzn authored Jan 14, 2024
2 parents f84fe10 + 9bb3555 commit af4312a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 315 deletions.
40 changes: 28 additions & 12 deletions static/styles.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

.body-holder{
width: 90vw;
margin: auto;
}

@media (width <= 350px){
.card-grid{
grid-template-columns: repeat(1, 1fr);
};
}


@media (350px <= width <= 900px){
.card-grid{
grid-template-columns: repeat(2, 1fr);
};
}


@media (900px <= width){
.card-grid{
grid-template-columns: repeat(5, 1fr);
};
}


.card-grid{
padding:2rem;
margin: auto;
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: auto;
column-gap: 2vw;
row-gap: 2vh;
Expand Down Expand Up @@ -47,18 +63,18 @@
}

.selected-selector{
background-color:teal;
background-color:teal !important;
}

.filter-button{
padding-left: 0.5rem/* 8px */;
padding-right: 0.5rem/* 8px */;
padding-top: 0.25rem/* 4px */;
padding-bottom: 0.25rem/* 4px */;
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
--tw-border-opacity: 1;
border-color: rgb(107 114 128 / var(--tw-border-opacity));
border-width: 2px;
border-radius: 0.25rem/* 4px */;
border-radius: 0.25rem;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
Expand All @@ -82,7 +98,7 @@
display: grid;
text-align: left;
padding-left: .25vw;
width: 15vw;
width: 10em;
top: 0px;
left: 0px;
z-index: 40;
Expand Down
304 changes: 1 addition & 303 deletions static/tailwind_generated.css
Original file line number Diff line number Diff line change
Expand Up @@ -625,308 +625,6 @@ video {
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.body-holder{
width: 90vw;
margin: auto;
}

.card-grid{
padding:2rem;
margin: auto;
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: auto;
-moz-column-gap: 2vw;
column-gap: 2vw;
row-gap: 2vh;
}

#banner{
background-color: rgb(155 118 118);
}

.card{
width: 100%;
font-size: small;
background-color: #e6f2ff;
padding: .5rem;
}

.hidden{
display: none !important;
}

.card > p {
margin-top: 1vh;
}

.card > p > a {
color: #335880;
}

.filter-holder{
text-align: center;
width: -moz-fit-content;
width: fit-content;
padding: 0 .5em;
}

.filter-holder > *{
margin: 1em .125em;
}

.selected-selector{
background-color:teal;
}

.filter-button{
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
--tw-border-opacity: 1;
border-color: rgb(107 114 128 / var(--tw-border-opacity));
border-width: 2px;
border-radius: 0.25rem;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}

.filter-selected{
background-color: rgb(154, 156, 160) !important;
}

.filter-button:hover{
--tw-bg-opacity: 1;
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
}

.toggle-holder{
padding: 1vh 2vw;
}

.subject-selector{
position: fixed;
display: grid;
text-align: left;
padding-left: .25vw;
width: 15vw;
top: 0px;
left: 0px;
z-index: 40;
height: 100vh;
overflow-y: auto;
transition-property: transform;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
--tw-translate-x: -100%;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.borneo{
display: grid;
}

.text-filter{
width: 15em;
margin: 0px auto;
padding: .25em .5em;
}

#filter-parent{
display: grid;
grid-template-rows: 1fr;
grid-template-columns: auto auto;
align-items: center;
}

#filter-parent > p {
text-align: end;
max-width: -moz-fit-content;
max-width: fit-content;
justify-self: right;
}

.filter-label{
padding: .125em 0em
}

#filter-box {
width: -moz-fit-content;
width: fit-content;
margin: 0px auto;
}

.subject-selector.visible{
transform: none;
visibility: visible;
}

.subject-selector > button {
text-align: left;
border-radius: .3rem;
margin: .125vw 0;
padding: 1em;
}

.px-4{
padding-left: 1rem;
padding-right: 1rem;
}
.py-8 {
padding-top: 2rem/* 32px */;
padding-bottom: 2rem/* 32px */;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}

.max-w-screen-md {
max-width: 768px;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.flex {
display: flex;
}
.flex-col {
flex-direction: column;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.my-6 {
margin-top: 1.5rem/* 24px */;
margin-bottom: 1.5rem/* 24px */;
}
.text-4xl {
font-size: 2.25rem/* 36px */;
line-height: 2.5rem/* 40px */;
}
.font-bold {
font-weight: 700;
}
.my-4 {
margin-top: 1rem/* 16px */;
margin-bottom: 1rem/* 16px */;
}
.text-left {
text-align: left;
}
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-feature-settings: normal;
font-variation-settings: normal;
}

*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
margin: 0;
}
.px-3 {
padding-left: 0.75rem/* 12px */;
padding-right: 0.75rem/* 12px */;
}
.py-2 {
padding-top: 0.5rem/* 8px */;
padding-bottom: 0.5rem/* 8px */;
}
.bg-white {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.border {
border-width: 1px;
}
.shadow-sm {
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.border-slate-300 {
--tw-border-opacity: 1;
border-color: rgb(203 213 225 / var(--tw-border-opacity));
}
.placeholder-slate-400::-moz-placeholder {
--tw-placeholder-opacity: 1;
color: rgb(148 163 184 / var(--tw-placeholder-opacity));
}
.placeholder-slate-400::placeholder {
--tw-placeholder-opacity: 1;
color: rgb(148 163 184 / var(--tw-placeholder-opacity));
}
.disabled\:bg-slate-50:disabled {
--tw-bg-opacity: 1;
background-color: rgb(248 250 252 / var(--tw-bg-opacity));
}
.disabled\:text-slate-500:disabled {
--tw-text-opacity: 1;
color: rgb(100 116 139 / var(--tw-text-opacity));
}
.invalid\:border-pink-500:invalid {
--tw-border-opacity: 1;
border-color: rgb(236 72 153 / var(--tw-border-opacity));
Expand Down Expand Up @@ -1037,4 +735,4 @@ blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
font-size: 0.875rem;
line-height: 1.25rem;
}
}
}

0 comments on commit af4312a

Please sign in to comment.