bug fixes

This commit is contained in:
sairaj mote 2020-09-06 02:48:54 +05:30 committed by GitHub
parent 9afffa4966
commit dfb4096eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 986 additions and 834 deletions

View File

@ -1,9 +1,8 @@
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");
* { * {
box-sizing: border-box; box-sizing: border-box;
padding: 0; padding: 0;
margin: 0; margin: 0;
font-family: "Barlow", sans-serif; font-family: "Roboto", sans-serif;
} }
:root { :root {
@ -33,8 +32,35 @@ a {
color: #111; color: #111;
} }
h1 {
font-size: 3.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1rem;
}
h5 {
font-size: 0.8rem;
}
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
font-weight: 600; font-family: "Manrope", sans-serif;
font-weight: 700;
}
p {
line-height: 1.5;
max-width: 60ch;
color: rgba(var(--text-color), 0.9);
} }
button { button {
@ -42,24 +68,24 @@ button {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-transform: uppercase; text-transform: capitalize;
letter-spacing: 0.08em; padding: 0.6rem 1.2rem;
padding: 0.4rem 0.7rem; font-weight: 700;
font-weight: 600;
cursor: pointer; cursor: pointer;
border-radius: 0.2em; border-radius: 0.3rem;
color: var(--accent-color); color: var(--accent-color);
transition: transform 0.3s; transition: transform 0.3s;
border: none; border: none;
background: rgba(var(--text-color), 0.1); background: rgba(var(--text-color), 0.1);
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
font-family: "Manrope", sans-serif;
} }
button:focus { button:focus {
outline: thin solid rgba(var(--text-color-light), 0.4); outline: thin solid rgba(var(--text-color-light), 0.4);
} }
button:disabled { button:disabled {
cursor: default; cursor: default;
background: rgba(var(--text-color-light), 1); background: rgba(var(--text-color), 0.5);
} }
button:disabled ~ .loader { button:disabled ~ .loader {
opacity: 0; opacity: 0;
@ -187,12 +213,6 @@ input:invalid {
stroke-dashoffset: -210; stroke-dashoffset: -210;
} }
} }
p {
line-height: 1.5;
font-family: "Roboto", sans-serif;
color: rgba(var(--text-color), 0.8);
}
.action { .action {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
@ -205,9 +225,8 @@ p {
background: none; background: none;
} }
.action h4 { .action h4 {
font-weight: 500;
padding: 0.5rem 0.8rem; padding: 0.5rem 0.8rem;
font-size: 1rem; font-size: 0.9rem;
clip-path: circle(100%); clip-path: circle(100%);
transition: clip-path 0.3s; transition: clip-path 0.3s;
border-radius: 0.2rem; border-radius: 0.2rem;
@ -265,21 +284,19 @@ p {
display: inline-grid; display: inline-grid;
align-items: center; align-items: center;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
gap: 0.6rem 0.2rem; gap: 0.6rem 0.4rem;
margin-right: 1rem; margin-right: 1rem;
} }
#logo h4 { #logo h4 {
letter-spacing: 0.06rem; letter-spacing: 0.06rem;
word-spacing: 0.12rem; word-spacing: 0.12rem;
margin-top: 0.2rem;
} }
#logo h5 { #logo h5 {
font-family: "Roboto", sans-serif;
font-weight: 400; font-weight: 400;
} }
#logo #main_logo { #logo #main_logo {
height: 1.4rem; height: 1.6rem;
width: 1.4rem; width: 1.6rem;
fill: rgba(var(--text-color), 1); fill: rgba(var(--text-color), 1);
stroke: none; stroke: none;
} }
@ -315,7 +332,7 @@ textarea {
border: 0.1em solid var(--accent-color); border: 0.1em solid var(--accent-color);
} }
.input .placeholder { .input .placeholder {
opacity: 0.7; opacity: 0.6;
font-weight: 500; font-weight: 500;
font-size: 1em; font-size: 1em;
position: absolute; position: absolute;
@ -367,7 +384,6 @@ textarea {
} }
.container-header h2 { .container-header h2 {
flex: 1; flex: 1;
font-weight: 600;
} }
.container-header button { .container-header button {
align-self: center; align-self: center;
@ -437,24 +453,23 @@ form {
margin-left: auto; margin-left: auto;
} }
.popup-container .popup .container-header { .popup-container .popup .container-header {
display: grid; display: flex;
grid-template-columns: auto 1fr auto;
align-items: center; align-items: center;
padding: 0; padding: 0;
gap: 1rem; margin-bottom: 1rem;
margin-bottom: 1.5rem; }
.popup-container .popup .container-header h4 {
flex: 1;
}
.popup-container .popup .container-header button {
width: auto;
} }
.popup-container .popup .container-header .icon { .popup-container .popup .container-header .icon {
cursor: pointer; cursor: pointer;
padding-right: 0.4rem; padding-right: 0.4rem;
margin-right: 0.3rem;
stroke-width: 8; stroke-width: 8;
} }
.popup-container .popup .container-header .btn {
padding: 0.6em 1.2em;
}
.popup-container .popup .container-header h3 {
text-transform: capitalize;
}
.popup-container .popup p { .popup-container .popup p {
margin-bottom: 1.5rem !important; margin-bottom: 1.5rem !important;
} }
@ -464,9 +479,6 @@ form {
} }
#confirmation p, #prompt p { #confirmation p, #prompt p {
margin: 1rem; margin: 1rem;
font-size: 1rem;
font-weight: 500;
color: rgba(var(--rgb-bw), 1) !important;
} }
#confirmation h4, #prompt h4 { #confirmation h4, #prompt h4 {
font-weight: 500; font-weight: 500;
@ -504,7 +516,6 @@ form {
} }
#sign_in_popup p { #sign_in_popup p {
margin-top: 1rem; margin-top: 1rem;
font-size: 0.9rem;
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
#sign_in_popup .input { #sign_in_popup .input {
@ -513,7 +524,6 @@ form {
.primary-btn { .primary-btn {
background: var(--accent-color); background: var(--accent-color);
padding: 0.8em 1.6em;
justify-content: center; justify-content: center;
color: rgba(var(--foreground-color), 1); color: rgba(var(--foreground-color), 1);
} }
@ -598,10 +608,8 @@ form {
} }
#home_page h1 { #home_page h1 {
margin-top: 4vw; margin-bottom: 0;
margin-bottom: 1rem; font-weight: 800;
font-weight: 700;
font-size: 3rem;
} }
#home_page p { #home_page p {
margin-bottom: 3rem; margin-bottom: 3rem;
@ -623,9 +631,10 @@ form {
padding: 1.5rem; padding: 1.5rem;
margin-right: 1rem; margin-right: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
width: 9rem; width: 10rem;
border: solid 1px rgba(var(--text-color), 0.2); box-shadow: 0 1px 0.1rem #00000030, 0 0 0.4rem #00000016;
text-transform: capitalize; text-transform: capitalize;
transition: transform 0.3s;
cursor: pointer; cursor: pointer;
} }
.options-tab .option .icon { .options-tab .option .icon {
@ -636,8 +645,8 @@ form {
margin-bottom: 1rem; margin-bottom: 1rem;
stroke: rgba(var(--text-color), 0.4); stroke: rgba(var(--text-color), 0.4);
} }
.options-tab .option h4 { .options-tab .option:active {
font-weight: 400; transform: scale(0.95);
} }
.options-tab .option:nth-of-type(1) .icon { .options-tab .option:nth-of-type(1) .icon {
background: #ffe5ea; background: #ffe5ea;
@ -681,8 +690,11 @@ form {
background: linear-gradient(rgba(var(--foreground-color), 1) 90%, transparent); background: linear-gradient(rgba(var(--foreground-color), 1) 90%, transparent);
} }
.secondary-btn { sm-tab-header {
background: none; position: sticky;
top: 0;
background: rgba(var(--foreground-color), 1);
z-index: 1;
} }
.request { .request {
@ -693,14 +705,11 @@ form {
border: solid 1px rgba(var(--text-color), 0.2); border: solid 1px rgba(var(--text-color), 0.2);
} }
.request h5 { .request h5 {
color: rgba(var(--text-color-light), 1); margin-bottom: 0.2rem;
margin-bottom: 0.4rem;
text-transform: capitalize; text-transform: capitalize;
} }
.request h3, .request h4 { .request h3, .request h4 {
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
font-family: "Roboto", sans-serif;
font-weight: 500;
} }
.request h4:last-of-type { .request h4:last-of-type {
margin-bottom: 0; margin-bottom: 0;
@ -753,6 +762,7 @@ form {
.container { .container {
display: grid; display: grid;
gap: 1em; gap: 1em;
width: 100%;
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
@ -765,15 +775,11 @@ form {
grid-template-columns: 1fr auto; grid-template-columns: 1fr auto;
grid-template-areas: ". ." "search search"; grid-template-areas: ". ." "search search";
gap: 1rem; gap: 1rem;
position: sticky;
top: 0; top: 0;
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
will-change: auto; will-change: auto;
z-index: 2; z-index: 2;
} }
.page .container-header h2 {
font-weight: 600;
}
.page .container-header .search { .page .container-header .search {
grid-area: search; grid-area: search;
} }
@ -814,16 +820,12 @@ form {
} }
.time { .time {
font-family: "Roboto", sans-serif;
margin-bottom: 1.5rem !important; margin-bottom: 1.5rem !important;
font-weight: 400; font-weight: 500;
} }
#report_popup h4 { #report_popup {
font-weight: 400; width: 32rem;
}
#report_popup textarea {
margin-top: 1rem;
} }
#profile_page { #profile_page {
@ -861,6 +863,7 @@ form {
.complaints-container { .complaints-container {
padding-top: 1.5rem; padding-top: 1.5rem;
display: grid; display: grid;
align-items: flex-start;
gap: 1.5rem; gap: 1.5rem;
} }
@ -909,7 +912,7 @@ form {
transform: translateY(0) scale(0.96); transform: translateY(0) scale(0.96);
width: 24rem; width: 24rem;
align-self: center; align-self: center;
border-radius: 0.2rem; border-radius: 0.4rem;
height: auto; height: auto;
} }
@ -1003,8 +1006,6 @@ form {
} }
#activity_page sm-tab-header { #activity_page sm-tab-header {
position: sticky;
top: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -1037,10 +1038,6 @@ form {
body { body {
padding: 1rem 12vw; padding: 1rem 12vw;
} }
.container {
grid-template-columns: repeat(3, 1fr);
}
} }
@media only screen and (min-width: 1920px) { @media only screen and (min-width: 1920px) {
body { body {
@ -1057,10 +1054,6 @@ form {
font-size: 24px; font-size: 24px;
padding: 2rem 30vw; padding: 2rem 30vw;
} }
.container {
grid-template-columns: repeat(4, 1fr);
}
} }
@media only screen and (max-width: 320px) { @media only screen and (max-width: 320px) {
body { body {

1
css/main.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,8 @@
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');
*{ *{
box-sizing: border-box; box-sizing: border-box;
padding: 0; padding: 0;
margin: 0; margin: 0;
font-family: 'Barlow', sans-serif; font-family: 'Roboto', sans-serif;
} }
:root{ :root{
scroll-behavior: smooth; scroll-behavior: smooth;
@ -28,31 +27,52 @@ a{
.dark-text{ .dark-text{
color: #111; color: #111;
} }
h1{
font-size: 3.5rem;
}
h2{
font-size: 2rem;
}
h3{
font-size: 1.5rem;
}
h4{
font-size: 1rem;
}
h5{
font-size: 0.8rem;
}
h1,h2,h3,h4,h5{ h1,h2,h3,h4,h5{
font-weight: 600; font-family: 'Manrope', sans-serif;
font-weight: 700;
} }
p{
line-height: 1.5;
max-width: 60ch;
color: rgba(var(--text-color), 0.9);
}
button{ button{
position: relative; position: relative;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-transform: uppercase; text-transform: capitalize;
letter-spacing: 0.08em; padding: 0.6rem 1.2rem;
padding: 0.4rem 0.7rem; font-weight: 700;
font-weight: 600;
cursor: pointer; cursor: pointer;
border-radius: 0.2em; border-radius: 0.3rem;
color: var(--accent-color); color: var(--accent-color);
transition: transform 0.3s; transition: transform 0.3s;
border: none; border: none;
background: rgba(var(--text-color), 0.1); background: rgba(var(--text-color), 0.1);
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
font-family: 'Manrope', sans-serif;
&:focus{ &:focus{
outline: thin solid rgba(var(--text-color-light), .4); outline: thin solid rgba(var(--text-color-light), .4);
} }
&:disabled{ &:disabled{
cursor: default; cursor: default;
background: rgba(var(--text-color-light), 1); background: rgba(var(--text-color), 0.5);
} }
&:disabled ~ .loader{ &:disabled ~ .loader{
opacity: 0; opacity: 0;
@ -148,11 +168,6 @@ input:invalid{
stroke-dashoffset: -210; stroke-dashoffset: -210;
} }
} }
p{
line-height: 1.5;
font-family: 'Roboto', sans-serif;
color: rgba(var(--text-color), 0.8);
}
.action{ .action{
position: relative; position: relative;
display: inline-flex; display: inline-flex;
@ -166,9 +181,8 @@ p{
} }
} }
h4{ h4{
font-weight: 500;
padding: 0.5rem 0.8rem; padding: 0.5rem 0.8rem;
font-size: 1rem; font-size: 0.9rem;
clip-path: circle(100%); clip-path: circle(100%);
transition: clip-path 0.3s; transition: clip-path 0.3s;
border-radius: 0.2rem; border-radius: 0.2rem;
@ -221,20 +235,18 @@ p{
display: inline-grid; display: inline-grid;
align-items: center; align-items: center;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
gap: 0.6rem 0.2rem; gap: 0.6rem 0.4rem;
margin-right: 1rem; margin-right: 1rem;
h4{ h4{
letter-spacing: 0.06rem; letter-spacing: 0.06rem;
word-spacing: 0.12rem; word-spacing: 0.12rem;
margin-top: 0.2rem;
} }
h5{ h5{
font-family: 'Roboto', sans-serif;
font-weight: 400; font-weight: 400;
} }
#main_logo{ #main_logo{
height: 1.4rem; height: 1.6rem;
width: 1.4rem; width: 1.6rem;
fill: rgba(var(--text-color), 1); fill: rgba(var(--text-color), 1);
stroke: none; stroke: none;
} }
@ -268,7 +280,7 @@ textarea{
border: 0.1em solid var(--accent-color); border: 0.1em solid var(--accent-color);
} }
.placeholder{ .placeholder{
opacity: .7; opacity: .6;
font-weight: 500; font-weight: 500;
font-size: 1em; font-size: 1em;
position: absolute; position: absolute;
@ -318,7 +330,6 @@ textarea{
padding: 1rem 0; padding: 1rem 0;
h2{ h2{
flex: 1; flex: 1;
font-weight: 600;
} }
button{ button{
align-self: center; align-self: center;
@ -381,23 +392,22 @@ form{
margin-left: auto; margin-left: auto;
} }
.container-header{ .container-header{
display: grid; display: flex;
grid-template-columns: auto 1fr auto;
align-items: center; align-items: center;
padding: 0; padding: 0;
gap: 1rem; margin-bottom: 1rem;
margin-bottom: 1.5rem; h4{
flex: 1;
}
button{
width: auto;
}
.icon{ .icon{
cursor: pointer; cursor: pointer;
padding-right: 0.4rem; padding-right: 0.4rem;
margin-right: 0.3rem;
stroke-width: 8; stroke-width: 8;
} }
.btn{
padding: 0.6em 1.2em;
}
h3{
text-transform: capitalize;
}
} }
p{ p{
margin-bottom: 1.5rem !important; margin-bottom: 1.5rem !important;
@ -408,9 +418,6 @@ form{
flex-direction: column; flex-direction: column;
p{ p{
margin: 1rem; margin: 1rem;
font-size: 1rem;
font-weight: 500;
color: rgba(var(--rgb-bw),1) !important;
} }
h4{ h4{
font-weight: 500; font-weight: 500;
@ -448,7 +455,6 @@ form{
} }
p{ p{
margin-top: 1rem; margin-top: 1rem;
font-size: 0.9rem;
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
.input{ .input{
@ -457,7 +463,6 @@ form{
} }
.primary-btn{ .primary-btn{
background: var(--accent-color); background: var(--accent-color);
padding: 0.8em 1.6em;
justify-content: center; justify-content: center;
color: rgba(var(--foreground-color), 1); color: rgba(var(--foreground-color), 1);
} }
@ -539,10 +544,8 @@ form{
} }
#home_page{ #home_page{
h1{ h1{
margin-top: 4vw; margin-bottom: 0;
margin-bottom: 1rem; font-weight: 800;
font-weight: 700;
font-size: 3rem;
} }
p{ p{
margin-bottom: 3rem; margin-bottom: 3rem;
@ -563,9 +566,10 @@ form{
padding: 1.5rem; padding: 1.5rem;
margin-right: 1rem; margin-right: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
width: 9rem; width: 10rem;
border: solid 1px rgba(var(--text-color), 0.2); box-shadow: 0 1px 0.1rem #00000030, 0 0 0.4rem #00000016;
text-transform: capitalize; text-transform: capitalize;
transition: transform 0.3s;
cursor: pointer; cursor: pointer;
.icon{ .icon{
height: 2.8rem; height: 2.8rem;
@ -575,8 +579,8 @@ form{
margin-bottom: 1rem; margin-bottom: 1rem;
stroke: rgba(var(--text-color), 0.4); stroke: rgba(var(--text-color), 0.4);
} }
h4{ &:active{
font-weight: 400; transform: scale(0.95);
} }
&:nth-of-type(1){ &:nth-of-type(1){
.icon{ .icon{
@ -630,8 +634,11 @@ form{
background: linear-gradient(rgba(var(--foreground-color), 1) 90%, transparent); background: linear-gradient(rgba(var(--foreground-color), 1) 90%, transparent);
} }
} }
.secondary-btn{ sm-tab-header{
background: none; position: sticky;
top: 0;
background: rgba(var(--foreground-color), 1);
z-index: 1;
} }
.request{ .request{
display: inline-flex; display: inline-flex;
@ -640,14 +647,11 @@ form{
border-radius: 0.4em; border-radius: 0.4em;
border: solid 1px rgba(var(--text-color), 0.2); border: solid 1px rgba(var(--text-color), 0.2);
h5{ h5{
color: rgba(var(--text-color-light), 1); margin-bottom: 0.2rem;
margin-bottom: 0.4rem;
text-transform: capitalize; text-transform: capitalize;
} }
h3,h4{ h3,h4{
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
font-family: 'Roboto', sans-serif;
font-weight: 500;
} }
h4:last-of-type{ h4:last-of-type{
margin-bottom: 0; margin-bottom: 0;
@ -697,6 +701,7 @@ form{
.container{ .container{
display: grid; display: grid;
gap: 1em; gap: 1em;
width: 100%;
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.page{ .page{
@ -708,14 +713,10 @@ form{
grid-template-areas: '. .' grid-template-areas: '. .'
'search search'; 'search search';
gap: 1rem; gap: 1rem;
position: sticky;
top: 0; top: 0;
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
will-change: auto; will-change: auto;
z-index: 2; z-index: 2;
h2{
font-weight: 600;
}
.search{ .search{
grid-area: search; grid-area: search;
input{ input{
@ -756,17 +757,11 @@ form{
} }
} }
.time{ .time{
font-family: 'Roboto', sans-serif;
margin-bottom: 1.5rem !important; margin-bottom: 1.5rem !important;
font-weight: 400; font-weight: 500;
} }
#report_popup{ #report_popup{
h4{ width: 32rem;
font-weight: 400;
}
textarea{
margin-top: 1rem;
}
} }
#profile_page{ #profile_page{
display: flex; display: flex;
@ -803,6 +798,7 @@ form{
.complaints-container{ .complaints-container{
padding-top: 1.5rem; padding-top: 1.5rem;
display: grid; display: grid;
align-items: flex-start;
gap: 1.5rem; gap: 1.5rem;
} }
#helpline_page{ #helpline_page{
@ -850,7 +846,7 @@ form{
transform: translateY(0) scale(0.96); transform: translateY(0) scale(0.96);
width: 24rem; width: 24rem;
align-self: center; align-self: center;
border-radius: 0.2rem; border-radius: 0.4rem;
height: auto; height: auto;
} }
} }
@ -945,8 +941,6 @@ form{
} }
#activity_page{ #activity_page{
sm-tab-header{ sm-tab-header{
position: sticky;
top: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
} }
@ -978,9 +972,6 @@ form{
body{ body{
padding: 1rem 12vw; padding: 1rem 12vw;
} }
.container{
grid-template-columns: repeat(3, 1fr);
}
} }
@media only screen and (min-width: 1920px){ @media only screen and (min-width: 1920px){
body{ body{
@ -996,9 +987,6 @@ form{
font-size: 24px; font-size: 24px;
padding: 2rem 30vw; padding: 2rem 30vw;
} }
.container{
grid-template-columns: repeat(4, 1fr);
}
} }
@media only screen and (max-width: 320px){ @media only screen and (max-width: 320px){
body{ body{

1542
index.html

File diff suppressed because it is too large Load Diff