Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
added the missing mixins less files
Browse files Browse the repository at this point in the history
- updated package to 3.2.0.1 patch version to add missing files
fixes #37
  • Loading branch information
sirkirby committed Jul 2, 2014
1 parent 4c4d48e commit 8bf46b2
Show file tree
Hide file tree
Showing 30 changed files with 999 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/twitter.bootstrap.less/Twitter.Bootstrap.Less.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Twitter.Bootstrap.Less</id>
<version>3.2.0</version>
<version>3.2.0.1</version>
<title>Bootstrap Less Source</title>
<authors>Jacob Thornton,Mark Otto</authors>
<owners>sirkirby</owners>
Expand All @@ -16,6 +16,7 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.</summary>
<releaseNotes>- Latest source release.
- added mixins less

http://blog.getbootstrap.com/2014/06/26/bootstrap-3-2-0-released/</releaseNotes>
<language>en-US</language>
Expand All @@ -25,6 +26,35 @@ http://blog.getbootstrap.com/2014/06/26/bootstrap-3-2-0-released/</releaseNotes>
</dependencies>
</metadata>
<files>
<file src="mixins\alerts.less" target="content\Content\bootstrap\mixins\alerts.less" />
<file src="mixins\background-variant.less" target="content\Content\bootstrap\mixins\background-variant.less" />
<file src="mixins\border-radius.less" target="content\Content\bootstrap\mixins\border-radius.less" />
<file src="mixins\buttons.less" target="content\Content\bootstrap\mixins\buttons.less" />
<file src="mixins\center-block.less" target="content\Content\bootstrap\mixins\center-block.less" />
<file src="mixins\clearfix.less" target="content\Content\bootstrap\mixins\clearfix.less" />
<file src="mixins\forms.less" target="content\Content\bootstrap\mixins\forms.less" />
<file src="mixins\gradients.less" target="content\Content\bootstrap\mixins\gradients.less" />
<file src="mixins\grid-framework.less" target="content\Content\bootstrap\mixins\grid-framework.less" />
<file src="mixins\grid.less" target="content\Content\bootstrap\mixins\grid.less" />
<file src="mixins\hide-text.less" target="content\Content\bootstrap\mixins\hide-text.less" />
<file src="mixins\image.less" target="content\Content\bootstrap\mixins\image.less" />
<file src="mixins\labels.less" target="content\Content\bootstrap\mixins\labels.less" />
<file src="mixins\list-group.less" target="content\Content\bootstrap\mixins\list-group.less" />
<file src="mixins\nav-divider.less" target="content\Content\bootstrap\mixins\nav-divider.less" />
<file src="mixins\nav-vertical-align.less" target="content\Content\bootstrap\mixins\nav-vertical-align.less" />
<file src="mixins\opacity.less" target="content\Content\bootstrap\mixins\opacity.less" />
<file src="mixins\pagination.less" target="content\Content\bootstrap\mixins\pagination.less" />
<file src="mixins\panels.less" target="content\Content\bootstrap\mixins\panels.less" />
<file src="mixins\progress-bar.less" target="content\Content\bootstrap\mixins\progress-bar.less" />
<file src="mixins\reset-filter.less" target="content\Content\bootstrap\mixins\reset-filter.less" />
<file src="mixins\resize.less" target="content\Content\bootstrap\mixins\resize.less" />
<file src="mixins\responsive-visibility.less" target="content\Content\bootstrap\mixins\responsive-visibility.less" />
<file src="mixins\size.less" target="content\Content\bootstrap\mixins\size.less" />
<file src="mixins\tab-focus.less" target="content\Content\bootstrap\mixins\tab-focus.less" />
<file src="mixins\table-row.less" target="content\Content\bootstrap\mixins\table-row.less" />
<file src="mixins\text-emphasis.less" target="content\Content\bootstrap\mixins\text-emphasis.less" />
<file src="mixins\text-overflow.less" target="content\Content\bootstrap\mixins\text-overflow.less" />
<file src="mixins\vendor-prefixes.less" target="content\Content\bootstrap\mixins\vendor-prefixes.less" />
<file src="alerts.less" target="content\Content\bootstrap\alerts.less" />
<file src="badges.less" target="content\Content\bootstrap\badges.less" />
<file src="bootstrap.less" target="content\Content\bootstrap\bootstrap.less" />
Expand Down
14 changes: 14 additions & 0 deletions src/twitter.bootstrap.less/mixins/alerts.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Alerts

.alert-variant(@background; @border; @text-color) {
background-color: @background;
border-color: @border;
color: @text-color;

hr {
border-top-color: darken(@border, 5%);
}
.alert-link {
color: darken(@text-color, 10%);
}
}
8 changes: 8 additions & 0 deletions src/twitter.bootstrap.less/mixins/background-variant.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Contextual backgrounds

.bg-variant(@color) {
background-color: @color;
a&:hover {
background-color: darken(@color, 10%);
}
}
18 changes: 18 additions & 0 deletions src/twitter.bootstrap.less/mixins/border-radius.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Single side border-radius

