Skip to content

Commit

Permalink
Merge pull request #24 from TLI-Group-1/formatting
Browse files Browse the repository at this point in the history
Used Prettier for Formatting
  • Loading branch information
tupi2001 authored Dec 13, 2021
2 parents 27203f4 + 403b7be commit 9a2bf26
Show file tree
Hide file tree
Showing 11 changed files with 748 additions and 494 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/*mustache*.js
**/*minireset*.css
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"quoteProps": "preserve",
"bracketSpacing": false,
"bracketSameLine": false
}
3 changes: 2 additions & 1 deletion css/details.css
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ main > div aside {
}
}

.offer-selected, .offer-selected > * {
.offer-selected,
.offer-selected > * {
background-color: #1d2345 !important;
color: #ffffff;
}
Expand Down
14 changes: 7 additions & 7 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ section.sec-inputs button {
width: 100%;
}

section.sec-inputs button[name="login"] {
section.sec-inputs button[name='login'] {
border-radius: 0.5rem;
/* width: 100%; */
min-width: 15.5rem;
Expand All @@ -97,10 +97,10 @@ section.sec-inputs button[name="login"] {
font-weight: 500;
transition: all 250ms ease;
}
section.sec-inputs button[name="login"]:hover {
section.sec-inputs button[name='login']:hover {
transform: translateY(-0.2rem);
}
section.sec-inputs button[name="login"]:active {
section.sec-inputs button[name='login']:active {
transform: none;
}

Expand All @@ -114,7 +114,7 @@ section.sec-inputs article form input {
width: 100%;
}

section.sec-inputs button[name="updateFinancials"] {
section.sec-inputs button[name='updateFinancials'] {
margin: 1rem 0 0 0;
padding: 1rem;
transition: all 250ms ease;
Expand Down Expand Up @@ -312,19 +312,19 @@ div.cars-container {
width: 5rem;
border-radius: 0 0 1.1rem 0;
}
.car-offer button.claim-btn span.claim-heart:hover{
.car-offer button.claim-btn span.claim-heart:hover {
width: 7rem;
}

/* either makes the background image a filled heart or empty heart */
.bg-heart-filled {
background-image: url("../assets/icons/heart-filled-min.svg");
background-image: url('../assets/icons/heart-filled-min.svg');
background-repeat: no-repeat;
background-position: center;
background-size: 2rem;
}
.bg-heart-empty {
background-image: url("../assets/icons/heart-unfilled-min.svg");
background-image: url('../assets/icons/heart-unfilled-min.svg');
background-repeat: no-repeat;
background-position: center;
background-size: 2rem;
Expand Down
25 changes: 12 additions & 13 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ limitations under the License.
/* import the Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

html, body {
html,
body {
background-color: #f6fbfd;
color: #1d2345;
font-family: "Poppins", "Poppins Latin", "Now",
"Roboto", "Helvetica", "Arial", sans-serif;
font-family: 'Poppins', 'Poppins Latin', 'Now', 'Roboto', 'Helvetica',
'Arial', sans-serif;
font-size: 14px;
}

Expand Down Expand Up @@ -120,18 +121,19 @@ button:hover {
border-radius: 0 0 1.1rem 1.1rem;
}

input, select {
input,
select {
font-family: inherit;
font-size: 1em;
}

/* remove increment arrows from number fields */
input[type="number"] {
input[type='number'] {
-moz-appearance: textfield;
appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
Expand Down Expand Up @@ -221,8 +223,7 @@ footer div.footer-spacer {

.card {
background-color: #ffffff;
box-shadow:
0 0.08rem 0.06rem -0.62rem rgba(0, 0, 0, 0.065),
box-shadow: 0 0.08rem 0.06rem -0.62rem rgba(0, 0, 0, 0.065),
0 0.28rem 0.21rem -0.62rem rgba(0, 0, 0, 0.095),
0 1.25rem 0.93rem -0.62rem rgba(0, 0, 0, 0.17);
border-radius: 1.2rem;
Expand Down Expand Up @@ -252,14 +253,12 @@ footer div.footer-spacer {
word-break: break-all;
}
.link-light:link,
.link-light:visited
{
.link-light:visited {
text-decoration: underline;
color: inherit;
}
.link-light:hover,
.link-light:active
{
.link-light:active {
text-decoration: none;
}

Expand Down
Loading

0 comments on commit 9a2bf26

Please sign in to comment.