Commits

Anonymous committed 8e362f0

增加打印样式。

  • Participants
  • Parent commits 43234d7

Comments (0)

Files changed (6)

File inside.default.less

 @import "tables.less";
 @import "forms.less";
 
-//@import "buttons.less";
-//@import "button-groups.less";
-@import "btns.less";
+@import "buttons.less";
+@import "button-groups.less";
 
 @import "alerts.less";
 @import "helps.less";

File inside.print.less

+@import "reset.less";
+@import "variables.print.less";
+@import "mixins.less";
+@import "scaffolding.less";
+@import "type.less";
+@import "code.less";
+@import "tables.less";
+@import "forms.less";
+@import "buttons.less";
+@import "button-groups.less";
+@import "alerts.less";
+@import "helps.less";
+@import "jquery-ui.less";
+@import "tooltip.less";
+@import "ie.less";
+@import "utilities.less";
 		border-top: 2px solid @tableBorder;
 	  }
 	}
+  
+	// NO BORDER
+	&.noborder {
+		border: 0 none;
+	}
+	&.noborder th, &.noborder td {
+		border: 0 none;
+	}
 }
 
 
 }
 
 
-  
-// NO BORDER
-table.noborder {
-	border: 0 none;
-}
-table.noborder th, table.noborder td {
-	border: 0 none;
-}
-
-
 
 
 // ZEBRA-STRIPING

File utilities.less

 
 .align-c {
 	text-align:center;
-}
+}
+
+.bg-error {
+	background-color: @errorBackground;
+}
+
+.bg-warning {
+	background-color: @warningBackground;
+}
+
+.bg-success {
+	background-color: @successBackground;
+}
+
+.bg-info {
+	background-color: @infoBackground;
+}

File variables.less

 @warningBackground:       #fcf8e3;
 @warningBorder:           darken(spin(@warningBackground, -10), 10%);
 
-@errorText:               darken(spin(@errorBackground, -10), 40%);
+@errorText:               darken(spin(@errorBackground, -10), 60%);
 @errorBackground:         #f2dede;
 @errorBorder:             darken(spin(@errorBackground, -10), 10%);
 

File variables.print.less

+//
+// Variables
+// --------------------------------------------------
+
+
+// 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%);
+@linkColor:             #105CB6;
+@linkColorHover:        white;
+@linkBackgroundColorHover: #105CB6;
+
+
+// Typography
+// -------------------------
+@sansFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
+@serifFontFamily:       Georgia, "Times New Roman", Times, serif;
+@monoFontFamily:        Monaco, Menlo, Consolas, "Courier New", monospace;
+
+@baseFontSize:          16px;
+@baseFontFamily:        @sansFontFamily;
+@baseLineHeight:        20px;
+@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
+
+
+// Component sizing
+// -------------------------
+
+@fontSizeLarge:         14px;
+@fontSizeSmall:         10px;
+@fontSizeMini:          8px;
+
+@paddingLarge:          11px 19px; // 44px
+@paddingSmall:          2px 10px;  // 26px
+@paddingMini:           1px 6px;   // 24px
+
+@baseBorderRadius:      3px;
+@borderRadiusLarge:     5px;
+@borderRadiusSmall:     1px;
+
+
+// Tables
+// -------------------------
+@tableBackground:                   transparent; // overall background-color
+@tableBackgroundAccent:             #f5f5f5; // for striping
+@tableBackgroundHover:              #e5e5e5; // for hover
+@tableBorder:                       @grayLight; // table and cell border
+
+// 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:               @white;
+@inputBorder:                   #ccc;
+@inputBorderRadius:             @baseBorderRadius;
+@inputDisabledBackground:       @grayLighter;
+@formActionsBackground:         #f5f5f5;
+@inputHeight:                   @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
+
+@selectButtonWidth:             25px;
+
+
+
+// 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:           1030;
+@zindexFixedNavbar:       1030;
+@zindexModalBackdrop:     1040;
+@zindexModal:             1050;
+
+
+// Input placeholder text color
+// -------------------------
+@placeholderText:         @grayLight;
+
+
+// Hr border color
+// -------------------------
+@hrBorder:                @grayLighter;
+
+
+// Horizontal forms & lists
+// -------------------------
+@horizontalComponentOffset:       100px;
+
+// Form states and alerts
+// -------------------------
+@warningText:             darken(spin(@warningBackground, -10), 60%);
+@warningBackground:       #fcf8e3;
+@warningBorder:           darken(spin(@warningBackground, -10), 10%);
+
+@errorText:               darken(spin(@errorBackground, -10), 60%);
+@errorBackground:         #f2dede;
+@errorBorder:             darken(spin(@errorBackground, -10), 10%);
+
+@successText:             darken(spin(@successBackground, -10), 60%);
+@successBackground:       #dff0d8;
+@successBorder:           darken(spin(@successBackground, -10), 10%);
+
+@infoText:                darken(spin(@infoBackground, -10), 60%);
+@infoBackground:          #d9edf7;
+@infoBorder:              darken(spin(@infoBackground, -10), 10%);
+
+
+// Tooltips
+// -------------------------
+@tooltipColor:            #fff;
+@tooltipBackground:       #000;
+@tooltipArrowWidth:       5px;
+@tooltipArrowColor:       @tooltipBackground;
+
+// fix for IE6
+@transparentIE6:             #fffffe;