Skip to content

Commit

Permalink
Fixed CSS lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloRoque committed Mar 29, 2020
1 parent 462ff0f commit 2d4106f
Show file tree
Hide file tree
Showing 11 changed files with 1,162 additions and 87 deletions.
104 changes: 104 additions & 0 deletions styles/_detail.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
.info-div {
margin: 12rem 5rem 1rem 5rem;
padding: 2rem 1.5rem 1rem 1.5rem;
box-shadow: 0rem 0rem 1rem 0.01rem $color4;
text-align: right;
.title {
@include flexLeft(row, center);
color: $color1;
font-size: 2rem;
font-weight: 500;
margin-bottom: 1rem;
img {
height: 2.5rem;
margin-right: 0.5rem;
}
}
.info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 0.8rem;
margin: 0 2rem 3rem 0;
div {
border: thin solid $color4;
text-align: center;
font-size: 1.6rem;
font-weight: 600;
text-transform: uppercase;
padding: 0.5rem 0;
span {
color: $color6;
}
}
}
.apply-link {
background-color: $color6;
width: fit-content;
padding: 0.4rem 0.7rem;
text-align: center;
margin-bottom: 1rem;
text-decoration: none;
color: $color2;
font-size: 1.5rem;
font-weight: 600;
&:hover {
background-color: $color1;
color: $color2;
}
img {
height: 2.5rem;
margin: 0 0.5rem 0.4rem 0;
}
}
.bottom-info {
font-size: 1.2rem;
font-weight: 600;
span {
img {
margin: 0 0.5rem;
}
a {
text-decoration: none;
color: $color22;
text-transform: uppercase;
}
}
}
}

.company-text {
margin: 0 5rem 1rem 5rem;
font-size: 2rem;
text-align: justify;
}

.click-details {
margin: 0 5rem 5rem 5rem;
background-color: $color3;
padding: 3rem 1rem;
a {
text-decoration: none;
color: $color16;
font-size: 2.2rem;
letter-spacing: 0.8rem;
&:hover {
color: $color1;
}
img {
margin-right: 2rem;
}
}
}

.map-section {
margin: 0 5rem 5rem 5rem;
color: $color1;
font-size: 3rem;
font-weight: 500;
text-align: center;
iframe {
margin: 4rem auto 0 auto;
width: 100%;
height: 30rem;
}
}
101 changes: 101 additions & 0 deletions styles/_filter.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
.filter-section {
background-color: $color3;
color: $color4;
text-align: center;
padding: 4rem 1rem 8rem 1rem;
margin-top: 7rem;
h1 {
margin-bottom: 3rem;
}
form {
@include flexCenter(row, flex-end);
.form-buttons {
@include flexCenter(row, flex-end);
}
.select-div {
@include flexCenter(row, center);
}
div {
@include flexCenter(column, flex-start);
margin-right: 0.5rem;
label {
color: $color5;
font-size: 1.4rem;
font-weight: 700;
}
input,
select {
border: 0.05rem solid $color11;
height: 3rem;
padding-left: 0.5rem;
font-size: 1.5rem;
border-radius: 0.5rem;
}
#state,
#price {
width: 10rem;
}
}
a {
font-size: 1.2rem;
text-decoration: none;
color: $color2;
font-weight: 700;
padding: 0.6rem 1rem;
border-radius: 0.5rem;
}
.search-results {
background-color: $color7;
margin-right: 0.5rem;
&:hover {
background-color: $color2;
color: $color7;
}
}
.clear-filter {
border: none;
height: 3rem;
background-color: $color8;
outline: none;
border-radius: 0.5rem;
font-size: 1.2rem;
color: $color2;
font-weight: 700;
padding: 0.6rem 1rem;
cursor: pointer;
&:hover {
background-color: $color4;
color: $color2;
}
img {
width: 1.2rem;
margin: auto 0.5rem auto 0;
}
}
}
}

.search-results-section {
text-align: center;
h1 {
color: $color9;
font-weight: 600;
margin: 5rem 0 3rem 0;
}
div {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 2rem;
margin-bottom: 5rem;
padding: 2rem;
a {
&:hover {
border: 0.3rem solid $color1;
}
img {
width: 100%;
border: thin solid $color19;
}
}
}
}
12 changes: 12 additions & 0 deletions styles/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
footer {
background-color: $color16;
@include flexBetween(row, flex-start);
padding: 3rem 1rem;
color: $color20;
font-size: 1.5rem;
font-weight: 700;
.social-icons {
margin-right: 1rem;
width: 2rem;
}
}
40 changes: 40 additions & 0 deletions styles/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
header {
position: sticky;
top: 0;
z-index: 1;
background-color: $color1;
padding: 0 7rem;
@include flexBetween(row, center);
height: 7rem;
.logo-link {
align-self: flex-start;
text-decoration: none;
&:hover {
transform: scale(1.2);
}
.logo {
height: 5rem;
}
.logo-text {
font-size: 3rem;
color: $color2;
}
}
nav {
@include flexCenter(row, flex-end);
.icons {
height: 1.5rem;
margin: 0 0.5rem 0 2rem;
}
a {
text-decoration: none;
color: $color2;
font-size: 1.2rem;
@include flexCenter(row, flex-start);
font-weight: 500;
&:hover {
transform: rotate(-10deg);
}
}
}
}
Loading

0 comments on commit 2d4106f

Please sign in to comment.