Skip to content

Commit

Permalink
- added fix to errors in less files
Browse files Browse the repository at this point in the history
  • Loading branch information
ishedu committed Aug 30, 2021
1 parent 009a15c commit f23d0f3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions less/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ header {
font-size: @font-size-h5;
color: @navbar-default-link-color;
.border-radius;
margin-right: @grid-gutter-width/2;
margin-right: (@grid-gutter-width/2);

&:hover {
color: @navbar-default-link-color;
Expand Down Expand Up @@ -48,15 +48,15 @@ header {
display: inline-block;
a {
display: block;
padding: @grid-gutter-width/4 @grid-gutter-width/2;
padding: (@grid-gutter-width/4) (@grid-gutter-width/2);
border: 1px solid #fff;
// line-height: @navbar-height - (@navbar-padding-horizontal*2);
}
}

/* override bootstrap */
&.navbar-nav > li > a {
padding: @grid-gutter-width/4 @grid-gutter-width/2;
padding: (@grid-gutter-width/4) (@grid-gutter-width/2);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions less/homepage.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.jumbotron;
.wrapper;
padding: @grid-gutter-width !important;
margin-bottom: @grid-gutter-width/2;
margin-bottom: (@grid-gutter-width / 2);

a[role="button"] {
.btn;
Expand All @@ -11,7 +11,7 @@
}
img {
float: right;
margin-left: @grid-gutter-width/2;
margin-left: (@grid-gutter-width / 2);
}

@media (max-width: @screen-sm-max) {
Expand Down
4 changes: 2 additions & 2 deletions less/order-form.less
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
.text-shadow;

.background {
padding: @grid-gutter-width/2;
padding: (@grid-gutter-width/2);
background-color: rgba(0,0,0,.6);
.black-gradient;
}
}
.tab-pane {
padding: @grid-gutter-width/2;
padding: (@grid-gutter-width/2);
}
.nav.nav-tabs {
height: 42px;
Expand Down
14 changes: 7 additions & 7 deletions less/restaurants.less
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.restaurant {
.border;
padding: @grid-gutter-width/2;
margin-bottom: @grid-gutter-width/2;
padding: (@grid-gutter-width/2);
margin-bottom: (@grid-gutter-width/2);

h3, h2 {
margin-top: 0;
}
img {
float: left;
margin-right: @grid-gutter-width/2;
margin-right: (@grid-gutter-width/2);
.border;
}
.address {
Expand Down Expand Up @@ -80,12 +80,12 @@
@media (max-width: @screen-sm-max) {

.restaurants, h2.page-header, .restaurant-content {
padding-left: @grid-gutter-width/2;
padding-right: @grid-gutter-width/2;
padding-left: (@grid-gutter-width/2);
padding-right: (@grid-gutter-width/2);
}
.restaurant, h2.page-header {
margin-left: -@grid-gutter-width/2;
margin-right: -@grid-gutter-width/2;
margin-left: (-@grid-gutter-width/2);
margin-right: (-@grid-gutter-width/2);
}

}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
}
},
"devDependencies": {
"less": "^3.9.0"
"less": "^4.1.1"
}
}

0 comments on commit f23d0f3

Please sign in to comment.