.border-top-radius(@radius) {
border-top-right-radius: @radius;
border-top-left-radius: @radius;
}
.border-right-radius(@radius) {
border-bottom-right-radius: @radius;
border-top-right-radius: @radius;
}
.border-bottom-radius(@radius) {
border-bottom-right-radius: @radius;
border-bottom-left-radius: @radius;
}
.border-left-radius(@radius) {
border-bottom-left-radius: @radius;
border-top-left-radius: @radius;
}
50 changes: 50 additions & 0 deletions src/twitter.bootstrap.less/mixins/buttons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Button variants
//
// Easily pump out default styles, as well as :hover, :focus, :active,
// and disabled options for all buttons

.button-variant(@color; @background; @border) {
color: @color;
background-color: @background;
border-color: @border;

&:hover,
&:focus,
&:active,
&.active,
.open > .dropdown-toggle& {
color: @color;
background-color: darken(@background, 10%);
border-color: darken(@border, 12%);
}
&:active,
&.active,
.open > .dropdown-toggle& {
background-image: none;
}
&.disabled,
&[disabled],
fieldset[disabled] & {
&,
&:hover,
&:focus,
&:active,
&.active {
background-color: @background;
border-color: @border;
}
}

.badge {
color: @background;
background-color: @color;
}
}

// Button sizes
.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
padding: @padding-vertical @padding-horizontal;
font-size: @font-size;
line-height: @line-height;
border-radius: @border-radius;
}
7 changes: 7 additions & 0 deletions src/twitter.bootstrap.less/mixins/center-block.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Center-align a block level element

.center-block() {
display: block;
margin-left: auto;
margin-right: auto;
}
22 changes: 22 additions & 0 deletions src/twitter.bootstrap.less/mixins/clearfix.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Clearfix
//
// For modern browsers
// 1. The space content is one way to avoid an Opera bug when the
// contenteditable attribute is included anywhere else in the document.
// Otherwise it causes space to appear at the top and bottom of elements
// that are clearfixed.
// 2. The use of `table` rather than `block` is only necessary if using
// `:before` to contain the top-margins of child elements.
//
// Source: http://nicolasgallagher.com/micro-clearfix-hack/

.clearfix() {
&:before,
&:after {
content: " "; // 1
display: table; // 2
}
&:after {
clear: both;
}
}
81 changes: 81 additions & 0 deletions src/twitter.bootstrap.less/mixins/forms.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// Form validation states
//
// Used in forms.less to generate the form validation CSS for warnings, errors,
// and successes.

.form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
// Color the label and help text
.help-block,
.control-label,
.radio,
.checkbox,
.radio-inline,
.checkbox-inline {
color: @text-color;
}
// Set the border and box shadow on specific inputs to match
.form-control {
border-color: @border-color;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
&:focus {
border-color: darken(@border-color, 10%);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
.box-shadow(@shadow);
}
}
// Set validation states also for addons
.input-group-addon {
color: @text-color;
border-color: @border-color;
background-color: @background-color;
}
// Optional feedback icon
.form-control-feedback {
color: @text-color;
}
}


// Form control focus state
//
// Generate a customized focus state and for any input with the specified color,
// which defaults to the `@input-border-focus` variable.
//
// We highly encourage you to not customize the default value, but instead use
// this to tweak colors on an as-needed basis. This aesthetic change is based on
// WebKit's default styles, but applicable to a wider range of browsers. Its
// usability and accessibility should be taken into account with any change.
//
// Example usage: change the default blue border and shadow to white for better
// contrast against a dark gray background.
.form-control-focus(@color: @input-border-focus) {
@color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
&:focus {
border-color: @color;
outline: 0;
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
}
}

// Form control sizing
//
// Relative text size, padding, and border-radii changes for form controls. For
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
// element gets special love because it's special, and that's a fact!
.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
height: @input-height;
padding: @padding-vertical @padding-horizontal;
font-size: @font-size;
line-height: @line-height;
border-radius: @border-radius;

select& {
height: @input-height;
line-height: @input-height;
}

textarea&,
select[multiple]& {
height: auto;
}
}
59 changes: 59 additions & 0 deletions src/twitter.bootstrap.less/mixins/gradients.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Gradients

#gradient {

// Horizontal gradient, from left to right
//
// Creates two color stops, start and end, by specifying a color and position for each color stop.
// Color stops are not available in IE9 and below.
.horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12
background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
}

// Vertical gradient, from top to bottom
//
// Creates two color stops, start and end, by specifying a color and position for each color stop.
// Color stops are not available in IE9 and below.
.vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12
background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
}

.directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
background-repeat: repeat-x;
background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+
background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12
background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
}
.horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
background-repeat: no-repeat;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
}
.vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
background-repeat: no-repeat;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
}
.radial(@inner-color: #555; @outer-color: #333) {
background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
background-image: radial-gradient(circle, @inner-color, @outer-color);
background-repeat: no-repeat;
}
.striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
}
}
Loading

0 comments on commit 8bf46b2

Please sign in to comment.