Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
b9c9f1d8
Commit
b9c9f1d8
authored
Aug 26, 2011
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'origin/master' into 1.2-wip
parents
a5e62657
842683b6
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1097 additions
and
656 deletions
+1097
-656
Makefile
Makefile
+2
-2
README.md
README.md
+1
-1
bootstrap-1.1.1.css
bootstrap-1.1.1.css
+391
-201
bootstrap-1.1.1.min.css
bootstrap-1.1.1.min.css
+91
-66
docs/assets/css/docs.css
docs/assets/css/docs.css
+2
-2
docs/assets/js/application.js
docs/assets/js/application.js
+7
-2
docs/index.html
docs/index.html
+97
-99
examples/hero.html
examples/hero.html
+3
-3
lib/bootstrap.less
lib/bootstrap.less
+1
-1
lib/forms.less
lib/forms.less
+153
-153
lib/patterns.less
lib/patterns.less
+131
-64
lib/preboot.less
lib/preboot.less
+41
-13
lib/reset.less
lib/reset.less
+129
-4
lib/scaffolding.less
lib/scaffolding.less
+44
-44
lib/type.less
lib/type.less
+4
-1
No files found.
Makefile
View file @
b9c9f1d8
DATE
=
$(
shell
DATE
)
DATE
=
$(
shell
DATE
)
BOOTSTRAP
=
./bootstrap-1.1.
0
.css
BOOTSTRAP
=
./bootstrap-1.1.
1
.css
BOOTSTRAP_MIN
=
./bootstrap-1.1.
0
.min.css
BOOTSTRAP_MIN
=
./bootstrap-1.1.
1
.min.css
BOOTSTRAP_LESS
=
./lib/bootstrap.less
BOOTSTRAP_LESS
=
./lib/bootstrap.less
LESS_COMPESSOR
?=
`
which lessc
`
LESS_COMPESSOR
?=
`
which lessc
`
WATCHR
?=
`
which watchr
`
WATCHR
?=
`
which watchr
`
...
...
README.md
View file @
b9c9f1d8
...
@@ -18,7 +18,7 @@ Here's what the LESS version looks like:
...
@@ -18,7 +18,7 @@ Here's what the LESS version looks like:
Or if you prefer, the standard css way:
Or if you prefer, the standard css way:
<link rel="stylesheet" type="text/css" href="bootstrap-1.1.
0
.css">
<link rel="stylesheet" type="text/css" href="bootstrap-1.1.
1
.css">
For more info, refer to the docs!
For more info, refer to the docs!
...
...
bootstrap-1.1.
0
.css
→
bootstrap-1.1.
1
.css
View file @
b9c9f1d8
This diff is collapsed.
Click to expand it.
bootstrap-1.1.
0
.min.css
→
bootstrap-1.1.
1
.min.css
View file @
b9c9f1d8
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.css
View file @
b9c9f1d8
...
@@ -171,7 +171,7 @@ div.mini-layout div {
...
@@ -171,7 +171,7 @@ div.mini-layout div {
div
.mini-layout
div
.mini-layout-body
{
div
.mini-layout
div
.mini-layout-body
{
background-color
:
#dceaf4
;
background-color
:
#dceaf4
;
margin
:
0
auto
;
margin
:
0
auto
;
width
:
45
0px
;
width
:
34
0px
;
height
:
340px
;
height
:
340px
;
}
}
div
.mini-layout.fluid
div
.mini-layout-sidebar
,
div
.mini-layout.fluid
div
.mini-layout-sidebar
,
...
@@ -185,7 +185,7 @@ div.mini-layout.fluid div.mini-layout-sidebar {
...
@@ -185,7 +185,7 @@ div.mini-layout.fluid div.mini-layout-sidebar {
height
:
340px
;
height
:
340px
;
}
}
div
.mini-layout.fluid
div
.mini-layout-body
{
div
.mini-layout.fluid
div
.mini-layout-body
{
width
:
4
00px
;
width
:
3
00px
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
/* Topbar special styles
/* Topbar special styles
...
...
docs/assets/js/application.js
View file @
b9c9f1d8
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
// Google code prettify
// ====================
prettyPrint
();
// scroll spy logic
// scroll spy logic
// ================
// ================
var
activeTarget
,
var
activeTarget
,
$window
=
$
(
window
),
position
=
{},
position
=
{},
$window
=
$
(
window
),
nav
=
$
(
'
body > .topbar li a
'
),
nav
=
$
(
'
body > .topbar li a
'
),
targets
=
nav
.
map
(
function
()
{
targets
=
nav
.
map
(
function
()
{
return
$
(
this
).
attr
(
'
href
'
);
return
$
(
this
).
attr
(
'
href
'
);
...
...
docs/index.html
View file @
b9c9f1d8
This diff is collapsed.
Click to expand it.
examples/hero.html
View file @
b9c9f1d8
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<![endif]-->
<![endif]-->
<!-- Le styles -->
<!-- Le styles -->
<link
href=
"../bootstrap-1.1.
0
.css"
rel=
"stylesheet"
>
<link
href=
"../bootstrap-1.1.
1
.css"
rel=
"stylesheet"
>
<!-- Le fav and touch icons -->
<!-- Le fav and touch icons -->
<link
rel=
"shortcut icon"
href=
"images/favicon.ico"
>
<link
rel=
"shortcut icon"
href=
"images/favicon.ico"
>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<div
class=
"topbar"
>
<div
class=
"topbar"
>
<div
class=
"fill"
>
<div
class=
"fill"
>
<div
class=
"container
fixed
"
>
<div
class=
"container"
>
<h3><a
href=
"#"
>
Project name
</a></h3>
<h3><a
href=
"#"
>
Project name
</a></h3>
<ul>
<ul>
<li
class=
"active"
><a
href=
"#"
>
Home
</a></li>
<li
class=
"active"
><a
href=
"#"
>
Home
</a></li>
...
...
lib/bootstrap.less
View file @
b9c9f1d8
/*!
/*!
* Bootstrap v1.1.
0
* Bootstrap v1.1.
1
*
*
* Copyright 2011 Twitter, Inc
* Copyright 2011 Twitter, Inc
* Licensed under the Apache License v2.0
* Licensed under the Apache License v2.0
...
...
lib/forms.less
View file @
b9c9f1d8
...
@@ -8,9 +8,10 @@
...
@@ -8,9 +8,10 @@
form {
form {
margin-bottom: @baseline;
margin-bottom: @baseline;
}
// Groups of fields with labels on top (legends)
// Groups of fields with labels on top (legends)
fieldset {
fieldset {
margin-bottom: @baseline;
margin-bottom: @baseline;
padding-top: @baseline;
padding-top: @baseline;
legend {
legend {
...
@@ -22,20 +23,23 @@ form {
...
@@ -22,20 +23,23 @@ form {
*line-height: 1.5; /* IE6-7 */
*line-height: 1.5; /* IE6-7 */
color: @grayDark;
color: @grayDark;
}
}
}
}
// Parent element that clears floats and wraps labels and fields together
// Parent element that clears floats and wraps labels and fields together
.clearfix {
.clearfix {
margin-bottom: @baseline;
margin-bottom: @baseline;
}
}
// Set font for forms
// Set font for forms
label, input, select, textarea {
label,
input,
select,
textarea {
#font > .sans-serif(normal,13px,normal);
#font > .sans-serif(normal,13px,normal);
}
}
// Float labels left
// Float labels left
label {
label {
padding-top: 6px;
padding-top: 6px;
font-size: 13px;
font-size: 13px;
line-height: 18px;
line-height: 18px;
...
@@ -43,28 +47,27 @@ form {
...
@@ -43,28 +47,27 @@ form {
width: 130px;
width: 130px;
text-align: right;
text-align: right;
color: @grayDark;
color: @grayDark;
}
}
// Shift over the inside div to align all label's relevant content
// Shift over the inside div to align all label's relevant content
div.input {
div.input {
margin-left: 150px;
margin-left: 150px;
}
}
// Checkboxs and radio buttons
// Checkboxs and radio buttons
input[type=checkbox],
input[type=checkbox],
input[type=radio] {
input[type=radio] {
cursor: pointer;
cursor: pointer;
}
}
// Inputs, Textareas, Selects
// Inputs, Textareas, Selects
input[type=text],
input[type=text],
input[type=password],
input[type=password],
textarea,
textarea,
select,
select,
.uneditable-input {
.uneditable-input {
display: inline-block;
display: inline-block;
width: 210px;
width: 210px;
margin: 0;
padding: 4px;
padding: 4px;
font-size: 13px;
font-size: 13px;
line-height: @baseline;
line-height: @baseline;
...
@@ -72,49 +75,49 @@ form {
...
@@ -72,49 +75,49 @@ form {
color: @gray;
color: @gray;
border: 1px solid #ccc;
border: 1px solid #ccc;
.border-radius(3px);
.border-radius(3px);
}
}
select,
select,
input[type=file] {
input[type=file] {
height: @baseline * 1.5;
height: @baseline * 1.5;
line-height: @baseline * 1.5;
line-height: @baseline * 1.5;
}
}
textarea {
textarea {
height: auto;
height: auto;
}
}
.uneditable-input {
.uneditable-input {
background-color: #eee;
background-color: #eee;
display: block;
display: block;
border-color: #ccc;
border-color: #ccc;
.box-shadow(inset 0 1px 2px rgba(0,0,0,.075));
.box-shadow(inset 0 1px 2px rgba(0,0,0,.075));
}
}
// Placeholder text gets special styles; can't be bundled together though for some reason
// Placeholder text gets special styles; can't be bundled together though for some reason
:-moz-placeholder {
:-moz-placeholder {
color: @grayLight;
color: @grayLight;
}
}
::-webkit-input-placeholder {
::-webkit-input-placeholder {
color: @grayLight;
color: @grayLight;
}
}
// Focus states
// Focus states
input[type=text],
input[type=text],
input[type=password],
input[type=password],
select, textarea {
select, textarea {
@transition: border linear .2s, box-shadow linear .2s;
@transition: border linear .2s, box-shadow linear .2s;
.transition(@transition);
.transition(@transition);
.box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
.box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
}
}
input[type=text]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=password]:focus,
textarea:focus {
textarea:focus {
outline: none;
outline: none;
border-color: rgba(82,168,236,.8);
border-color: rgba(82,168,236,.8);
@shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
@shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
.box-shadow(@shadow);
.box-shadow(@shadow);
}
}
// Error styles
// Error styles
div.error {
form
div.error {
background: lighten(@red, 57%);
background: lighten(@red, 57%);
padding: 10px 0;
padding: 10px 0;
margin: -10px 0 10px;
margin: -10px 0 10px;
...
@@ -143,39 +146,38 @@ form {
...
@@ -143,39 +146,38 @@ form {
color: darken(@error-text, 10%);
color: darken(@error-text, 10%);
}
}
}
}
}
}
// Form element sizes
// Form element sizes
.input-mini, input.mini, textarea.mini, select.mini {
.input-mini, input.mini, textarea.mini, select.mini {
width: 60px;
width: 60px;
}
}
.input-small, input.small, textarea.small, select.small {
.input-small, input.small, textarea.small, select.small {
width: 90px;
width: 90px;
}
}
.input-medium, input.medium, textarea.medium, select.medium {
.input-medium, input.medium, textarea.medium, select.medium {
width: 150px;
width: 150px;
}
}
.input-large, input.large, textarea.large, select.large {
.input-large, input.large, textarea.large, select.large {
width: 210px;
width: 210px;
}
}
.input-xlarge, input.xlarge, textarea.xlarge, select.xlarge {
.input-xlarge, input.xlarge, textarea.xlarge, select.xlarge {
width: 270px;
width: 270px;
}
}
.input-xxlarge, input.xxlarge, textarea.xxlarge, select.xxlarge {
.input-xxlarge, input.xxlarge, textarea.xxlarge, select.xxlarge {
width: 530px;
width: 530px;
}
}
textarea.xxlarge {
textarea.xxlarge {
overflow-y: scroll;
overflow-y: scroll;
}
}
// Turn off focus for disabled (read-only) form elements
// Turn off focus for disabled (read-only) form elements
input[readonly]:focus,
input[readonly]:focus,
textarea[readonly]:focus,
textarea[readonly]:focus,
input.disabled {
input.disabled {
background: #f5f5f5;
background: #f5f5f5;
border-color: #ddd;
border-color: #ddd;
.box-shadow(none);
.box-shadow(none);
}
}
}
// Actions (the buttons)
// Actions (the buttons)
...
@@ -262,13 +264,11 @@ form {
...
@@ -262,13 +264,11 @@ form {
border-color: @green;
border-color: @green;
}
}
}
}
.input-prepend {
.input-prepend {
.add-on {
.add-on {
*margin-top: 1px; /* IE6-7 */
*margin-top: 1px; /* IE6-7 */
}
}
}
}
.input-append {
.input-append {
input[type=text],
input[type=text],
input[type=password] {
input[type=password] {
...
@@ -322,7 +322,7 @@ form {
...
@@ -322,7 +322,7 @@ form {
}
}
// Stacked forms
// Stacked forms
form
.form-stacked {
.form-stacked {
padding-left: 20px;
padding-left: 20px;
fieldset {
fieldset {
padding-top: @baseline / 2;
padding-top: @baseline / 2;
...
...
lib/patterns.less
View file @
b9c9f1d8
...
@@ -288,21 +288,94 @@ footer {
...
@@ -288,21 +288,94 @@ footer {
}
}
}
}
// BUTTON STYLES
// -------------
// ERROR STYLES
// ------------
// Setup a mixin to colorize different alerts
// Base .btn styles
.alertTheme(@primaryColor, @secondaryColor) {
.btn {
#gradient > .vertical(@primaryColor, @secondaryColor);
// Button Base
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
cursor: pointer;
border-color: darken(@secondaryColor, 10%) darken(@secondaryColor, 10%) darken(@secondaryColor, 15%);
display: inline-block;
border-color: rgba(0,0,0,.05) rgba(0,0,0,.075) rgba(0,0,0,.125);
#gradient > .vertical-three-colors(#fff, #fff, 0.25, darken(#fff, 10%));
padding: 5px 14px 6px;
text-shadow: 0 1px 1px rgba(255,255,255,.75);
color: #333;
font-size: 13px;
line-height: normal;
border: 1px solid #ccc;
border-bottom-color: #bbb;
.border-radius(4px);
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
&:hover {
background-position: 0 -15px;
color: #333;
text-decoration: none;
}
// Primary Button Type
&.primary {
color:#fff;
.gradientBar(@blue, @blueDark)
}
// Transitions
.transition(.1s linear all);
// Active and Disabled states
&.disabled {
cursor: default;
background-image: none;
.opacity(65);
}
&:disabled {
// disabled pseudo can't be included with .disabled
// def because IE8 and below will drop it ;_;
cursor: default;
background-image: none;
.opacity(65);
}
&:active {
@shadow: inset 0 3px 7px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
}
// Button Sizes
&.large {
font-size: 16px;
line-height: normal;
padding: 9px 14px 9px;
.border-radius(6px);
}
&.small {
padding: 7px 9px 7px;
font-size: 11px;
}
}
}
// 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;
}
}
// ERROR STYLES
// ------------
// Base alert styles
// Base alert styles
.alert {
.alert
-message
{
.
alertTheme(#fceec1, #eedc94);
.
gradientBar(#fceec1, #eedc94); // warning by default
margin-bottom: @baseline;
margin-bottom: @baseline;
padding: 7px 14px;
padding: 7px 14px;
color: @grayDark;
color: @grayDark;
...
@@ -311,6 +384,7 @@ footer {
...
@@ -311,6 +384,7 @@ footer {
border-style: solid;
border-style: solid;
.border-radius(4px);
.border-radius(4px);
.box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
.box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
// Remove extra margin from content
// Remove extra margin from content
h5 {
h5 {
line-height: @baseline;
line-height: @baseline;
...
@@ -323,26 +397,11 @@ footer {
...
@@ -323,26 +397,11 @@ footer {
margin-bottom: 2px;
margin-bottom: 2px;
line-height: 28px;
line-height: 28px;
}
}
// Provide actions with buttons
.btn {
.btn {
// Provide actions with buttons
.box-shadow(0 1px 0 rgba(255,255,255,.25));
.box-shadow(0 1px 0 rgba(255,255,255,.25));
}
}
}
.close {
// Alternate alerts
.alert-error,
.alert-success,
.alert-info,
.alert-error h5,
.alert-success h5,
.alert-info h5 {
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,.3);
}
.alert-error { .alertTheme(#f56a66, #d6463e); }
.alert-success { .alertTheme(#62c462, #57a957); }
.alert-info { .alertTheme(#6bd0ee, #36b3d9); }
// Close action
.close {
float: right;
float: right;
margin-top: -2px;
margin-top: -2px;
color: @black;
color: @black;
...
@@ -355,35 +414,42 @@ footer {
...
@@ -355,35 +414,42 @@ footer {
text-decoration: none;
text-decoration: none;
.opacity(40);
.opacity(40);
}
}
}
}
// Block-level alerts
.alert-block
{
&.block-message
{
background-image: none;
background-image: none;
background-color: lighten(#fceec1, 5%);
background-color: lighten(#fceec1, 5%);
padding: 14px;
padding: 14px;
border-color: #fceec1;
border-color: #fceec1;
.box-shadow(none);
.box-shadow(none);
p {
p {
margin-right: 30px;
margin-right: 30px;
}
}
.alert-actions {
.alert-actions {
margin-top: 5px;
margin-top: 5px;
}
}
}
&.error,
.alert-block.error {
&.success,
&.info {
color: @grayDark;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
&.error {
background-color: lighten(#f56a66, 25%);
background-color: lighten(#f56a66, 25%);
border-color: lighten(#f56a66, 20%);
border-color: lighten(#f56a66, 20%);
}
}
.alert-block
.success {
&
.success {
background-color: lighten(#62c462, 30%);
background-color: lighten(#62c462, 30%);
border-color: lighten(#62c462, 25%);
border-color: lighten(#62c462, 25%);
}
}
.alert-block
.info {
&
.info {
background-color: lighten(#6bd0ee, 25%);
background-color: lighten(#6bd0ee, 25%);
border-color: lighten(#6bd0ee, 20%);
border-color: lighten(#6bd0ee, 20%);
}
}
}
}
// NAVIGATION
// NAVIGATION
// ----------
// ----------
...
@@ -484,7 +550,7 @@ footer {
...
@@ -484,7 +550,7 @@ footer {
}
}
&.disabled a,
&.disabled a,
&.disabled a:hover {
&.disabled a:hover {
background-color:
none
;
background-color:
transparent
;
color: @grayLight;
color: @grayLight;
}
}
&.next a {
&.next a {
...
@@ -558,6 +624,7 @@ footer {
...
@@ -558,6 +624,7 @@ footer {
.border-radius(0 0 6px 6px);
.border-radius(0 0 6px 6px);
.box-shadow(inset 0 1px 0 #fff);
.box-shadow(inset 0 1px 0 #fff);
.clearfix();
.clearfix();
margin-bottom: 0;
.btn {
.btn {
float: right;
float: right;
margin-left: 10px;
margin-left: 10px;
...
...
lib/preboot.less
View file @
b9c9f1d8
...
@@ -170,14 +170,6 @@
...
@@ -170,14 +170,6 @@
column-gap: @columnGap;
column-gap: @columnGap;
}
}
// Buttons
.btnColoring(@primaryColor, @secondaryColor) {
#gradient > .vertical(@primaryColor, @secondaryColor);
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
}
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
#translucent {
#translucent {
.background(@color: @white, @alpha: 1) {
.background(@color: @white, @alpha: 1) {
...
@@ -189,6 +181,42 @@
...
@@ -189,6 +181,42 @@
}
}
}
}
// Gradient Bar Colors for buttons and allerts
.gradientBar(@primaryColor, @secondaryColor) {
#gradient > .vertical(@primaryColor, @secondaryColor);
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
}
// 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 {
.gradientBar(#ee5f5b, #c43c35);
}
// Success appears as green
&.success {
.gradientBar(#62c462, #57a957);
}
// Info appears as a neutral blue
&.info {
.gradientBar(#5bc0de, #339bb9);
}
}
// Gradients
// Gradients
#gradient {
#gradient {
.horizontal (@startColor: #555, @endColor: #333) {
.horizontal (@startColor: #555, @endColor: #333) {
...
@@ -206,12 +234,12 @@
...
@@ -206,12 +234,12 @@
background-color: @endColor;
background-color: @endColor;
background-repeat: repeat-x;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); // Konqueror
background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); // Konqueror
background-image: -moz-linear-gradient(@startColor, @endColor); // FF 3.6+
background-image: -moz-linear-gradient(
top,
@startColor, @endColor); // FF 3.6+
background-image: -ms-linear-gradient(@startColor, @endColor); // IE10
background-image: -ms-linear-gradient(
top,
@startColor, @endColor); // IE10
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
background-image: -webkit-linear-gradient(@startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -webkit-linear-gradient(
top,
@startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(@startColor, @endColor); // Opera 11.10
background-image: -o-linear-gradient(
top,
@startColor, @endColor); // Opera 11.10
background-image: linear-gradient(@startColor, @endColor); // The standard
background-image: linear-gradient(
top,
@startColor, @endColor); // The standard
}
}
.directional (@startColor: #555, @endColor: #333, @deg: 45deg) {
.directional (@startColor: #555, @endColor: #333, @deg: 45deg) {
background-color: @endColor;
background-color: @endColor;
...
...
lib/reset.less
View file @
b9c9f1d8
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
// ERIC MEYER RESET
// ERIC MEYER RESET
// ----------------
// ----------------
----------------------------------
html, body { margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
...
@@ -13,9 +13,134 @@ ol, ul { list-style: none; }
...
@@ -13,9 +13,134 @@ ol, ul { list-style: none; }
q:before, q:after, blockquote:before, blockquote:after { content: ""; }
q:before, q:after, blockquote:before, blockquote:after { content: ""; }
// HTML5
// Normalize.css
// -----
// Pulling in select resets form the normalize.css project
// --------------------------------------------------
header, section, footer, article, aside {
// Display in IE6-9 and FF3
// -------------------------
// Source: http://github.com/necolas/normalize.css
html {
overflow-y: scroll;
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
// Focus states
a:focus {
outline: thin dotted;
}
// Display in IE6-9 and FF3
// -------------------------
// Source: http://github.com/necolas/normalize.css
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
display: block;
display: block;
}
}
// Display block in IE6-9 and FF3
// -------------------------
// Source: http://github.com/necolas/normalize.css
audio,
canvas,
video {
display: inline-block;
*display: inline;
*zoom: 1;
}
// Prevents modern browsers from displaying 'audio' without controls
// -------------------------
// Source: http://github.com/necolas/normalize.css
audio:not([controls]) {
display: none;
}
// Prevents sub and sup affecting line-height in all browsers
// -------------------------
// Source: http://github.com/necolas/normalize.css
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
// Img border in a's and image quality
// -------------------------
// Source: http://github.com/necolas/normalize.css
img {
border: 0;
-ms-interpolation-mode: bicubic;
}
// Forms
// -------------------------
// Source: http://github.com/necolas/normalize.css
// Font size in all browsers, margin changes, misc consistency
button,
input,
select,
textarea {
font-size: 100%;
margin: 0;
vertical-align: baseline;
*vertical-align: middle;
}
button,
input {
line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
*overflow: visible; // Inner spacing ie IE6/7
}
button::-moz-focus-inner,
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
border: 0;
padding: 0;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer; // Cursors on all buttons applied consistently
-webkit-appearance: button; // Style clicable inputs in iOS
}
input[type="search"] { // Appearance in Safari/Chrome
-webkit-appearance: textfield;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
}
textarea {
overflow: auto; // Remove vertical scrollbar in IE6-9
vertical-align: top; // Readability and alignment cross-browser
}
// Tables
// -------------------------
// Source: http://github.com/necolas/normalize.css
// Remove spacing between table cells
table {
border-collapse: collapse;
border-spacing: 0;
}
\ No newline at end of file
lib/scaffolding.less
View file @
b9c9f1d8
...
@@ -81,20 +81,20 @@ body {
...
@@ -81,20 +81,20 @@ body {
}
}
// Container (centered, fixed-width layouts)
// Container (centered, fixed-width layouts)
div
.container {
.container {
width: 940px;
width: 940px;
margin: 0 auto;
margin: 0 auto;
}
}
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
div
.container-fluid {
.container-fluid {
padding: 0 20px;
padding: 0 20px;
.clearfix();
.clearfix();
div
.sidebar {
.sidebar {
float: left;
float: left;
width: 220px;
width: 220px;
}
}
div
.content {
.content {
min-width: 700px;
min-width: 700px;
max-width: 1180px;
max-width: 1180px;
margin-left: 240px;
margin-left: 240px;
...
@@ -119,79 +119,79 @@ a {
...
@@ -119,79 +119,79 @@ a {
// Buttons
// Buttons
.btn {
.btn {
// Button Base
cursor: pointer;
display: inline-block;
display: inline-block;
#gradient > .vertical-three-colors(#fff, #fff, 0.25, darken(#fff, 10%));
#gradient > .vertical-three-colors(#fff, #fff, 0.25, darken(#fff, 10%));
padding:
5px 14px 6
px;
padding:
4px 14
px;
text-shadow: 0 1px 1px rgba(255,255,255,.75);
text-shadow: 0 1px 1px rgba(255,255,255,.75);
color: #333;
color: #333;
font-size: 13px;
font-size: 13px;
line-height:
normal
;
line-height:
@baseline
;
border: 1px solid #ccc;
border: 1px solid #ccc;
border-bottom-color: #bbb;
border-bottom-color: #bbb;
.border-radius(4px);
.border-radius(4px);
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
.box-shadow(@shadow);
&:hover {
&:hover {
background-position: 0 -15px;
background-position: 0 -15px;
color: #333;
color: #333;
text-decoration: none;
text-decoration: none;
}
}
}
// Transitions
.primary {
.transition(.1s linear all);
#gradient > .vertical(#049CDB, #0064CD);
color: #fff;
// Colored Button Types
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
&.primary,
border: 1px solid darken(#0064CD, 10%);
&.danger,
border-bottom-color: darken(#0064CD, 15%);
&.danger:hover,
&:hover {
&.primary:hover {
color: #fff;
color: #fff;
}
}
}
.btn {
//.button(#1174C6);
.transition(.1s linear all);
&.primary {
&.primary {
.btnColoring(@blue, @blueDark)
//#gradient > .vertical(@blue, @blueDark);
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
border-color: @blueDark @blueDark darken(@blueDark, 15%);
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
&:hover {
color: #fff;
}
}
&.danger {
.btnColoring(lighten(@red, 15%), @red)
}
}
&.large {
// Active and Disabled states
font-size: 16px;
line-height: 28px;
.border-radius(6px);
}
&.small {
padding-right: 9px;
padding-left: 9px;
font-size: 11px;
}
&.disabled {
&.disabled {
cursor: default;
background-image: none;
background-image: none;
.opacity(65);
.opacity(65);
cursor: default;
.box-shadow(none);
}
}
// this can't be included with the .disabled def because IE8 and below will drop it ;_;
&:disabled {
&:disabled {
// disabled pseudo can't be included with .disabled
// def because IE8 and below will drop it ;_;
cursor: default;
background-image: none;
background-image: none;
.opacity(65);
.opacity(65);
cursor: default;
.box-shadow(none);
&.primary {
color: #fff;
}
}
}
&:active {
&:active {
@shadow: inset 0 3px 7px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05);
@shadow: inset 0 3px 7px rgba(0,0,0,.1
5
), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
.box-shadow(@shadow);
}
}
// Button Sizes
&.large {
font-size: 16px;
line-height: normal;
padding: 9px 14px 9px;
.border-radius(6px);
}
&.small {
padding: 7px 9px 7px;
font-size: 11px;
}
}
}
// Help Firefox not be a jerk about adding extra padding to buttons
// Help Firefox not be a jerk about adding extra padding to buttons
...
...
lib/type.less
View file @
b9c9f1d8
...
@@ -130,7 +130,7 @@ em {
...
@@ -130,7 +130,7 @@ em {
line-height: inherit;
line-height: inherit;
}
}
.muted {
.muted {
color: @grayLight
er
;
color: @grayLight;
}
}
// Blockquotes
// Blockquotes
...
@@ -181,5 +181,8 @@ pre {
...
@@ -181,5 +181,8 @@ pre {
border: 1px solid #ccc;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.15);
border: 1px solid rgba(0,0,0,.15);
.border-radius(3px);
.border-radius(3px);
white-space: pre;
white-space: pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment