2012-10-06 17:14:57 +02:00
|
|
|
@import "twitter/bootstrap/bootstrap";
|
2013-07-17 11:31:12 +02:00
|
|
|
@import "twitter/bootstrap/responsive";
|
2014-01-23 16:17:16 +01:00
|
|
|
@import "delta_input";
|
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
body {
|
2012-11-24 15:23:12 +01:00
|
|
|
padding-top: 10px;
|
2012-10-06 17:14:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Set the correct sprite paths
|
2013-07-17 11:31:12 +02:00
|
|
|
@iconSpritePath: image-url('twitter/bootstrap/glyphicons-halflings.png');
|
|
|
|
@iconWhiteSpritePath: image-url('twitter/bootstrap/glyphicons-halflings-white.png');
|
2012-10-06 17:14:57 +02:00
|
|
|
|
|
|
|
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
|
2013-07-08 14:32:24 +02:00
|
|
|
@fontAwesomeEotPath: asset-url('fontawesome-webfont.eot');
|
|
|
|
@fontAwesomeEotPath_iefix: asset-url('fontawesome-webfont.eot?#iefix');
|
|
|
|
@fontAwesomeWoffPath: asset-url('fontawesome-webfont.woff');
|
|
|
|
@fontAwesomeTtfPath: asset-url('fontawesome-webfont.ttf');
|
|
|
|
@fontAwesomeSvgPath: asset-url('fontawesome-webfont.svg#fontawesomeregular');
|
|
|
|
@import 'fontawesome/font-awesome';
|
2012-10-06 17:14:57 +02:00
|
|
|
|
2013-07-17 11:31:12 +02:00
|
|
|
// Glyphicons
|
|
|
|
//@import "twitter/bootstrap/sprites.less";
|
|
|
|
|
2012-10-06 17:14:57 +02:00
|
|
|
// Your custom LESS stylesheets goes here
|
|
|
|
//
|
|
|
|
// Since bootstrap was imported above you have access to its mixins which
|
|
|
|
// you may use and inherit here
|
|
|
|
//
|
|
|
|
// If you'd like to override bootstrap's own variables, you can do so here as well
|
2013-07-17 11:31:12 +02:00
|
|
|
// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
|
2012-10-06 17:14:57 +02:00
|
|
|
//
|
|
|
|
// Example:
|
|
|
|
// @linkColor: #ff0000;
|
2012-10-08 21:52:03 +02:00
|
|
|
|
2014-01-03 14:11:50 +01:00
|
|
|
|
|
|
|
// main ui colours
|
|
|
|
@mainRedColor: #ED0606;
|
|
|
|
|
|
|
|
// article status
|
|
|
|
@articleUsedColor: green;
|
2014-06-04 10:05:18 +02:00
|
|
|
@articlePartusedColor: #d50;
|
2014-01-03 14:11:50 +01:00
|
|
|
@articleUnusedColor: red;
|
|
|
|
@articleUnavailColor: #999;
|
|
|
|
@articleUpdatedColor: #468847;
|
|
|
|
|
|
|
|
// dim colors by this amount when the information is less important
|
|
|
|
@nonessentialDim: 35%;
|
|
|
|
|
2012-11-24 15:23:12 +01:00
|
|
|
|
2013-01-29 17:52:44 +01:00
|
|
|
// Fix empty dd tags in horizontal dl, see https://github.com/twitter/bootstrap/issues/4062
|
|
|
|
.dl-horizontal {
|
|
|
|
dd { .clearfix(); }
|
|
|
|
}
|
|
|
|
|
2013-06-26 15:16:52 +02:00
|
|
|
// Do not use additional margin for input in table
|
|
|
|
.form-horizontal .control-group.control-group-intable,
|
2014-01-03 22:26:20 +01:00
|
|
|
.form-horizontal .controls.controls-intable,
|
|
|
|
.input-prepend.intable {
|
2013-06-26 15:16:52 +02:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2013-07-08 22:10:36 +02:00
|
|
|
// Light tooltips without empty space below tables
|
|
|
|
.tooltip-inner {
|
|
|
|
color: #000;
|
|
|
|
background-color: rgb(245,245,245);
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
}
|
|
|
|
.tooltip-inner .table {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2014-01-03 12:42:36 +01:00
|
|
|
|
2012-11-24 15:23:12 +01:00
|
|
|
.logo {
|
|
|
|
margin: 10px 0 0 30px;
|
|
|
|
float: left;
|
|
|
|
font-size: 35px;
|
|
|
|
font-weight: bold;
|
|
|
|
display: block;
|
|
|
|
color: @mainRedColor;
|
|
|
|
|
|
|
|
span {
|
|
|
|
padding: 2px 4px;
|
|
|
|
color: #ffffff;
|
|
|
|
background-color: @mainRedColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-10-09 02:31:10 +02:00
|
|
|
section {
|
|
|
|
padding-bottom: 30px;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
border-bottom: 1px solid #d3d3d3;
|
|
|
|
}
|
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
footer {
|
2014-06-06 17:50:20 +02:00
|
|
|
color: #888;
|
|
|
|
margin-top: 40px;
|
|
|
|
padding-top: 14px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
border-top: 1px solid #e4e4e4;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: mix(#888, @linkColor, 70%);
|
|
|
|
}
|
2012-10-15 21:19:17 +02:00
|
|
|
}
|
|
|
|
|
2014-06-06 17:50:20 +02:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
table {
|
2012-10-19 01:12:47 +02:00
|
|
|
|
2012-11-10 16:44:05 +01:00
|
|
|
a.sortdown:after {
|
2012-10-19 01:12:47 +02:00
|
|
|
content: ' \25BC';
|
|
|
|
}
|
2012-11-10 16:44:05 +01:00
|
|
|
a.sortup:after {
|
2012-10-19 01:12:47 +02:00
|
|
|
content: ' \25B2';
|
|
|
|
}
|
|
|
|
|
2014-01-21 11:55:26 +01:00
|
|
|
tr.list-heading {
|
2012-10-15 21:19:17 +02:00
|
|
|
background-color: #efefef;
|
|
|
|
td:first-child {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
th.numeric, td.numeric {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
td.odd {
|
|
|
|
background-color: @tableBackgroundAccent;
|
|
|
|
}
|
2013-12-07 17:10:40 +01:00
|
|
|
|
|
|
|
td.main_info {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2012-10-30 00:20:47 +01:00
|
|
|
|
|
|
|
tr.selected td {
|
|
|
|
background-color: @successBackground;
|
|
|
|
}
|
2012-10-15 21:19:17 +02:00
|
|
|
}
|
|
|
|
|
2014-01-21 11:55:26 +01:00
|
|
|
.center, td.center, th.center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2014-03-16 02:08:15 +01:00
|
|
|
// Navigation with embedded tabs
|
|
|
|
.nav-tabs-with-heading {
|
|
|
|
> li {
|
|
|
|
line-height: 40px;
|
|
|
|
margin-top: 16.5px;
|
|
|
|
a { padding-bottom: 9px; }
|
|
|
|
}
|
|
|
|
> li.heading {
|
|
|
|
> h1, > h2, > h3 {
|
|
|
|
font-size: 31.5px;
|
|
|
|
line-height: 40px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
margin: 10px 1em 5px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-10-09 02:31:10 +02:00
|
|
|
// Tasks ..
|
|
|
|
.accepted {
|
|
|
|
color: #468847;
|
|
|
|
}
|
|
|
|
.unaccepted {
|
|
|
|
color: #B94A48;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Wiki
|
|
|
|
#wikiContent {
|
|
|
|
.editsection {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.mw-headline a {
|
|
|
|
color: @textColor;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2012-10-15 21:19:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ordering
|
2013-12-18 21:34:54 +01:00
|
|
|
.used {
|
2014-01-03 12:42:36 +01:00
|
|
|
color: @articleUsedColor;
|
2012-10-15 21:19:17 +02:00
|
|
|
}
|
2013-12-18 21:34:54 +01:00
|
|
|
.unused {
|
2014-01-03 12:42:36 +01:00
|
|
|
color: @articleUnusedColor;
|
2012-10-15 21:19:17 +02:00
|
|
|
}
|
2014-06-04 10:05:18 +02:00
|
|
|
.partused {
|
|
|
|
color: @articlePartusedColor;
|
|
|
|
}
|
2012-10-15 21:19:17 +02:00
|
|
|
|
|
|
|
#order-footer, .article-info {
|
|
|
|
text-align: left;
|
|
|
|
z-index: 1;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
background-color: #E4EED6;
|
|
|
|
border-top: 2px solid #78B74E;
|
|
|
|
|
|
|
|
#total-sum {
|
|
|
|
width: 22em;
|
|
|
|
margin: .5em 2em 0 0;
|
|
|
|
float: right;
|
|
|
|
#order-button {
|
|
|
|
margin: .5em 0;
|
|
|
|
|
|
|
|
input:disabled {
|
|
|
|
background-color: red; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#order-footer {
|
|
|
|
width: 100%;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article-info {
|
|
|
|
z-index: 2;
|
|
|
|
width: 40em;
|
|
|
|
height: 8em;
|
|
|
|
border: none;
|
|
|
|
left: 30px;
|
|
|
|
|
|
|
|
.article-name {
|
|
|
|
text-align: center;
|
|
|
|
margin: 2px 0;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
width: 100%;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.pull-right {
|
|
|
|
width: 35%;
|
|
|
|
}
|
|
|
|
.pull-left {
|
|
|
|
width: 60%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tr.order-article .article-info {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr.order-article:hover .article-info {
|
|
|
|
display: block;
|
|
|
|
}
|
2012-10-28 18:03:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
// ********* Articles
|
|
|
|
|
|
|
|
tr.just-updated {
|
2014-01-03 12:42:36 +01:00
|
|
|
color: @articleUpdatedColor;
|
2012-10-28 18:03:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tr.unavailable {
|
2014-01-03 12:42:36 +01:00
|
|
|
color: @articleUnavailColor;
|
2012-10-28 18:03:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// articles edit all
|
|
|
|
.field_with_errors {
|
|
|
|
input, select {
|
|
|
|
border-color: red;
|
|
|
|
}
|
2013-02-07 16:30:47 +01:00
|
|
|
}
|
|
|
|
|
2013-11-25 13:48:54 +01:00
|
|
|
// editable article list can be more compact
|
|
|
|
.ordered-articles input {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2014-01-09 12:17:25 +01:00
|
|
|
// allow content to appear without sudden table change (receive)
|
2013-11-25 13:48:54 +01:00
|
|
|
.units_delta {
|
2014-01-09 12:17:25 +01:00
|
|
|
min-width: 3.5em;
|
2013-11-25 13:48:54 +01:00
|
|
|
}
|
|
|
|
|
2014-01-21 11:55:26 +01:00
|
|
|
// small cells with just a 'x' or '='
|
|
|
|
td.symbol, th.symbol {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.symbol { color: tint(@textColor, @nonessentialDim); }
|
|
|
|
.used .symbol { color: tint(@articleUsedColor, @nonessentialDim); }
|
|
|
|
.unused .symbol { color: tint(@articleUnusedColor, @nonessentialDim); }
|
2014-06-04 10:05:18 +02:00
|
|
|
.partused .symbol { color: tint(@articlePartusedColor, @nonessentialDim); }
|
2014-01-21 11:55:26 +01:00
|
|
|
.unavailable .symbol { color: @articleUnavailColor; }
|
|
|
|
|
2014-01-23 16:17:16 +01:00
|
|
|
// hide symbols completely on small screens to save space
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.symbol {
|
|
|
|
font-size: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-21 11:55:26 +01:00
|
|
|
|
2013-02-07 16:30:47 +01:00
|
|
|
// ********* Tweaks & fixes
|
|
|
|
|
2014-01-13 14:44:18 +01:00
|
|
|
// Fix bootstrap dropdown menu on mobile
|
|
|
|
// https://github.com/twbs/bootstrap/issues/4550#issuecomment-31916049
|
|
|
|
.dropdown-backdrop { position: static; }
|
|
|
|
|
2013-02-08 01:52:20 +01:00
|
|
|
// need more space for supplier&order information (in German, at least)
|
2013-02-07 16:30:47 +01:00
|
|
|
.dl-horizontal {
|
2013-02-08 01:52:20 +01:00
|
|
|
dt { width: 160px; }
|
|
|
|
dd { margin-left: 170px; }
|
2013-02-07 16:30:47 +01:00
|
|
|
}
|
2013-06-14 22:38:07 +02:00
|
|
|
|
2014-01-17 13:14:49 +01:00
|
|
|
// get rid of extra bottom margin inside well
|
|
|
|
.well p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// center table rows vertically (including form elements)
|
|
|
|
table.table {
|
|
|
|
td, th {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
select, textarea, input, .uneditable-input,
|
|
|
|
.input-append, .input-prepend {
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-14 22:38:07 +02:00
|
|
|
.settings {
|
|
|
|
.settings-group {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
.control-label {
|
|
|
|
margin: 5px 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.control-group {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
.control-group.h_wrapper {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
.control-group.select {
|
|
|
|
margin-bottom: 15px
|
|
|
|
}
|
2013-07-18 18:48:49 +02:00
|
|
|
}
|
2013-09-23 21:31:54 +02:00
|
|
|
|
2014-03-16 02:08:15 +01:00
|
|
|
// inline (boolean) position after/before heading
|
|
|
|
label {
|
|
|
|
h1, h2, h3, h4 {
|
|
|
|
input[type=checkbox] {
|
|
|
|
margin: auto 0.3em auto 0.3em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-03 14:11:50 +01:00
|
|
|
// it's a bit distracting
|
|
|
|
.icon-asterisk {
|
|
|
|
font-size: 80%;
|
|
|
|
vertical-align: middle;
|
|
|
|
padding-bottom: 0.4ex;
|
|
|
|
}
|
|
|
|
|
2013-09-23 21:31:54 +02:00
|
|
|
// allow buttons as input add-on (with proper height)
|
|
|
|
.input-append button.add-on {
|
|
|
|
height: inherit;
|
|
|
|
}
|
2013-11-25 15:13:54 +01:00
|
|
|
|
2013-11-26 23:48:21 +01:00
|
|
|
// inline form elements
|
|
|
|
.inline {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2014-01-09 10:51:48 +01:00
|
|
|
// show package icon after amount of wholesale units
|
|
|
|
.package-image (@align) {
|
2014-06-04 13:21:30 +02:00
|
|
|
background-image: image-url('package-bg.png');
|
2014-01-09 10:51:48 +01:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: @align center;
|
|
|
|
}
|
2014-01-02 22:30:04 +01:00
|
|
|
input.package {
|
2014-01-09 10:51:48 +01:00
|
|
|
.package-image(right);
|
2014-01-03 10:59:42 +01:00
|
|
|
// disabled and readonly definitions though
|
|
|
|
&[disabled], &[readonly] {
|
|
|
|
background-color: @inputDisabledBackground;
|
|
|
|
}
|
2013-11-25 15:13:54 +01:00
|
|
|
}
|
|
|
|
i.package {
|
2014-01-09 10:51:48 +01:00
|
|
|
.package-image(left);
|
2014-01-02 22:30:04 +01:00
|
|
|
min-width: 18px;
|
2014-01-09 12:17:25 +01:00
|
|
|
min-height: 18px;
|
|
|
|
vertical-align: baseline;
|
2014-01-02 22:30:04 +01:00
|
|
|
font-style: normal;
|
2014-01-08 19:58:45 +01:00
|
|
|
padding-left: 20px;
|
2014-01-09 12:17:25 +01:00
|
|
|
@media (max-width: 979px) { padding-left: 0; }
|
|
|
|
}
|
|
|
|
i.package.icon-only {
|
|
|
|
padding-left: 6px;
|
|
|
|
background-position: right;
|
|
|
|
display: inline-block;
|
2014-01-02 22:30:04 +01:00
|
|
|
}
|
2014-01-03 14:11:50 +01:00
|
|
|
.package { color: tint(@textColor, @nonessentialDim); }
|
|
|
|
.used .package { color: tint(@articleUsedColor, @nonessentialDim); }
|
|
|
|
.unused .package { color: tint(@articleUnusedColor, @nonessentialDim); }
|
2014-06-04 10:05:18 +02:00
|
|
|
.partused .package { color: tint(@articlePartusedColor, @nonessentialDim); }
|
2014-01-03 12:42:36 +01:00
|
|
|
.unavailable .package { color: @articleUnavailColor; }
|
2014-01-03 10:59:42 +01:00
|
|
|
|
2014-01-08 19:58:45 +01:00
|
|
|
// very small inputs - need !important for responsive selectors
|
2013-11-25 15:13:54 +01:00
|
|
|
.input-nano {
|
2014-01-08 19:58:45 +01:00
|
|
|
width: 30px !important;
|
2013-11-25 15:13:54 +01:00
|
|
|
}
|
2013-12-18 17:03:26 +01:00
|
|
|
|
2013-12-06 14:25:58 +01:00
|
|
|
// get rid of extra space on bottom of dialog with form
|
|
|
|
.modal form {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2013-12-06 14:26:50 +01:00
|
|
|
|
2013-12-10 23:41:45 +01:00
|
|
|
// multiple-column layout in forms (landscape tablet and wider only)
|
2013-12-10 16:41:26 +01:00
|
|
|
@media (min-width: 768px) {
|
2013-12-10 23:41:45 +01:00
|
|
|
.form-horizontal .fold-line {
|
|
|
|
.control-group {
|
2013-12-10 16:41:26 +01:00
|
|
|
float: left;
|
|
|
|
}
|
2013-12-10 23:41:45 +01:00
|
|
|
.control-group + .control-group {
|
2013-12-10 16:41:26 +01:00
|
|
|
.control-label {
|
|
|
|
width: auto;
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
2013-12-10 23:41:45 +01:00
|
|
|
.controls {
|
|
|
|
float: left;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2013-12-10 16:41:26 +01:00
|
|
|
// fix margin somehow off
|
|
|
|
// XXX there must be a better way
|
|
|
|
margin-bottom: 0;
|
2013-12-10 16:48:39 +01:00
|
|
|
.help-block {
|
2014-05-06 10:56:50 +02:00
|
|
|
margin-top: 0;
|
2013-12-10 16:41:26 +01:00
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
}
|
2013-12-10 23:41:45 +01:00
|
|
|
.control-group:last-child {
|
|
|
|
float: none;
|
|
|
|
.controls {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
2013-12-23 15:25:45 +01:00
|
|
|
// allow to add a hint for the whole line
|
|
|
|
> .help-block {
|
|
|
|
clear: both;
|
|
|
|
margin-left: 180px;
|
|
|
|
position: relative;
|
|
|
|
top: -2.5ex;
|
|
|
|
}
|
2013-12-06 14:33:51 +01:00
|
|
|
}
|
|
|
|
}
|
2013-12-10 16:41:26 +01:00
|
|
|
// allow to have indicator text instead of input with same markup
|
|
|
|
.control-text {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2014-01-08 19:28:39 +01:00
|
|
|
|
|
|
|
// unlock button same size as warning sign
|
|
|
|
.input-prepend button.unlocker {
|
|
|
|
padding-right: 6px;
|
|
|
|
padding-left: 7px;
|
|
|
|
}
|