From 21bebe77feb9265b06d65e1e941cf7c73c4d90c1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jan 2012 20:50:51 -0800 Subject: refactor buttons.less --- docs/assets/bootstrap.zip | Bin 52285 -> 52308 bytes docs/assets/css/bootstrap.css | 172 +++++++++++----------- docs/assets/css/docs.css | 2 +- docs/index.html | 275 ++++++++++++++++++------------------ docs/templates/pages/index.mustache | 263 +++++++++++++++++----------------- 5 files changed, 353 insertions(+), 359 deletions(-) (limited to 'docs') diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index fed424c46..930c01937 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 8045e561d..c377d6f97 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1653,6 +1653,92 @@ table .span12 { filter: alpha(opacity=40); cursor: pointer; } +.btn { + display: inline-block; + padding: 4px 10px 4px; + font-size: 13px; + line-height: 18px; + color: #333333; + text-align: center; + text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); + background-color: #fafafa; + background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6)); + background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); + background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6); + background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); + background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); + background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); + background-repeat: no-repeat; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0); + border: 1px solid #ccc; + border-bottom-color: #bbb; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + cursor: pointer; + *margin-left: .3em; +} +.btn:first-child { + *margin-left: 0; +} +.btn:hover { + color: #333333; + text-decoration: none; + background-color: #e6e6e6; + background-position: 0 -15px; + -webkit-transition: background-position 0.1s linear; + -moz-transition: background-position 0.1s linear; + -ms-transition: background-position 0.1s linear; + -o-transition: background-position 0.1s linear; + transition: background-position 0.1s linear; +} +.btn:focus { + outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} +.btn.active, .btn:active { + background-image: none; + -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + background-color: #e6e6e6; + background-color: #d9d9d9 \9; + color: rgba(0, 0, 0, 0.5); + outline: 0; +} +.btn.disabled, .btn[disabled] { + cursor: default; + background-image: none; + background-color: #e6e6e6; + opacity: 0.65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +.btn.large { + padding: 9px 14px; + font-size: 15px; + line-height: normal; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; +} +.btn.large .icon { + margin-top: 1px; +} +.btn.small { + padding: 5px 9px; + font-size: 11px; + line-height: 16px; +} +.btn.small .icon { + margin-top: -1px; +} .btn.primary, .btn.primary:hover, .btn.warning, @@ -1793,92 +1879,6 @@ table .span12 { .btn.info:active, .btn.info.active { background-color: #24748c \9; } -.btn { - display: inline-block; - padding: 4px 10px 4px; - font-size: 13px; - line-height: 18px; - color: #333333; - text-align: center; - text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); - background-color: #fafafa; - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6)); - background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); - background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6); - background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); - background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); - background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); - background-repeat: no-repeat; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0); - border: 1px solid #ccc; - border-bottom-color: #bbb; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); - cursor: pointer; - *margin-left: .3em; -} -.btn:first-child { - *margin-left: 0; -} -.btn:hover { - color: #333333; - text-decoration: none; - background-color: #e6e6e6; - background-position: 0 -15px; - -webkit-transition: background-position 0.1s linear; - -moz-transition: background-position 0.1s linear; - -ms-transition: background-position 0.1s linear; - -o-transition: background-position 0.1s linear; - transition: background-position 0.1s linear; -} -.btn:focus { - outline: thin dotted; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; -} -.btn.active, .btn:active { - background-image: none; - -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); - -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); - background-color: #e6e6e6; - background-color: #d9d9d9 \9; - color: rgba(0, 0, 0, 0.5); - outline: 0; -} -.btn.disabled, .btn[disabled] { - cursor: default; - background-image: none; - background-color: #e6e6e6; - opacity: 0.65; - filter: alpha(opacity=65); - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} -.btn.large { - padding: 9px 14px; - font-size: 15px; - line-height: normal; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} -.btn.large .icon { - margin-top: 1px; -} -.btn.small { - padding: 5px 9px; - font-size: 11px; - line-height: 16px; -} -.btn.small .icon { - margin-top: -1px; -} button.btn, input[type="submit"].btn { *padding-top: 2px; *padding-bottom: 2px; diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index acbcc6941..026872a34 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -73,7 +73,7 @@ hr.soften { line-height: 36px; color: #333; } -.jumbotron .btn-large { +.jumbotron .btn { font-size: 20px; font-weight: normal; padding: 14px 24px; diff --git a/docs/index.html b/docs/index.html index a8fd8e31b..66cc0ee48 100644 --- a/docs/index.html +++ b/docs/index.html @@ -74,145 +74,142 @@
-
- - -
-
-

Bootstrap, from Twitter

-

Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.

-

- View project on GitHub - Download Bootstrap -

-
- - -
- -
- -
-

Designed for everyone, everywhere.

- -
-
- -

Built for and by nerds

-

Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.

-
-
- -

For all skill levels

-

Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.

-
-
- -

Cross-everything

-

Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.

-
-
-
-
- -

12-column grid

-

Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.

-
-
- -

Responsive design

-

With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.

-
-
- -

Styleguide docs

-

Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.

-
-
-
-
- -

Growing library

-

Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.

-
-
- -

Custom jQuery plugins

-

What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.

-
-
- -

Built on LESS

-

Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.

-
-
-
-
- -

HTML5

-

Built to support new HTML5 elements and syntax.

-
-
- -

CSS3

-

Progressively enhanced components for ultimate style.

-
-
- -

Open-source

-

Built for and maintained by the community via GitHub.

-
-
- -

Made at Twitter

-

Brought to you by an experienced engineer and designer.

-
-
- -
- -

Built with Bootstrap.

- - - -
-
+ +
+
+

Bootstrap, from Twitter

+

Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.

+

+ View project on GitHub + Download Bootstrap +

+
+ + +
+ +
+ +
+

Designed for everyone, everywhere.

+ +
+
+ +

Built for and by nerds

+

Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.

+
+
+ +

For all skill levels

+

Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.

+
+
+ +

Cross-everything

+

Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.

+
+
+
+
+ +

12-column grid

+

Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.

+
+
+ +

Responsive design

+

With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.

+
+
+ +

Styleguide docs

+

Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.

+
+
+
+
+ +

Growing library

+

Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.

+
+
+ +

Custom jQuery plugins

+

What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.

+
+
+ +

Built on LESS

+

Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.

+
+
+
+
+ +

HTML5

+

Built to support new HTML5 elements and syntax.

+
+
+ +

CSS3

+

Progressively enhanced components for ultimate style.

+
+
+ +

Open-source

+

Built for and maintained by the community via GitHub.

+
+
+ +

Made at Twitter

+

Brought to you by an experienced engineer and designer.

+
+
+ +
+ +

Built with Bootstrap.

+ + + +
diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index d49f95f9b..5ef0c680a 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -1,139 +1,136 @@ -
+ +
+
+

{{_i}}Bootstrap, from Twitter{{/i}}

+

Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.

+

+ {{_i}}View project on GitHub{{/i}} + {{_i}}Download Bootstrap{{/i}} +

+
- -
-
-

{{_i}}Bootstrap, from Twitter{{/i}}

-

Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.

-

- {{_i}}View project on GitHub{{/i}} - {{_i}}Download Bootstrap{{/i}} -

-
+ +
- -
+
-
+
+

{{_i}}Designed for everyone, everywhere.{{/i}}

+ +
+
+ +

{{_i}}Built for and by nerds{{/i}}

+

{{_i}}Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.{{/i}}

+
+
+ +

{{_i}}For all skill levels{{/i}}

+

{{_i}}Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.{{/i}}

+
+
+ +

{{_i}}Cross-everything{{/i}}

+

{{_i}}Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.{{/i}}

+
+
+
+
+ +

{{_i}}12-column grid{{/i}}

+

{{_i}}Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.{{/i}}

+
+
+ +

{{_i}}Responsive design{{/i}}

+

{{_i}}With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}

