FileMaster
Search
Toggle Dark Mode
Home
/
.
/
backup
/
adm
/
vendor
/
dotted-map
/
sass
Edit File: _base.scss
/* * SASS Base for Sebobo github projects. * 01/26/2012 17:23 */ // Base $baseFontSize: 13px; $baseLineHeight: 18px; $baseFontFamily: arial; $inputBorderRadius: 3px; // Links $linkColor: #0069d6; $linkColorHover: darken($linkColor, 15); // Gray tones $black: #000; $grayDark: lighten($black, 25%); $gray: lighten($black, 50%); $grayLight: lighten($black, 75%); $grayLighter: lighten($black, 90%); $white: #fff; // Colors $blue: #049CDB; $blueDark: #0064CD; $green: #46a546; $red: #9d261d; $yellow: #ffc40d; $orange: #f89406; $pink: #c3325f; $purple: #7a43b6; // Reset html { height: 100%; font-size: $baseFontSize; font-family: $baseFontFamily; color: $grayDark; background: $grayLighter; } body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;} // Labels .label { padding: 1px 3px 2px; font-size: 0.75em; font-weight: bold; color: #fff; text-transform: uppercase; white-space: nowrap; background-color: #ccc; &.important { background-color: #c43c35; } &.warning { background-color: $orange; } &.success { background-color: $green; } &.notice { background-color: lighten($blue, 25%); } } .borderradius .label { @include border-radius(3px); } // Basic stuff .clear { clear: both; } .relative { position: relative; } .centered { margin: 0 auto; } .floatLeft { float: left; } .floatRight { float: right; } .clearfix { zoom: 1; &:before, &:after { display: table; content: ""; zoom: 1; } &:after { clear: both; } } // Tabs .tabs { text-align: center; list-style: none; padding: 0 10px; line-height: 24px; height: 26px; overflow: hidden; font-size: 12px; font-family: verdana; position: absolute; bottom: 0; li { border: 1px solid #aaa; background: #d1d1d1; display: block; float: left; position: relative; z-index: 0; text-shadow: 0 1px #fff; margin: 0 -3px; padding: 0; cursor: pointer; @include border-radius(6px 6px 0 0); @include box-shadow("0 3px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 #ffffff"); @include transition(.05s linear all); @include linear-gradient(#ececec 50%, #d1d1d1 100%); &:hover { background: #dadada; background-position: 0 -15px; @include linear-gradient(#efefef 50%, #dadada 100%); &:before { @include box-shadow(2px 2px 0 #dadada); } &:after { @include box-shadow(-2px 2px 0 #dadada); } } &.selected { background: #fff; color: #333; z-index: 2; border-bottom-color: #fff; &:before { @include box-shadow(2px 2px 0 #ffffff); } &:after { @include box-shadow(-2px 2px 0 #ffffff); } &:hover { background: #fff; } } &:before, &:after { border: 1px solid #aaa; position: absolute; bottom: -1px; width: 5px; height: 5px; content: " "; border-width: 0 0 1px 1px; } &:before { left: -6px; border-width: 0 1px 1px 0; @include border-radius(0 0 6px 0); @include box-shadow(2px 2px 0 #d1d1d1); } &:after { right: -6px; @include border-radius(0 0 0 6px); @include box-shadow(-2px 2px 0 #d1d1d1); } } a { color: #555; text-decoration: none; display: block; margin: 0 20px; &:hover { text-decoration: none; } } &:before { position: absolute; content: " "; width: 100%; bottom: 0; left: 0; border-bottom: 1px solid #aaa; z-index: 1; } } // Buttons // Shared colors for buttons and alerts .btn, .alert-message { // Set text color &.danger, &.danger:hover, &.error, &.error:hover, &.success, &.success:hover, &.info, &.info:hover { color: $white } // Danger and error appear as red &.danger, &.error { background-color: #c43c35; } // Success appears as green &.success { background-color: #57a957; } // Info appears as a neutral blue &.info { background-color: #339bb9; } // Sets the close button to the middle of message .close{ font-family: Arial, sans-serif; line-height: 18px; } } .btn { cursor: pointer; display: inline-block; padding: 5px 14px 6px; text-shadow: 0 1px 1px rgba(255,255,255,.75); color: #333; font-size: $baseFontSize; line-height: normal; border: 1px solid #ccc; border-bottom-color: #bbb; text-decoration: none; background-color: darken(#ffffff, 10%); &:hover { background-position: 0 -15px; color: #333; text-decoration: none; } // Focus state for keyboard and accessibility &:focus { outline: 1px dotted #666; } // Primary Button Type &.primary { color: $white; background-color: $blueDark; } // Active and Disabled states &.disabled { cursor: default; background-image: none; opacity: 0.65; } &[disabled] { // disabled pseudo can't be included with .disabled // def because IE8 and below will drop it ;_; cursor: default; background-image: none; opacity: 0.65; } // Button Sizes &.large { font-size: $baseFontSize + 2px; line-height: normal; padding: 9px 14px 9px; } &.small { padding: 7px 9px 7px; font-size: $baseFontSize - 2px; } } .cssgradients { .btn { @include linear-gradient-with-stop(#ffffff, #ffffff 25%, darken(#ffffff, 10%)); &.primary { @include gradient-bar($blue, $blueDark); } } .btn, .alert-message { // Danger and error appear as red &.danger, &.error { @include gradient-bar(#ee5f5b, #c43c35); } // Success appears as green &.success { @include gradient-bar(#62c462, #57a957); } // Info appears as a neutral blue &.info { @include gradient-bar(#5bc0de, #339bb9); } } } .borderradius .btn { @include border-radius(4px); &.large { @include border-radius(6px); } } .csstransitions .btn { @include transition(.1s linear all); } .box-shadow.rgba .btn { @include box-shadow("inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)"); &.active, &:active { @include box-shadow("inset 0 2px 4px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.05)"); } &.disabled, &[disabled] { @include box-shadow(none); } } // Super jank hack for removing border-radius from IE9 so we can keep filter gradients on alerts and buttons :root .alert-message, :root .btn { border-radius: 0 \0; } // Help Firefox not be a jerk about adding extra padding to buttons button.btn, input[type=submit].btn { &::-moz-focus-inner { padding: 0; border: 0; } } // Columns .column { float: left; overflow: hidden; } .column.last { float: none; } .size1of2 { width: 50%; } .size1of4 { width: 25%; } .size3of4 { width: 75%; } .size1of3 { width: 33.30%; } .size2of3 { width: 66.70%; } // Inline and block code styles code, pre { padding: 0 3px 2px; font-family: Monaco, Andale Mono, Courier New, monospace; font-size: 12px; @include border-radius(3px); } code { background-color: lighten($orange, 40%); color: rgba(0,0,0,.75); padding: 1px 3px; } pre { background-color: #fcfcfc; display: block; padding: ($baseLineHeight - 1) / 2; margin: 0 0 $baseLineHeight; line-height: $baseLineHeight; font-size: 12px; border-color: rgba(0, 0, 0, .15); white-space: pre; white-space: pre-wrap; word-wrap: break-word; } .com { color: #93a1a1; } .lit { color: #195f91; } .pun, .opn, .clo { color: #93a1a1; } .fun { color: #dc322f; } .str, .atv { color: #D14; } .kwd, .prettyprint .tag { color: #1e347b; } .typ, .atn, .dec, .var { color: teal; } .pln { color: #48484c; } .prettyprint { padding: 8px; background-color: #fcfcfc; border: 1px solid #ddd; &.linenums { @include box-shadow("inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0"); } } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin: 0 0 0 33px; /* IE indents via margin-left */ li { list-style-type: decimal; padding-left: 12px; color: #bebec5; line-height: 20px; text-shadow: 0 1px 0 #fff; } } // Set font for forms label, input, button, select, textarea { font: $baseFontSize normal $baseLineHeight; // Set size, weight, line-height here } input, button, select, textarea { font-family: $baseFontFamily; // And only set font-family here for those that need it (note the missing label element) } // Identify controls by their labels label { display: block; &.inline { display: inline; } } // Form controls // ------------------------- // Shared size and type resets select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { display: inline-block; padding: 4px 6px; margin-bottom: 9px; font-size: $baseFontSize; line-height: $baseLineHeight; color: $gray; border: 1px solid #eee; @include box-shadow(0 0 3px rgba(0, 0, 0, 0.4) inset); @include border-radius($inputBorderRadius); } /* Base class */ .bs-docs-example { position: relative; margin: 15px 0; padding: 39px 19px 14px; *padding-top: 19px; background-color: #fff; border: 1px solid #ddd; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } /* Echo out a label for the example */ .bs-docs-example:after { content: "Example"; position: absolute; top: -1px; left: -1px; padding: 3px 7px; font-size: 12px; font-weight: bold; background-color: #f5f5f5; border: 1px solid #ddd; color: #9da0a4; -webkit-border-radius: 4px 0 4px 0; -moz-border-radius: 4px 0 4px 0; border-radius: 4px 0 4px 0; } /* Remove spacing between an example and it's code */ .bs-docs-example + .prettyprint { margin-top: -20px; padding-top: 15px; }
Save
Back