fix calc functions

This commit is contained in:
Mads Rasmussen
2017-09-07 21:39:41 +02:00
parent e7e04de22e
commit 96c9ecbdd7
5 changed files with 5 additions and 5 deletions

View File

@@ -125,7 +125,7 @@ body {
@media (max-width: 500px) {
#search-form .form-search {
width: ~"(calc(~'100%' - ~'80px'))";
width: calc(100% - 80px);
}
}

View File

@@ -14,7 +14,7 @@ body {
overflow: hidden;
height: 100%;
width: 100%;
width: ~"(calc(~'100%' - ~'80px'))"; // 80px is the fixed left menu for toggling the different browser sizes
width: calc(100% - 80px); // 80px is the fixed left menu for toggling the different browser sizes
position: absolute;
padding: 0;
margin: 0;

View File

@@ -155,7 +155,7 @@
@media (max-width: 500px) {
.umb-overlay.umb-overlay-left {
margin-left: 41px;
width: ~"(calc(~'100%' - ~'41px'))";
width: calc(100% - 41px);
}
}

View File

@@ -329,7 +329,7 @@ a.umb-package-details__back-link {
.umb-package-details__main-content {
flex: 1 1 auto;
margin-right: 40px;
width: ~"(calc(~'100%' - ~'@{sidebarwidth}' - ~'40px'))"; // Make sure that the main content area doesn't gets affected by inline styling
width: calc(~'100%' - ~'@{sidebarwidth}' - ~'40px'); // Make sure that the main content area doesn't gets affected by inline styling
}
.umb-package-details__sidebar {

View File

@@ -126,7 +126,7 @@ ul.sections li.help {
bottom: 0;
left: 0;
display: block;
width: ~"(calc(~'100%' - ~'5px'))"; //subtract 4px orange border + 1px border-right for sections
width: calc(100% - 5px); //subtract 4px orange border + 1px border-right for sections
}
ul.sections li.help a {