Commit ff1c0bc0 authored by Sigrid Suski's avatar Sigrid Suski

SobiAdminBS

git-svn-id: https://svn.sobi.pro/SobiPro/Addons/branches/SobiPro-1.1/Templates/SobiAdminBS@5184 42bd815b-6740-4516-9028-ea9f7a097aa0
parents
#ns {
.SobiPro() {
@import "font-awesome";
}
}
.SobiPro a [class^="icon-"],
.SobiPro a [class*=" icon-"] {
background-image: none;
margin-right: 0;
}
/** For Joomla! 3.0 default template */
.SobiPro [class^="icon-"]::before,
.SobiPro [class*=" icon-"]::before {
font-family: 'FontAwesome';
font-style: normal;
speak: none;
color: inherit;
}
.SobiPro .icon-eye:before { content: "\f06e"; }
.SobiPro {
#ns > .SobiPro;
}
// Editors
.CodeMirror {
height: calc(~"100vh - 400px");
min-height: 400px;
max-height: 800px;
}
// Modals
body.modal-open {
-ms-overflow-style: none;
}
.modal-header {
padding: 0 20px;
text-align: left;
h3 {
font-weight: normal;
line-height: 50px;
}
.close {
width: 50px;
margin-top: 0;
margin-right: -15px;
font-size: 2rem;
line-height: 50px;
border-left: 1px solid #ccc;
}
}
.modal-body {
padding: 0;
width: 100%;
height: auto;
.container-fluid {
padding-top: 15px;
padding-bottom: 15px;
}
}
.modal-footer {
clear: both;
}
.contentpane {
padding: 10px;
height: auto
}
@import "sobiadmin.less";
@import "less/bootstrap-rtl.less";
.navbar {
.admin-logo {
float: right;
padding: 7px 15px 0 12px;
}
.brand {
float: left;
padding: 6px 10px;
}
.nav {
margin: 0 0 0 10px;
> li > a {
padding: 6px 10px;
}
> li ul {
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
-moz-overflow-scrolling: touch;
-ms-overflow-scrolling: touch;
-o-overflow-scrolling: touch;
overflow-scrolling: touch;
height: auto;
max-height: 500px;
margin: 0;
&::-webkit-scrollbar {
-webkit-appearance: none;
width: 7px;
}
&::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0,0,0,.5);
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}
}
}
.nav > .dropdown.open:after {
right: 10px;
width: 0;
}
.empty-nav {
display: none;
}
}
#toolbar {
.btn {
padding: 0 10px;
}
[class^="icon-"], [class*=" icon-"] {
border-radius: 0 3px 3px 0;
border-right: 0;
border-left: 1px solid #b3b3b3;
margin: 0 -10px 0 6px;
}
}
.chzn-container-single .chzn-single {
padding-left: 8px;
div {
border-left: 0;
border-right: 1px solid #cccccc;
}
abbr {
left: 36px;
}
}
.chzn-container-active.chzn-with-drop .chzn-single div {
background-color: #f3f3f3;
border-bottom: 1px solid #cccccc;
border-bottom-left-radius: 0;
border-bottom-right-radius: 3px;
border-left: 1px solid #cccccc;
}
.chzn-container-multi .chzn-choices .search-choice {
padding-left: 7px;
.search-choice-close {
margin-left: 0;
margin-right: 3px;
}
}
.chzn-container .chzn-single.chzn-color[rel="value_0"] div,
.chzn-container .chzn-single.chzn-color[rel="value_1"] div {
border-right: none;
}
.chzn-container-single .chzn-search::after {
left: 20px;
right: auto;
}
.container-logo {
padding-top: 0;
float: left;
text-align: left;
}
.page-title {
[class^="icon-"],
[class*=" icon-"] {
margin-right: 0;
margin-left: 16px;
}
}
@media (max-width: 767px) {
.navbar {
.admin-logo {
margin-right: 10px;
padding: 9px 9px 0 9px;
}
.btn-navbar {
float: left;
margin-right: 5px;
margin-left: 3px;
}
.nav-collapse .nav.pull-left {
float: none;
margin-left: 0;
margin-right: 0;
}
}
.nav-collapse .nav > li {
float: none;
}
.page-title {
[class^="icon-"],
[class*=" icon-"] {
margin-left: 10px;
}
}
}
/* Status module */
#status {
padding: 4px 10px;
.btn-group {
margin: 0;
}
.btn-group.separator:after {
content: ' ';
display: block;
float: left;
background: #ADADAD;
margin: 0 10px;
height: 15px;
width: 1px;
}
.badge {
margin-left: .25em;
margin-right: 0;
}
}
/* Menus */
.dropdown-menu > li > a {
text-align: right;
}
/* btn-group */
.btn-group.btn-group-yesno > .btn, .btn-group > .btn + .dropdown-toggle {
float: none;
}
/* Modal batch */
@media (min-width: 768px) {
.row-fluid [class*="span"] {
margin-right: 15px;
margin-left: 0;
}
.row-fluid .modal-batch [class*="span"] {
margin-right: 0;
}
}
.row-fluid .modal-batch [class*="span"] {
margin-right: 0;
}
/* Extended Responsive Styles */
@media (max-width: 480px) {
.btn-toolbar .btn-wrapper .btn {
width: 100% !important;
margin-right:0;
}
.btn-toolbar .btn-wrapper {
margin:0 10px 5px 10px;
}
}
/* Modal footer */
.modal-footer button {
float: left;
}
/* Modal Header text align right even if parent container centered */
.modal-header {
text-align: right;
}
/* SubForms (Table) */
.subform-table-layout {
td {
padding-left: 10px;
&::before {
content: attr(data-column);
left: auto;
right: 10px;
padding-left: 10px;
padding-right: 0;
}
}
.subform-repeatable tbody td:last-of-type {
text-align: left;
}
.form-horizontal .controls {
margin-top: 0;
}
}
\ No newline at end of file
#ns {
.SobiPro() {
@import "sobiadmin.less";
} }
.SobiPro {
#ns > .SobiPro;
}
@import "variables.less";
@import "bootstrap/mixins.less";
@import "scopeless.less";
//
// Button groups
// --------------------------------------------------
// Make the div behave like a button
.btn-group {
position: relative;
display: inline-block;
.ie7-inline-block();
font-size: 0; // remove as part 1 of font-size inline-block hack
vertical-align: middle; // match .btn alignment given font-size hack above
white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
.ie7-restore-left-whitespace();
}
// Space out series of button groups
.btn-group + .btn-group {
margin-left: 5px;
}
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
font-size: 0; // Hack to remove whitespace that results from using inline-block
margin-top: (@baseLineHeight / 2);
margin-bottom: (@baseLineHeight / 2);
> .btn + .btn,
> .btn-group + .btn,
> .btn + .btn-group {
margin-left: 5px;
}
}
// Float them, remove border radius, then re-add to first and last elements
.btn-group > .btn {
position: relative;
.border-radius(0);
}
.btn-group > .btn + .btn {
// margin-left: -1px;
}
.btn-group > .btn-micro {
margin-left: -1px;
}
.btn-group > .btn,
.btn-group > .dropdown-menu,
.btn-group > .popover {
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
}
// Reset fonts for other sizes
.btn-group > .btn-mini {
font-size: @fontSizeMini;
}
.btn-group > .btn-small {
font-size: @fontSizeSmall;
}
.btn-group > .btn-large {
font-size: @fontSizeLarge;
}
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child {
margin-left: 0;
.border-top-left-radius(@baseBorderRadius);
.border-bottom-left-radius(@baseBorderRadius);
}
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle {
.border-top-right-radius(@baseBorderRadius);
.border-bottom-right-radius(@baseBorderRadius);
}
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
margin-left: 0;
.border-top-left-radius(@borderRadiusLarge);
.border-bottom-left-radius(@borderRadiusLarge);
}
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
.border-top-right-radius(@borderRadiusLarge);
.border-bottom-right-radius(@borderRadiusLarge);
}
// On hover/focus/active, bring the proper btn to front
.btn-group > .btn:hover,
.btn-group > .btn:focus,
.btn-group > .btn:active,
.btn-group > .btn.active {
z-index: 2;
}
// On active and open, don't show outline
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
// Split button dropdowns
// ----------------------
// Give the line between buttons some depth
.btn-group > .btn + .dropdown-toggle {
padding-left: 8px;
padding-right: 8px;
*padding-top: 5px;
*padding-bottom: 5px;
}
.btn-group > .btn-mini + .dropdown-toggle {
padding-left: 5px;
padding-right: 5px;
*padding-top: 2px;
*padding-bottom: 2px;
}
.btn-group > .btn-small + .dropdown-toggle {
*padding-top: 5px;
*padding-bottom: 4px;
}
.btn-group > .btn-large + .dropdown-toggle {
padding-left: 12px;
padding-right: 12px;
*padding-top: 7px;
*padding-bottom: 7px;
}
.btn-group.open {
// The clickable button for toggling the menu
// Remove the gradient and set the same inset shadow as the :active state
.dropdown-toggle {
background-image: none;
}
// Keep the hover's background when dropdown is open
.btn.dropdown-toggle {
background-color: @btnBackgroundHighlight;
}
.btn-primary.dropdown-toggle {
background-color: @btnPrimaryBackgroundHighlight;
}
.btn-warning.dropdown-toggle {
background-color: @btnWarningBackgroundHighlight;
}
.btn-danger.dropdown-toggle {
background-color: @btnDangerBackgroundHighlight;
}
.btn-success.dropdown-toggle {
background-color: @btnSuccessBackgroundHighlight;
}
.btn-info.dropdown-toggle {
background-color: @btnInfoBackgroundHighlight;
}
.btn-inverse.dropdown-toggle {
background-color: @btnInverseBackgroundHighlight;
}
}
// Reposition the caret
.btn .caret {
margin-top: 8px;
margin-left: 0;
}
// Carets in other button sizes
.btn-large .caret {
margin-top: 6px;
}
.btn-large .caret {
border-left-width: 5px;
border-right-width: 5px;
border-top-width: 5px;
}
.btn-mini .caret,
.btn-small .caret {
margin-top: 8px;
}
// Upside down carets for .dropup
.dropup .btn-large .caret {
border-bottom-width: 5px;
}
// Account for other colors
.btn-primary {
.caret {
border-top-color: @linkColorHover;
border-bottom-color: @linkColorHover;
}
}
.btn-warning,
.btn-danger,
.btn-info,
.btn-success,
.btn-inverse {
.caret {
border-top-color: @white;
border-bottom-color: @white;
}
}
// Vertical button groups
// ----------------------
.btn-group-vertical {
display: inline-block; // makes buttons only take up the width they need
.ie7-inline-block();
}
.btn-group-vertical > .btn {
display: block;
float: none;
max-width: 100%;
.border-radius(0);
}
.btn-group-vertical > .btn + .btn {
margin-left: 0;
margin-top: -1px;
}
.btn-group-vertical > .btn:first-child {
.border-radius(@baseBorderRadius @baseBorderRadius 0 0);
}
.btn-group-vertical > .btn:last-child {
.border-radius(0 0 @baseBorderRadius @baseBorderRadius);
}
.btn-group-vertical > .btn-large:first-child {
.border-radius(@borderRadiusLarge @borderRadiusLarge 0 0);
}
.btn-group-vertical > .btn-large:last-child {
.border-radius(0 0 @borderRadiusLarge @borderRadiusLarge);
}
//
// Buttons
// --------------------------------------------------
// Base styles
// --------------------------------------------------
// Core
.btn {
display: inline-block;
.ie7-inline-block();
padding: 4px 12px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
text-align: center;
vertical-align: middle;
cursor: pointer;
background-color: @btnBackground;
color: #333;
// .buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
border: 1px solid @btnBorder;
.border-radius(@baseBorderRadius);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
&:hover,
&:focus {
background-color: @btnBackgroundHighlight;
text-decoration: none;
text-shadow: none;
}
// Focus state for keyboard and accessibility
&:focus {
.tab-focus();
}
// Active state
&.active,
&:active {
background-image: none;
outline: 0;
// .box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
}
// Disabled state
&.disabled,
&[disabled] {
cursor: default;
background-image: none;
.opacity(65);
.box-shadow(none);
}
}
// Button Sizes
// --------------------------------------------------
// Large
.btn-large {
padding: @paddingLarge;
font-size: @fontSizeLarge;
.border-radius(@borderRadiusLarge);
}
.btn-large [class^="icon-"],
.btn-large [class*=" icon-"] {
margin-top: 4px;
}
// Small
.btn-small {
padding: @paddingSmall;
font-size: @fontSizeSmall;
.border-radius(@borderRadiusSmall);
}
.btn-small [class^="icon-"],
.btn-small [class*=" icon-"] {
margin-top: 0;
}
.btn-mini [class^="icon-"],
.btn-mini [class*=" icon-"] {
margin-top: -1px;
}
// Mini
.btn-mini {
padding: @paddingMini;
font-size: @fontSizeMini;
.border-radius(@borderRadiusSmall);
}
// Block button
// -------------------------
.btn-block {
display: block;
width: 100%;
padding-left: 0;
padding-right: 0;
.box-sizing(border-box);
}
// Vertically space out multiple block buttons
.btn-block + .btn-block {
margin-top: 5px;
}
// Specificity overrides
input[type="submit"],
input[type="reset"],
input[type="button"] {
&.btn-block {
width: 100%;
}
}
// Alternate buttons
// --------------------------------------------------
.btn-primary,
.btn-warning,
.btn-danger,
.btn-success,
.btn-info,
.btn-sobipro,
.btn-inverse {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
// Provide *some* extra contrast for those who can get it
.btn-primary.active,
.btn-warning.active,
.btn-danger.active,
.btn-success.active,
.btn-info.active,
.btn-inverse.active {
// color: rgba(255,255,255,.75);
}
// Set the backgrounds
// -------------------------
.btn-primary {
border: 1px solid @btnPrimaryBackgroundHighlight;
border: 1px solid rgba(0, 0, 0, 0.2);
color: #fff;
background-color: @btnPrimaryBackground;
&:hover,
&:focus {
background-color: darken(@btnPrimaryBackground, 15%);
color: #fff;
text-decoration: none;
}
}
// Warning appears are orange
.btn-warning {
border: 1px solid @btnWarningBackground;
border: 1px solid rgba(0, 0, 0, 0.2);
color: #fff;
background-color: @btnWarningBackground;
&:hover,
&:focus {
background-color: darken(@btnWarningBackground, 15%);
color: #fff;
text-decoration: none;
text-shadow: none;
}
}
// Danger and error appear as red
.btn-danger {
border: 1px solid @btnDangerBackground;
border: 1px solid rgba(0, 0, 0, 0.2);
color: #fff;
background-color: @btnDangerBackground;
&:hover,
&:focus {
background-color: darken(@btnDangerBackground, 15%);
color: #fff;
text-decoration: none;
}
}
// Success appears as green
.btn-success {
border: 1px solid @btnSuccessBackgroundHighlight;
border: 1px solid rgba(0, 0, 0, 0.2);
color: #fff;
background-color: @btnSuccessBackground;
&:hover,
&:focus {