+
+
+ +

{{_i}}Styleguide docs{{/i}}

+

{{_i}}Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.{{/i}}

+
+
+
+
+ +

{{_i}}Growing library{{/i}}

+

{{_i}}Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.{{/i}}

+
+
+ +

{{_i}}Custom jQuery plugins{{/i}}

+

{{_i}}What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.{{/i}}

+
+
+ +

{{_i}}Built on LESS{{/i}}

+

{{_i}}Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.{{/i}}

+
+
+
+
+ +

HTML5

+

{{_i}}Built to support new HTML5 elements and syntax.{{/i}}

+
+
+ +

CSS3

+

{{_i}}Progressively enhanced components for ultimate style.{{/i}}

+
+
+ +

{{_i}}Open-source{{/i}}

+

{{_i}}Built for and maintained by the community via GitHub.{{/i}}

+
+
+ +

{{_i}}Made at Twitter{{/i}}

+

{{_i}}Brought to you by an experienced engineer and designer.{{/i}}

+
+
-
-

{{_i}}Designed for everyone, everywhere.{{/i}}

- -
-
- -

{{_i}}Built for and by nerds{{/i}}

-

{{_i}}Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.{{/i}}

-
-
- -

{{_i}}For all skill levels{{/i}}

-

{{_i}}Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.{{/i}}

-
-
- -

{{_i}}Cross-everything{{/i}}

-

{{_i}}Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.{{/i}}

-
-
-
-
- -

{{_i}}12-column grid{{/i}}

-

{{_i}}Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.{{/i}}

-
-
- -

{{_i}}Responsive design{{/i}}

-

{{_i}}With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}

-
-
- -

{{_i}}Styleguide docs{{/i}}

-

{{_i}}Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.{{/i}}

-
-
-
-
- -

{{_i}}Growing library{{/i}}

-

{{_i}}Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.{{/i}}

-
-
- -

{{_i}}Custom jQuery plugins{{/i}}

-

{{_i}}What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.{{/i}}

-
-
- -

{{_i}}Built on LESS{{/i}}

-

{{_i}}Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.{{/i}}

-
-
-
-
- -

HTML5

-

{{_i}}Built to support new HTML5 elements and syntax.{{/i}}

-
-
- -

CSS3

-

{{_i}}Progressively enhanced components for ultimate style.{{/i}}

-
-
- -

{{_i}}Open-source{{/i}}

-

{{_i}}Built for and maintained by the community via GitHub.{{/i}}

-
-
- -

{{_i}}Made at Twitter{{/i}}

-

{{_i}}Brought to you by an experienced engineer and designer.{{/i}}

-
-
+
-
+

{{_i}}Built with Bootstrap.{{/i}}

+ + -

{{_i}}Built with Bootstrap.{{/i}}

- - - -
-
\ No newline at end of file +
\ No newline at end of file -- cgit v1.2.3