foodsoft/app/assets/stylesheets/bootstrap_and_overrides.css.less

267 lines
4.7 KiB
Text
Raw Normal View History

@import "twitter/bootstrap/bootstrap";
2013-07-17 11:31:12 +02:00
@import "twitter/bootstrap/responsive";
body {
padding-top: 10px;
}
// 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');
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
@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';
2013-07-17 11:31:12 +02:00
// Glyphicons
//@import "twitter/bootstrap/sprites.less";
// 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
//
// Example:
// @linkColor: #ff0000;
2012-10-08 21:52:03 +02:00
// Custom styles
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,
.form-horizontal .controls.controls-intable {
margin: 0;
}
// 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;
}
@mainRedColor: #ED0606;
.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;
}
footer {
margin-top: 50px;
padding-top: 20px;
border-top: 1px solid lightGrey;
}
table {
2012-10-19 01:12:47 +02:00
a.sortdown:after {
2012-10-19 01:12:47 +02:00
content: ' \25BC';
}
a.sortup:after {
2012-10-19 01:12:47 +02:00
content: ' \25B2';
}
tr.article-category {
background-color: #efefef;
td:first-child {
text-align: left;
}
}
th.numeric, td.numeric {
text-align: right;
}
td.odd {
background-color: @tableBackgroundAccent;
}
2012-10-30 00:20:47 +01:00
tr.selected td {
background-color: @successBackground;
}
}
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;
}
}
// ordering
span.used {
color: green;
}
span.unused {
color: red;
}
#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 {
color: #468847;
}
tr.unavailable {
color: #999;
}
// articles edit all
.field_with_errors {
input, select {
border-color: red;
}
2013-02-07 16:30:47 +01:00
}
// editable article list can be more compact
.ordered-articles input {
margin-bottom: 0;
}
// entering units
.units_delta {
width: 2em;
}
2013-02-07 16:30:47 +01:00
// ********* Tweaks & fixes
// need more space for supplier&order information (in German, at least)
2013-02-07 16:30:47 +01:00
.dl-horizontal {
dt { width: 160px; }
dd { margin-left: 170px; }
2013-02-07 16:30:47 +01:00
}
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
}
}
// allow buttons as input add-on (with proper height)
.input-append button.add-on {
height: inherit;
}
// show package icon after amount of package numbers
.package {
background: url(package-bg.png) no-repeat right center;
}
i.package {
width: 18px;
color: transparent; // hide text inside
}
.input-nano {
width: 30px;
}