Skip to content

A free open source IT asset/license management system

Backing out the ribbon - too finicky on mobile :(

snipea9b306f2d2dc
diff --git a/public/css/build/app.css b/public/css/build/app.css
index 9b58cf30f8..cbf95669b1 100644
--- a/public/css/build/app.css
+++ b/public/css/build/app.css
@@ -800,77 +800,20 @@ h4 {
display: table-row;
}
.row-new-striped > .row:nth-of-type(odd) {
- background-color: #f9f9f9;
+ background-color: #F8F8F8;
border-top: 1px solid #dddddd;
display: table-row;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
-/**
-* Ribbon stuff
-* https://codepen.io/devinsays/pen/PwEbmR
-**/
-.product {
- width: 100%;
- min-width: 100%;
-}
-.product-image {
- position: relative;
- min-height: 250px;
- min-width: 4;
-}
-.onsale-section {
- position: absolute;
- top: -6px;
- right: 15px;
-}
-.onsale-section:after {
- position: absolute;
- content: '';
- display: block;
- width: 0;
- height: 0;
- border-left: 50px solid transparent;
- border-right: 50px solid transparent;
-}
-.onsale {
- position: relative;
- display: inline-block;
- text-align: center;
- color: #fff;
- font-size: 12px;
- line-height: 1;
- padding: 12px 8px 6px;
- border-top-right-radius: 8px;
- width: 100px;
- text-transform: uppercase;
-}
-.onsale:before,
-.onsale:after {
- position: absolute;
- content: '';
- display: block;
-}
-.onsale:before {
- height: 7px;
- width: 6px;
- left: -6px;
- top: 0;
-}
-.onsale:after {
- background: #96a0a2;
- height: 7px;
- width: 8px;
- border-radius: 8px 8px 0 0;
- left: -8px;
- top: 0;
-}
-.product img {
- display: block;
+.row-new-striped div[class^="col"]:first-child {
+ font-weight: bold;
}
/**
* This just adds a little extra padding on mobile
diff --git a/public/css/build/overrides.css b/public/css/build/overrides.css
index 8f731093ff..d98c5d38d7 100644
--- a/public/css/build/overrides.css
+++ b/public/css/build/overrides.css
@@ -433,77 +433,20 @@ h4 {
display: table-row;
}
.row-new-striped > .row:nth-of-type(odd) {
- background-color: #f9f9f9;
+ background-color: #F8F8F8;
border-top: 1px solid #dddddd;
display: table-row;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
-/**
-* Ribbon stuff
-* https://codepen.io/devinsays/pen/PwEbmR
-**/
-.product {
- width: 100%;
- min-width: 100%;
-}
-.product-image {
- position: relative;
- min-height: 250px;
- min-width: 4;
-}
-.onsale-section {
- position: absolute;
- top: -6px;
- right: 15px;
-}
-.onsale-section:after {
- position: absolute;
- content: '';
- display: block;
- width: 0;
- height: 0;
- border-left: 50px solid transparent;
- border-right: 50px solid transparent;
-}
-.onsale {
- position: relative;
- display: inline-block;
- text-align: center;
- color: #fff;
- font-size: 12px;
- line-height: 1;
- padding: 12px 8px 6px;
- border-top-right-radius: 8px;
- width: 100px;
- text-transform: uppercase;
-}
-.onsale:before,
-.onsale:after {
- position: absolute;
- content: '';
- display: block;
-}
-.onsale:before {
- height: 7px;
- width: 6px;
- left: -6px;
- top: 0;
-}
-.onsale:after {
- background: #96a0a2;
- height: 7px;
- width: 8px;
- border-radius: 8px 8px 0 0;
- left: -8px;
- top: 0;
-}
-.product img {
- display: block;
+.row-new-striped div[class^="col"]:first-child {
+ font-weight: bold;
}
/**
* This just adds a little extra padding on mobile
diff --git a/public/css/dist/all.css b/public/css/dist/all.css
index 30ab0af882..490949357c 100644
--- a/public/css/dist/all.css
+++ b/public/css/dist/all.css
@@ -15723,77 +15723,20 @@ h4 {
display: table-row;
}
.row-new-striped > .row:nth-of-type(odd) {
- background-color: #f9f9f9;
+ background-color: #F8F8F8;
border-top: 1px solid #dddddd;
display: table-row;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
-/**
-* Ribbon stuff
-* https://codepen.io/devinsays/pen/PwEbmR
-**/
-.product {
- width: 100%;
- min-width: 100%;
-}
-.product-image {
- position: relative;
- min-height: 250px;
- min-width: 4;
-}
-.onsale-section {
- position: absolute;
- top: -6px;
- right: 15px;
-}
-.onsale-section:after {
- position: absolute;
- content: '';
- display: block;
- width: 0;
- height: 0;
- border-left: 50px solid transparent;
- border-right: 50px solid transparent;
-}
-.onsale {
- position: relative;
- display: inline-block;
- text-align: center;
- color: #fff;
- font-size: 12px;
- line-height: 1;
- padding: 12px 8px 6px;
- border-top-right-radius: 8px;
- width: 100px;
- text-transform: uppercase;
-}
-.onsale:before,
-.onsale:after {
- position: absolute;
- content: '';
- display: block;
-}
-.onsale:before {
- height: 7px;
- width: 6px;
- left: -6px;
- top: 0;
-}
-.onsale:after {
- background: #96a0a2;
- height: 7px;
- width: 8px;
- border-radius: 8px 8px 0 0;
- left: -8px;
- top: 0;
-}
-.product img {
- display: block;
+.row-new-striped div[class^="col"]:first-child {
+ font-weight: bold;
}
/**
* This just adds a little extra padding on mobile
@@ -16819,77 +16762,20 @@ h4 {
display: table-row;
}
.row-new-striped > .row:nth-of-type(odd) {
- background-color: #f9f9f9;
+ background-color: #F8F8F8;
border-top: 1px solid #dddddd;
display: table-row;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
-/**
-* Ribbon stuff
-* https://codepen.io/devinsays/pen/PwEbmR
-**/
-.product {
- width: 100%;
- min-width: 100%;
-}
-.product-image {
- position: relative;
- min-height: 250px;
- min-width: 4;
-}
-.onsale-section {
- position: absolute;
- top: -6px;
- right: 15px;
-}
-.onsale-section:after {
- position: absolute;
- content: '';
- display: block;
- width: 0;
- height: 0;
- border-left: 50px solid transparent;
- border-right: 50px solid transparent;
-}
-.onsale {
- position: relative;
- display: inline-block;
- text-align: center;
- color: #fff;
- font-size: 12px;
- line-height: 1;
- padding: 12px 8px 6px;
- border-top-right-radius: 8px;
- width: 100px;
- text-transform: uppercase;
-}
-.onsale:before,
-.onsale:after {
- position: absolute;
- content: '';
- display: block;
-}
-.onsale:before {
- height: 7px;
- width: 6px;
- left: -6px;
- top: 0;
-}
-.onsale:after {
- background: #96a0a2;
- height: 7px;
- width: 8px;
- border-radius: 8px 8px 0 0;
- left: -8px;
- top: 0;
-}
-.product img {
- display: block;
+.row-new-striped div[class^="col"]:first-child {
+ font-weight: bold;
}
/**
* This just adds a little extra padding on mobile
diff --git a/public/mix-manifest.json b/public/mix-manifest.json
index 8e819002bb..9be20669fd 100644
--- a/public/mix-manifest.json
+++ b/public/mix-manifest.json
@@ -1,8 +1,8 @@
{
"/js/build/app.js": "/js/build/app.js?id=2041f181f1136a9a18d8",
"/css/dist/skins/skin-blue.css": "/css/dist/skins/skin-blue.css?id=cf32592ae76e1134312c",
- "/css/build/overrides.css": "/css/build/overrides.css?id=e450097d74701643c241",
- "/css/build/app.css": "/css/build/app.css?id=f97816f469b4cc535af4",
+ "/css/build/overrides.css": "/css/build/overrides.css?id=bd465539322247cb6adb",
+ "/css/build/app.css": "/css/build/app.css?id=ec40a32815dbea12aee8",
"/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=65ca7a34198fa16ba846",
"/css/dist/skins/skin-orange.css": "/css/dist/skins/skin-orange.css?id=b25c92dab95a46c8573a",
"/css/dist/skins/skin-orange-dark.css": "/css/dist/skins/skin-orange-dark.css?id=da8f1b5753826de00425",
@@ -18,7 +18,7 @@
"/css/dist/skins/skin-green.css": "/css/dist/skins/skin-green.css?id=39defadc0705db43a793",
"/css/dist/skins/skin-contrast.css": "/css/dist/skins/skin-contrast.css?id=3f9f3427eccdf82db31e",
"/css/dist/skins/skin-red.css": "/css/dist/skins/skin-red.css?id=f9015c9b4554c6bfa4fe",
- "/css/dist/all.css": "/css/dist/all.css?id=f848fecd03425889e9cb",
+ "/css/dist/all.css": "/css/dist/all.css?id=8d84226d8c7eb44fa35c",
"/css/blue.png": "/css/blue.png?id=e83a6c29e04fe851f212",
"/css/[email protected]": "/css/[email protected]?id=51135dd4d24f88f5de0b",
"/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced",
diff --git a/resources/assets/less/overrides.less b/resources/assets/less/overrides.less
index 92cb874334..02c99e6006 100644
--- a/resources/assets/less/overrides.less
+++ b/resources/assets/less/overrides.less
@@ -488,7 +488,7 @@ h4 {
}
.row-new-striped > .row:nth-of-type(odd) {
- background-color: #f9f9f9;
+ background-color: #F8F8F8;
border-top: 1px solid #dddddd;
display: table-row;
@@ -496,88 +496,19 @@ h4 {
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
.row-new-striped div {
display: table-cell;
+ border-top: 1px solid #dddddd;
}
-/**
-* Ribbon stuff
-* https://codepen.io/devinsays/pen/PwEbmR
-**/
-
-.product {
- width: 100%;
- min-width: 100%;
-}
-
-.product-image {
- position: relative;
- min-height: 250px;
- min-width: 4;
-}
-
-.onsale-section {
- position: absolute;
- top: -6px;
- right: 15px;
-}
-
-.onsale-section:after {
- position: absolute;
- content: '';
- display: block;
- width: 0;
- height: 0;
- border-left: 50px solid transparent;
- border-right: 50px solid transparent;
- //border-top: 6px solid #6ec5d5;
-}
-
-
-.onsale {
- position: relative;
- display: inline-block;
- text-align: center;
- color: #fff;
-
- font-size: 12px;
- line-height: 1;
- padding: 12px 8px 6px;
- border-top-right-radius: 8px;
- width: 100px;
- text-transform: uppercase
-}
-
-.onsale:before,
-.onsale:after {
- position: absolute;
- content: '';
- display: block;
-}
-
-.onsale:before {
- height: 7px;
- width: 6px;
- left: -6px;
- top: 0;
-}
-
-
-.onsale:after {
- background: #96a0a2;
- height: 7px;
- width: 8px;
- border-radius: 8px 8px 0 0;
- left: -8px;
- top: 0;
+.row-new-striped div[class^="col"]:first-child {
+ font-weight: bold;
}
-.product img {
- display: block;
-}
/**
diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php
index 264dfef23c..a8b2121a9c 100755
--- a/resources/views/users/view.blade.php
+++ b/resources/views/users/view.blade.php
@@ -90,7 +90,7 @@
<li>
<a href="#managed" data-toggle="tab">
<span class="hidden-lg hidden-md">
- <i class="fa fa-map-marker fa-2x"></i></span>
+ <i class="fas fa-map-marker-alt fa-2x"></i></span>
<span class="hidden-xs hidden-sm">{{ trans('admin/users/table.managed_locations') }}
{!! ($user->managedLocations->count() > 0 ) ? '<badge class="badge badge-secondary">'.$user->managedLocations->count().'</badge>' : '' !!}
</a>
@@ -146,25 +146,15 @@
<div class="col-md-12 text-center">
- <div class="product">
-
- <div class="product-image">
- <img src="{{ $user->present()->gravatar() }}" class="img-thumbnail hidden-print" style="margin-bottom: 20px;" alt="{{ $user->present()->fullName() }}">
- <span class="onsale-section{{ ($user->isSuperUser()) ? ' danger' : ' warning'}}">
-
- <span class="onsale{{ ($user->isSuperUser()) ? ' danger' : ' warning'}}">
-
- <i class="fas fa-crown" title="superuser"></i>
- @if ($user->isSuperUser())
- superadmin
- @elseif ($user->hasAccess('admin'))
- admin
- @endif
- </span>
-
- </span>
- </div>
- </div>
+ @if (($user->isSuperUser()) || ($user->hasAccess('admin')))
+ <i class="fas fa-crown fa-2x {{ ($user->isSuperUser()) ? 'text-danger' : ' text-orange'}}"></i>
+ <div class="{{ ($user->isSuperUser()) ? 'text-danger' : ' text-orange'}}" style="font-weight: bold">{{ ($user->isSuperUser()) ? 'superadmin' : 'admin'}}</div>
+ @endif
+
+
+ </div>
+ <div class="col-md-12 text-center">
+ <img src="{{ $user->present()->gravatar() }}" class=" img-thumbnail hidden-print" style="margin-bottom: 20px;" alt="{{ $user->present()->fullName() }}">
</div>