first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1,82 @@
//
// Buttons
// This is a custom version of Bootstrap's buttons.less file suited for Hathor's needs
// --------------------------------------------------
// Base styles
// --------------------------------------------------
// Core
#form-login .btn {
display: inline-block;
.ie7-inline-block();
padding: 4px 14px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
*line-height: @baseLineHeight;
text-align: center;
vertical-align: middle;
cursor: pointer;
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
border: 1px solid @btnBorder;
*border: 0; // Remove the border to prevent IE7's black border on input:focus
border-bottom-color: darken(@btnBorder, 10%);
.border-radius(4px);
.ie7-restore-left-whitespace(); // Give IE7 some love
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
// Hover state
&:hover {
color: @grayDark;
text-decoration: none;
background-color: darken(@white, 10%);
*background-color: darken(@white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
background-position: 0 -15px;
// transition is only when going to hover, otherwise the background
// behind the gradient (there for IE<=9 fallback) gets mismatched
.transition(background-position .1s linear);
}
// Focus state for keyboard and accessibility
&:focus {
.tab-focus();
}
// Active state
&.active,
&:active {
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
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-color: darken(@white, 10%);
background-image: none;
.opacity(65);
.box-shadow(none);
}
}
// Button Sizes
// --------------------------------------------------
// Large
.btn-large {
padding: 9px 14px;
font-size: @baseFontSize + 2px;
line-height: normal;
.border-radius(5px);
}
.btn-large [class^="icon-"] {
margin-top: 2px;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
// colour_blue.less
//
// Less to compile Hathor in the blue colour scheme
// -----------------------------------------------------
/**
* #2c2c2c Text
* #054993 Links
* #ffffff Background, border, text
* #c3d2e5 Background alternate, button/icon/menu background
* #a5bbd4-c3d2e5 Gradient Background
* #e5f0fa Background (input required)
* #e5d9c3 Background Hover, Top/Left icon borders
* #738498 Main borders
* #868778 Top/Left hover borders
* #f6f7db Right/Bottom hover borders
*
* Special Use Colors:
* #a20000 Text Error, border invalid
* #cccccc Text (faded)
* #005800 Text (success)
* #eeeeee Background (input disabled)
* #ffffcf Background permissions debug
* #cfffda Background permissions debug
* #ffcfcf Background permissions debug
*/
// Import the variables file first to get common variables loaded
@import "hathor_variables.less";
// Define variables unique to this colour scheme, as well as override variables already defined in the common file
@altBackground: #c3d2e5;
@gradientTop: #a5bbd4;
@gradientBottom: #c3d2e5;
@mainBorder: #738498;
// Import the baseline to compile the CSS
@import "colour_baseline.less";

View File

@ -0,0 +1,42 @@
// colour_brown.less
//
// Less to compile Hathor in the brown colour scheme
// -----------------------------------------------------
/**
* #2c2c2c Text
* #054993 Links
* #ffffff Background, border, text
* #d5c1b2 Background alternate, button/icon/menu background
* #d5c1b2-d5c1b2 Gradient Background
* #e5f0fa Background (input required)
* #e1d3c8 Background Hover, Top/Left icon borders
* #000000 Main borders
* #000000 Top/Left hover borders
* #000000 Right/Bottom hover borders
*
* Special Use Colors:
* #a20000 Text Error, border invalid
* #cccccc Text (faded)
* #005800 Text (success)
* #eeeeee Background (input disabled)
* #ffffcf Background permissions debug
* #cfffda Background permissions debug
* #ffcfcf Background permissions debug
*/
// Import the variables file first to get common variables loaded
@import "hathor_variables.less";
// Define variables unique to this colour scheme, as well as override variables already defined in the common file
@altBackground: #d5c1b2;
@gradientTop: #d5c1b2;
@gradientBottom: #d5c1b2;
@mainBorder: #000000;
@toolbarColor: #000000;
@hoverBackground: #e1d3c8;
@NWBorder: #000000;
@SEBorder: #000000;
// Import the baseline to compile the CSS
@import "colour_baseline.less";

View File

@ -0,0 +1,38 @@
// colour_standard.less
//
// Less to compile Hathor in the default colour scheme
// -----------------------------------------------------
/**
* Main colors:
* #2c2c2c Text
* #054993 Links
* #ffffff Background, border, text
* #f9fade Background alternate, button/icon/menu background
* #e5f0fa Background (input required)
* #e3e4ca Background Hover, Right/Bottom icon borders
* #c7c8b2 Main borders
* #868778 Top/Left icon hover borders
* #f6f7db Right/Bottom icon hover borders
*
* Special Use Colors:
* #a20000 Text Error, border invalid
* #cccccc Text (faded)
* #005800 Text (success)
* #eeeeee Background (input disabled)
* #ffffcf Background permissions debug
* #cfffda Background permissions debug
* #ffcfcf Background permissions debug
*/
// Import the variables file first to get common variables loaded
@import "hathor_variables.less";
// Define variables unique to this colour scheme, as well as override variables already defined in the common file
@altBackground: #f9fade;
@gradientTop: #f9fade;
@gradientBottom: #f9fade;
@mainBorder: #c7c8b2;
// Import the baseline to compile the CSS
@import "colour_baseline.less";

View File

@ -0,0 +1,172 @@
//
// Forms
// This is a custom version of Bootstrap's forms.less file suited for Hathor's needs
// --------------------------------------------------
// Ensure input-prepend/append never wraps
.input-append input[class*="span"],
.input-append .uneditable-input[class*="span"],
.input-prepend input[class*="span"],
.input-prepend .uneditable-input[class*="span"],
.row-fluid input[class*="span"],
.row-fluid select[class*="span"],
.row-fluid textarea[class*="span"],
.row-fluid .uneditable-input[class*="span"],
.row-fluid .input-prepend [class*="span"],
.row-fluid .input-append [class*="span"] {
display: inline-block;
}
// Allow us to put symbols and text within the input field for a cleaner look
.input-append,
.input-prepend {
margin-bottom: 5px;
font-size: 0;
white-space: nowrap; // Prevent span and input from separating
input,
select,
.uneditable-input {
position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
*margin-left: 0;
font-size: @baseFontSize;
vertical-align: top;
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
// Make input on top when focused so blue border and shadow always show
&:focus {
z-index: 2;
}
}
.add-on {
display: inline-block;
width: auto;
height: @baseLineHeight;
min-width: 16px;
padding: 4px 5px;
font-size: @baseFontSize;
font-weight: normal;
line-height: @baseLineHeight;
text-align: center;
text-shadow: 0 1px 0 @white;
background-color: @grayLighter;
border: 1px solid #ccc;
}
.add-on,
.btn {
margin-left: -1px;
vertical-align: top;
.border-radius(0);
}
.active {
background-color: lighten(@green, 30);
border-color: @green;
}
}
.input-prepend {
.add-on,
.btn {
margin-right: -1px;
}
.add-on:first-child,
.btn:first-child {
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
}
.input-append {
input,
select,
.uneditable-input {
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
.add-on:last-child,
.btn:last-child {
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
// Remove all border-radius for inputs with both prepend and append
.input-prepend.input-append {
input,
select,
.uneditable-input {
.border-radius(0);
}
.add-on:first-child,
.btn:first-child {
margin-right: -1px;
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
}
.add-on:last-child,
.btn:last-child {
margin-left: -1px;
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
}
}
/* Allow for input prepend/append in search forms */
.form-search .input-append .search-query,
.form-search .input-prepend .search-query {
.border-radius(0); // Override due to specificity
}
.form-search .input-append .search-query {
.border-radius(14px 0 0 14px)
}
.form-search .input-append .btn {
.border-radius(0 14px 14px 0)
}
.form-search .input-prepend .search-query {
.border-radius(0 14px 14px 0)
}
.form-search .input-prepend .btn {
.border-radius(14px 0 0 14px)
}
.form-search,
.form-inline,
.form-horizontal {
input,
textarea,
select,
.help-inline,
.uneditable-input,
.input-prepend,
.input-append {
display: inline-block;
.ie7-inline-block();
margin-bottom: 0;
vertical-align: middle;
}
// Re-hide hidden elements due to specifity
.hide {
display: none;
}
}
// Remove margin for input-prepend/-append
.form-search .input-append,
.form-inline .input-append,
.form-search .input-prepend,
.form-inline .input-prepend {
margin-bottom: 0;
}
/* Accessible Hidden Elements (good for hidden labels and such) */
.element-invisible{
position: absolute;
padding: 0 !important;
margin: 0 !important;
border: 0;
height: 1px;
width: 1px !important;
overflow: hidden;
}
// Login form only
// Shared size and type resets
#form-login select,
#form-login input[type="text"],
#form-login input[type="password"] {
display: inline-block;
padding: 4px 6px;
margin-bottom: 9px;
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @gray;
.border-radius(@inputBorderRadius);
width: 175px;
}

View File

@ -0,0 +1,140 @@
// hathor_variables.less
//
// Less file containing Bootstrap variables needed to compile its CSS
// -----------------------------------------------------
// Grays
// -------------------------
@black: #000000;
@grayDarker: #222222;
@grayDark: #333333;
@gray: #555555;
@grayLight: #999999;
@grayLighter: #eeeeee;
@white: #ffffff;
// Accent colors
// -------------------------
@blue: #049cdb;
@blueDark: #0064cd;
@green: #46a546;
@red: #9d261d;
@yellow: #ffc40d;
@orange: #f89406;
@pink: #c3325f;
@purple: #7a43b6;
// Scaffolding
// -------------------------
@bodyBackground: @white;
@textColor: #2c2c2c;
// Links
// -------------------------
@linkColor: #054993;
@linkColorHover: darken(@linkColor, 15%);
// Typography
// -------------------------
@baseFontSize: 13px;
@baseLineHeight: 15px;
@headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
@headingsFontWeight: bold; // instead of browser default, bold
@headingsColor: inherit; // empty to use BS default, @textColor
// Component sizing
// -------------------------
@baseBorderRadius: 4px;
@borderRadiusLarge: 6px;
@borderRadiusSmall: 3px;
// Buttons
// -------------------------
@btnBackground: @white;
@btnBackgroundHighlight: darken(@white, 10%);
@btnBorder: #bbb;
@btnPrimaryBackground: @linkColor;
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
@btnInfoBackground: #5bc0de;
@btnInfoBackgroundHighlight: #2f96b4;
@btnSuccessBackground: #62c462;
@btnSuccessBackgroundHighlight: #51a351;
@btnWarningBackground: lighten(@orange, 15%);
@btnWarningBackgroundHighlight: @orange;
@btnDangerBackground: #ee5f5b;
@btnDangerBackgroundHighlight: #bd362f;
@btnInverseBackground: #444;
@btnInverseBackgroundHighlight: @grayDarker;
// Forms
// -------------------------
@inputBackground: #e5f0fa;
@inputBorder: #ccc;
@inputBorderRadius: 3px;
@inputDisabledBackground: @grayLighter;
@formActionsBackground: #f5f5f5;
@inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
// Z-index master list
// -------------------------
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
@zindexDropdown: 1000;
@zindexPopover: 1010;
@zindexTooltip: 1030;
@zindexFixedNavbar: 1030;
@zindexModalBackdrop: 1040;
@zindexModal: 1050;
// Form states and alerts
// -------------------------
@warningText: #c09853;
@warningBackground: #fcf8e3;
@warningBorder: darken(spin(@warningBackground, -10), 3%);
@errorText: #a20000;
@errorBackground: #f2dede;
@errorBorder: darken(spin(@errorBackground, -10), 3%);
@successText: #005800;
@successBackground: #dff0d8;
@successBorder: darken(spin(@successBackground, -10), 5%);
@infoText: #3a87ad;
@infoBackground: #d9edf7;
@infoBorder: darken(spin(@infoBackground, -10), 7%);
// Tooltips and popovers
// -------------------------
@tooltipColor: @white;
@tooltipBackground: @black;
@tooltipArrowWidth: 5px;
@tooltipArrowColor: @tooltipBackground;
@popoverBackground: @white;
@popoverArrowWidth: 10px;
@popoverArrowColor: @white;
@popoverTitleBackground: darken(@popoverBackground, 3%);
// Special enhancement for popovers
@popoverArrowOuterWidth: @popoverArrowWidth + 1;
@popoverArrowOuterColor: rgba(0,0,0,.25);
// Variables unique to Hathor
// -------------------------
@toolbarColor: @linkColor;
@hoverBackground: #e5d9c3;
@NWBorder: #868778;
@SEBorder: #f6f7db;
@fadedText: #cccccc;
@disabledBackground: #eeeeee;
@permissionDefault: #ffffcf;
@permissionAllowed: #cfffda;
@permissionDenied: #ffcfcf;

View File

@ -0,0 +1,468 @@
@font-face {
font-family: 'IcoMoon';
src: url('../../../../media/jui/fonts/IcoMoon.eot');
src: url('../../../../media/jui/fonts/IcoMoon.eot?#iefix') format('embedded-opentype'),
url('../../../../media/jui/fonts/IcoMoon.woff') format('woff'),
url('../../../../media/jui/fonts/IcoMoon.ttf') format('truetype'),
url('../../../../media/jui/fonts/IcoMoon.svg#IcoMoon') format('svg');
font-weight: normal;
font-style: normal;
}
/* Use the following CSS code if you want to use data attributes for inserting your icons */
[data-icon]:before {
font-family: 'IcoMoon';
content: attr(data-icon);
speak: none;
}
/* From Bootstrap */
[class^="icon-"],
[class*=" icon-"] {
display: inline-block;
width: 14px;
height: 14px;
.ie7-restore-right-whitespace();
line-height: 14px;
}
/* Use the following CSS code if you want to have a class per icon */
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: 'IcoMoon';
font-style: normal;
speak: none;
}
.icon-home:before {
content: "\21";
}
.icon-user:before {
content: "\22";
}
.icon-checkedout:before,
.icon-lock:before,
.icon-locked:before {
content: "\23";
}
.icon-comment:before,
.icon-comments:before {
content: "\24";
}
.icon-comments-2:before {
content: "\25";
}
.icon-share-alt:before,
.icon-out:before {
content: "\26";
}
.icon-share:before,
.icon-redo:before {
content: "\27";
}
.icon-undo:before {
content: "\28";
}
.icon-file-add:before {
content: "\29";
}
.icon-new:before,
.icon-plus:before {
content: "\2a";
}
.icon-apply:before,
.icon-edit:before,
.icon-pencil:before {
content: "\2b";
}
.icon-pencil-2:before {
content: "\2c";
}
.icon-folder-open:before,
.icon-folder:before {
content: "\2d";
}
.icon-folder-close:before,
.icon-folder-2:before {
content: "\2e";
}
.icon-picture:before {
content: "\2f";
}
.icon-pictures:before {
content: "\30";
}
.icon-list:before,
.icon-list-view:before {
content: "\31";
}
.icon-power-cord:before {
content: "\32";
}
.icon-cube:before {
content: "\33";
}
.icon-puzzle:before {
content: "\34";
}
.icon-flag:before {
content: "\35";
}
.icon-tools:before {
content: "\36";
}
.icon-cogs:before {
content: "\37";
}
.icon-options:before,
.icon-cog:before {
content: "\38";
}
.icon-equalizer:before {
content: "\39";
}
.icon-wrench:before {
content: "\3a";
}
.icon-brush:before {
content: "\3b";
}
.icon-eye-open:before,
.icon-eye:before {
content: "\3c";
}
.icon-checkbox-unchecked:before {
content: "\3d";
}
.icon-checkin:before,
.icon-checkbox:before {
content: "\3e";
}
.icon-checkbox-partial:before {
content: "\3f";
}
.icon-unfeatured:before,
.icon-asterisk:before,
.icon-star-empty:before {
content: "\40";
}
.icon-star-2:before {
content: "\41";
}
.icon-featured:before,
.icon-default:before,
.icon-star:before {
content: "\42";
}
.icon-calendar:before {
content: "\43";
}
.icon-calendar-2:before {
content: "\44";
}
.icon-question-sign:before,
.icon-help:before {
content: "\45";
}
.icon-support:before {
content: "\46";
}
.icon-pending:before,
.icon-warning:before {
content: "\48";
}
.icon-publish:before,
.icon-save:before,
.icon-ok:before,
.icon-checkmark:before {
content: "\47";
}
.icon-unpublish:before,
.icon-cancel:before {
content: "\4a";
}
.icon-eye-close:before,
.icon-minus:before {
content: "\4b";
}
.icon-purge:before,
.icon-trash:before {
content: "\4c";
}
.icon-envelope:before,
.icon-mail:before {
content: "\4d";
}
.icon-mail-2:before {
content: "\4e";
}
.icon-unarchive:before,
.icon-drawer:before {
content: "\4f";
}
.icon-archive:before,
.icon-drawer-2:before {
content: "\50";
}
.icon-box-add:before {
content: "\51";
}
.icon-box-remove:before {
content: "\52";
}
.icon-search:before {
content: "\53";
}
.icon-filter:before {
content: "\54";
}
.icon-camera:before {
content: "\55";
}
.icon-play:before {
content: "\56";
}
.icon-music:before {
content: "\57";
}
.icon-grid-view:before {
content: "\58";
}
.icon-grid-view-2:before {
content: "\59";
}
.icon-menu:before {
content: "\5a";
}
.icon-thumbs-up:before {
content: "\5b";
}
.icon-thumbs-down:before {
content: "\5c";
}
.icon-delete:before,
.icon-remove:before,
.icon-cancel-2:before {
content: "\49";
}
.icon-save-new:before,
.icon-plus-2:before {
content: "\5d";
}
.icon-ban-circle:before,
.icon-minus-sign:before,
.icon-minus-2:before {
content: "\5e";
}
.icon-key:before {
content: "\5f";
}
.icon-quote:before {
content: "\60";
}
.icon-quote-2:before {
content: "\61";
}
.icon-database:before {
content: "\62";
}
.icon-location:before {
content: "\63";
}
.icon-zoom-in:before {
content: "\64";
}
.icon-zoom-out:before {
content: "\65";
}
.icon-expand:before {
content: "\66";
}
.icon-contract:before {
content: "\67";
}
.icon-expand-2:before {
content: "\68";
}
.icon-contract-2:before {
content: "\69";
}
.icon-health:before {
content: "\6a";
}
.icon-wand:before {
content: "\6b";
}
.icon-unblock:before,
.icon-refresh:before {
content: "\6c";
}
.icon-vcard:before {
content: "\6d";
}
.icon-clock:before {
content: "\6e";
}
.icon-compass:before {
content: "\6f";
}
.icon-address:before {
content: "\70";
}
.icon-feed:before {
content: "\71";
}
.icon-flag-2:before {
content: "\72";
}
.icon-pin:before {
content: "\73";
}
.icon-lamp:before {
content: "\74";
}
.icon-chart:before {
content: "\75";
}
.icon-bars:before {
content: "\76";
}
.icon-pie:before {
content: "\77";
}
.icon-dashboard:before {
content: "\78";
}
.icon-lightning:before {
content: "\79";
}
.icon-move:before {
content: "\7a";
}
.icon-next:before {
content: "\7b";
}
.icon-previous:before {
content: "\7c";
}
.icon-first:before {
content: "\7d";
}
.icon-last:before {
content: "\e000";
}
.icon-loop:before {
content: "\e001";
}
.icon-shuffle:before {
content: "\e002";
}
.icon-arrow-first:before {
content: "\e003";
}
.icon-arrow-last:before {
content: "\e004";
}
.icon-chevron-up:before,
.icon-uparrow:before,
.icon-arrow-up:before {
content: "\e005";
}
.icon-chevron-right:before,
.icon-arrow-right:before {
content: "\e006";
}
.icon-chevron-down:before,
.icon-downarrow:before,
.icon-arrow-down:before {
content: "\e007";
}
.icon-chevron-left:before,
.icon-arrow-left:before {
content: "\e008";
}
.icon-arrow-up-2:before {
content: "\e009";
}
.icon-arrow-right-2:before {
content: "\e00a";
}
.icon-download:before,
.icon-arrow-down-2:before {
content: "\e00b";
}
.icon-arrow-left-2:before {
content: "\e00c";
}
.icon-play-2:before {
content: "\e00d";
}
.icon-menu-2:before {
content: "\e00e";
}
.icon-arrow-up-3:before {
content: "\e00f";
}
.icon-arrow-right-3:before {
content: "\e010";
}
.icon-arrow-down-3:before {
content: "\e011";
}
.icon-arrow-left-3:before {
content: "\e012";
}
.icon-print:before,
.icon-printer:before {
content: "\e013";
}
.icon-color-palette:before {
content: "\e014";
}
.icon-camera-2:before {
content: "\e015";
}
.icon-file:before {
content: "\e016";
}
.icon-file-remove:before {
content: "\e017";
}
.icon-save-copy:before,
.icon-copy:before {
content: "\e018";
}
.icon-cart:before {
content: "\e019";
}
.icon-basket:before {
content: "\e01a";
}
.icon-broadcast:before {
content: "\e01b";
}
.icon-screen:before {
content: "\e01c";
}
.icon-tablet:before {
content: "\e01d";
}
.icon-mobile:before {
content: "\e01e";
}
.icon-users:before {
content: "\e01f";
}
.icon-briefcase:before {
content: "\e020";
}
.icon-download:before {
content: "\e021";
}
.icon-upload:before {
content: "\e022";
}
.icon-bookmark:before {
content: "\e023";
}
.icon-out-2:before {
content: "\e024";
}

View File

@ -0,0 +1 @@
<!DOCTYPE html><title></title>

View File

@ -0,0 +1,90 @@
// MODALS
// ------
// Recalculate z-index where appropriate
.modal-open {
.dropdown-menu { z-index: @zindexDropdown + @zindexModal; }
.dropdown.open { *z-index: @zindexDropdown + @zindexModal; }
.popover { z-index: @zindexPopover + @zindexModal; }
.tooltip { z-index: @zindexTooltip + @zindexModal; }
}
// Background
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: @zindexModalBackdrop;
background-color: @black;
// Fade for backdrop
&.fade { opacity: 0; }
}
.modal-backdrop,
.modal-backdrop.fade.in {
.opacity(80);
}
// Base modal
div.modal {
position: fixed;
top: 50%;
left: 50%;
z-index: @zindexModal;
overflow: auto;
width: 560px;
margin: -250px 0 0 -280px;
background-color: @white;
border: 1px solid #999;
border: 1px solid rgba(0,0,0,.3);
*border: 1px solid #999; /* IE6-7 */
.border-radius(6px);
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
.background-clip(padding-box);
&.fade {
.transition(e('opacity .3s linear, top .3s ease-out'));
top: -25%;
}
&.fade.in { top: 50%; }
}
.modal-header {
padding: 9px 15px;
border-bottom: 1px solid #eee;
// Close icon
.close { margin-top: 2px; }
}
// Body (where all modal content resides)
.modal-body {
overflow-y: auto;
max-height: 400px;
padding: 15px;
}
// Remove bottom margin if need be
.modal-form {
margin-bottom: 0;
}
// Footer (for actions)
.modal-footer {
padding: 14px 15px 15px;
margin-bottom: 0;
text-align: right; // right align buttons
background-color: #f5f5f5;
border-top: 1px solid #ddd;
.border-radius(0 0 6px 6px);
.box-shadow(inset 0 1px 0 @white);
.clearfix(); // clear it in case folks use .pull-* classes on buttons
// Properly space out buttons
.btn + .btn {
margin-left: 5px;
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
}
// but override that for button groups
.btn-group .btn + .btn {
margin-left: -1px;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,217 @@
// Variables.less
// Variables to customize the look and feel of Bootstrap
// -----------------------------------------------------
// GLOBAL VALUES
// --------------------------------------------------
// Grays
// -------------------------
@black: #000;
@grayDarker: #222;
@grayDark: #333;
@gray: #555;
@grayLight: #999;
@grayLighter: #eee;
@white: #fff;
// Accent colors
// -------------------------
@blue: #049cdb;
@blueDark: #0064cd;
@green: #46a546;
@red: #9d261d;
@yellow: #ffc40d;
@orange: #f89406;
@pink: #c3325f;
@purple: #7a43b6;
// Scaffolding
// -------------------------
@bodyBackground: @white;
@textColor: @grayDark;
// Links
// -------------------------
@linkColor: #08c;
@linkColorHover: darken(@linkColor, 15%);
// Typography
// -------------------------
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
@monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
@baseFontSize: 13px;
@baseFontFamily: @sansFontFamily;
@baseLineHeight: 18px;
@altFontFamily: @serifFontFamily;
@headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
@headingsFontWeight: bold; // instead of browser default, bold
@headingsColor: inherit; // empty to use BS default, @textColor
// Tables
// -------------------------
@tableBackground: transparent; // overall background-color
@tableBackgroundAccent: #f9f9f9; // for striping
@tableBackgroundHover: #f5f5f5; // for hover
@tableBorder: #ddd; // table and cell border
// Buttons
// -------------------------
@btnBackground: @white;
@btnBackgroundHighlight: darken(@white, 10%);
@btnBorder: #ccc;
@btnPrimaryBackground: #2384d3;
@btnPrimaryBackgroundHighlight: #15497c;
@btnInfoBackground: #5bc0de;
@btnInfoBackgroundHighlight: #2f96b4;
@btnSuccessBackground: #62c462;
@btnSuccessBackgroundHighlight: #51a351;
@btnWarningBackground: lighten(@orange, 15%);
@btnWarningBackgroundHighlight: @orange;
@btnDangerBackground: #ee5f5b;
@btnDangerBackgroundHighlight: #bd362f;
@btnInverseBackground: @gray;
@btnInverseBackgroundHighlight: @grayDarker;
// Forms
// -------------------------
@inputBackground: @white;
@inputBorder: #ccc;
@inputBorderRadius: 3px;
@inputDisabledBackground: @grayLighter;
@formActionsBackground: #f5f5f5;
// Dropdowns
// -------------------------
@dropdownBackground: @white;
@dropdownBorder: rgba(0,0,0,.2);
@dropdownLinkColor: @grayDark;
@dropdownLinkColorHover: @white;
@dropdownLinkBackgroundHover: @linkColor;
@dropdownDividerTop: #e5e5e5;
@dropdownDividerBottom: @white;
// COMPONENT VARIABLES
// --------------------------------------------------
// Z-index master list
// -------------------------
// Used for a bird's eye view of components dependent on the z-axis
// Try to avoid customizing these :)
@zindexDropdown: 1000;
@zindexPopover: 1010;
@zindexTooltip: 1020;
@zindexFixedNavbar: 1030;
@zindexModalBackdrop: 1040;
@zindexModal: 1050;
// Sprite icons path
// -------------------------
@iconSpritePath: "../img/glyphicons-halflings.png";
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
// Input placeholder text color
// -------------------------
@placeholderText: @grayLight;
// Hr border color
// -------------------------
@hrBorder: @grayLighter;
// Navbar
// -------------------------
@navbarHeight: 40px;
@navbarBackground: @grayDarker;
@navbarBackgroundHighlight: @grayDark;
@navbarText: @grayLight;
@navbarLinkColor: @grayLight;
@navbarLinkColorHover: @white;
@navbarLinkColorActive: @navbarLinkColorHover;
@navbarLinkBackgroundHover: transparent;
@navbarLinkBackgroundActive: @navbarBackground;
@navbarSearchBackground: lighten(@navbarBackground, 25%);
@navbarSearchBackgroundFocus: @white;
@navbarSearchBorder: darken(@navbarSearchBackground, 30%);
@navbarSearchPlaceholderColor: #ccc;
@navbarBrandColor: @navbarLinkColor;
// Hero unit
// -------------------------
@heroUnitBackground: @grayLighter;
@heroUnitHeadingColor: inherit;
@heroUnitLeadColor: inherit;
// Form states and alerts
// -------------------------
@warningText: #c09853;
@warningBackground: #fcf8e3;
@warningBorder: darken(spin(@warningBackground, -10), 3%);
@errorText: #b94a48;
@errorBackground: #f2dede;
@errorBorder: darken(spin(@errorBackground, -10), 3%);
@successText: #468847;
@successBackground: #dff0d8;
@successBorder: darken(spin(@successBackground, -10), 5%);
@infoText: #3a87ad;
@infoBackground: #d9edf7;
@infoBorder: darken(spin(@infoBackground, -10), 7%);
// GRID
// --------------------------------------------------
// Default 940px grid
// -------------------------
@gridColumns: 12;
@gridColumnWidth: 60px;
@gridGutterWidth: 20px;
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
// Fluid grid
// -------------------------
@fluidGridColumnWidth: 6.382978723%;
@fluidGridGutterWidth: 2.127659574%;
// Login
// -------------------------
@loginBackground: #142849;
@loginBackgroundHighlight: #165387;
// Header
// -------------------------
@headerBackground: #1a3867;
@headerBackgroundHighlight: #17568c;