mirror of
https://github.com/wahyd4/bootstrap.git
synced 2026-08-26 21:26:05 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae02a8a300 | ||
|
|
bd1d389751 | ||
|
|
6d57f8a3db | ||
|
|
f376de1319 | ||
|
|
b80d118c50 | ||
|
|
799a14d1cb | ||
|
|
8ba5a29456 | ||
|
|
68007404a8 | ||
|
|
5c687ee393 | ||
|
|
07837a1c47 | ||
|
|
9ec3bdd2d8 | ||
|
|
f53ddcc6fe | ||
|
|
7ecfc99a14 | ||
|
|
6d0b083b7d |
@@ -0,0 +1 @@
|
||||
.DS_Store
|
||||
@@ -1,188 +1,13 @@
|
||||
Copyright 2011 Twitter, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this work except in compliance with the License.
|
||||
You may obtain a copy of the License below, or at:
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
limitations under the License.
|
||||
@@ -3,6 +3,8 @@ TWITTER BOOTSTRAP
|
||||
|
||||
Bootstrap is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.
|
||||
|
||||
To get started -- checkout http://twitter.github.com/bootstrap!
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
@@ -24,7 +26,13 @@ For more info, refer to the docs!
|
||||
Reporting bugs
|
||||
--------------
|
||||
|
||||
Please create an issue here on github! :P
|
||||
Please create an issue here on GitHub! :P
|
||||
|
||||
|
||||
Google Group
|
||||
------------
|
||||
|
||||
http://groups.google.com/group/twitter-bootstrap
|
||||
|
||||
|
||||
AUTHORS
|
||||
|
||||
Vendored
+8
-22
@@ -6,12 +6,11 @@
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||
* Date: Fri Jul 29 13:03:43 PDT 2011
|
||||
* Date: Wed Aug 17 23:02:19 PDT 2011
|
||||
*/
|
||||
/*
|
||||
* Reset.less
|
||||
/* Reset.less
|
||||
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
|
||||
*/
|
||||
* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -125,9 +124,7 @@ aside {
|
||||
/*
|
||||
* Scaffolding
|
||||
* Basic and global styles for generating a grid system, structural layout, and page templates
|
||||
*/
|
||||
/* Baseline Grid System
|
||||
-------------------------------------------------- */
|
||||
* ------------------------------------------------------------------------------------------- */
|
||||
.row {
|
||||
zoom: 1;
|
||||
}
|
||||
@@ -338,8 +335,6 @@ aside {
|
||||
.row .offset12:first-child {
|
||||
margin-left: 720px !important;
|
||||
}
|
||||
/* Structural Layout
|
||||
-------------------------------------------------- */
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
}
|
||||
@@ -376,8 +371,6 @@ div.container-fluid div.content {
|
||||
max-width: 1180px;
|
||||
margin-left: 240px;
|
||||
}
|
||||
/* Base Styles
|
||||
-------------------------------------------------- */
|
||||
a {
|
||||
color: #0069d6;
|
||||
text-decoration: none;
|
||||
@@ -624,7 +617,7 @@ code, pre {
|
||||
code {
|
||||
background-color: #fee9cc;
|
||||
color: rgba(0, 0, 0, 0.75);
|
||||
padding: 2px 3px;
|
||||
padding: 1px 3px;
|
||||
}
|
||||
pre {
|
||||
background-color: #f5f5f5;
|
||||
@@ -639,12 +632,9 @@ pre {
|
||||
border-radius: 3px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
/*
|
||||
* Forms.less
|
||||
/* Forms.less
|
||||
* Base styles for various input types, form layouts, and states
|
||||
*/
|
||||
/* Global form styles
|
||||
-------------------------------------------------- */
|
||||
* ------------------------------------------------------------- */
|
||||
form {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
@@ -981,9 +971,7 @@ form.form-stacked div.actions {
|
||||
/*
|
||||
* Tables.less
|
||||
* Tables for, you guessed it, tabular data
|
||||
*/
|
||||
/* Baseline styles
|
||||
-------------------------------------------------- */
|
||||
* ---------------------------------------- */
|
||||
table {
|
||||
width: 100%;
|
||||
margin-bottom: 18px;
|
||||
@@ -1003,8 +991,6 @@ table th {
|
||||
font-weight: bold;
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
/* Zebra-striping
|
||||
-------------------------------------------------- */
|
||||
table.zebra-striped tbody tr:nth-child(odd) td {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -76,7 +76,7 @@ blockquote{margin-bottom:18px;border-left:5px solid #eee;padding-left:15px;}bloc
|
||||
blockquote cite{display:block;font-size:12px;font-weight:300;line-height:18px;color:#bfbfbf;}blockquote cite:before{content:'\2014 \00A0';}
|
||||
address{display:block;line-height:18px;margin-bottom:18px;}
|
||||
code,pre{padding:0 3px 2px;font-family:Monaco, Andale Mono, Courier New, monospace;font-size:12px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
|
||||
code{background-color:#fee9cc;color:rgba(0, 0, 0, 0.75);padding:2px 3px;}
|
||||
code{background-color:#fee9cc;color:rgba(0, 0, 0, 0.75);padding:1px 3px;}
|
||||
pre{background-color:#f5f5f5;display:block;padding:17px;margin:0 0 18px;line-height:18px;font-size:12px;border:1px solid rgba(0, 0, 0, 0.15);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;white-space:pre-wrap;}
|
||||
form{margin-bottom:18px;}form fieldset{margin-bottom:18px;padding-top:18px;}form fieldset legend{display:block;margin-left:150px;font-size:20px;line-height:1;color:#404040;}
|
||||
form div.clearfix{margin-bottom:18px;}
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
+16
-16
@@ -33,7 +33,7 @@
|
||||
<li><a href="#navigation">Navigation</a></li>
|
||||
<li><a href="#alerts">Alerts</a></li>
|
||||
<li><a href="#popovers">Popovers</a></li>
|
||||
<li><a href="#less">LESS</a></li>
|
||||
<li><a href="#less">Less</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,12 +41,12 @@
|
||||
<div id="masthead">
|
||||
<div class="inner">
|
||||
<div class="container">
|
||||
<h1>Bootstrap from Twitter</h1>
|
||||
<h1>Twitter Bootstrap</h1>
|
||||
<p class="lead">
|
||||
Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.<br />
|
||||
It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.<br />
|
||||
</p>
|
||||
<p><strong>Nerd alert:</strong> Bootstrap is <a href="#less" title="Read about using Bootstrap with LESS">built with LESS</a> and was designed to work out of the gate with only modern browsers in mind.</p>
|
||||
<p><strong>Nerd alert:</strong> Bootstrap is <a href="#less" title="Read about using Bootstrap with Less">built with Less</a> and was designed to work out of the gate with only modern browsers in mind.</p>
|
||||
</div> <!-- /container -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,21 +58,21 @@
|
||||
<h6>Hotlink the CSS</h6>
|
||||
<p>For the quickest and easiest start, just copy this snippet into your webpage.</p>
|
||||
<form>
|
||||
<textarea class="copy-code" rows="1"><link type="text/css" href="http://twitter.github.com/bootstrap-1.0.0.css</textarea>
|
||||
<textarea class="copy-code" rows="1"><link type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-1.0.0.min.css"></textarea>
|
||||
</form>
|
||||
</div>
|
||||
<div class="span5 columns">
|
||||
<h6>Use it with LESS</h6>
|
||||
<p>A fan of using LESS.js? No problem, just clone the repo and add these lines:</p>
|
||||
<h6>Use it with Less</h6>
|
||||
<p>A fan of using Less? No problem, just clone the repo and add these lines:</p>
|
||||
<form>
|
||||
<textarea class="copy-code" rows="2"><link rel="stylesheet/less" type="text/css" href="http://twitter.github.com/bootstrap.less>
|
||||
<script src="less.js"></script></textarea>
|
||||
<textarea class="copy-code" rows="2"><link rel="stylesheet/less" type="text/css" href="/path/to/bootstrap.less">
|
||||
<script src="/path/to/less.js"></script></textarea>
|
||||
</form>
|
||||
</div>
|
||||
<div class="span5 columns">
|
||||
<h6>Fork on GitHub</h6>
|
||||
<p>Download, fork, pull, file issues, and more with the official Bootstrap repo on Github.</p>
|
||||
<p><a href="" class="btn primary">Bootstrap on GitHub »</a></p>
|
||||
<p><a target="_blank" href="https://github.com/twitter/bootstrap" class="btn primary">Bootstrap on GitHub »</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1145,25 +1145,25 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita
|
||||
|
||||
<section id="less">
|
||||
<div class="page-header">
|
||||
<h1>Using Bootstrap with LESS <small>Supercharge your CSS with variables, mixins, and functions</small></h1>
|
||||
<h1>Using Bootstrap with Less <small>Supercharge your CSS with variables, mixins, and functions</small></h1>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span4 columns">
|
||||
<p>Bootstrap was built with <a href="http://markdotto.com/bootstrap/">Preboot</a>, an open-source pack of mixins and variables to be used in conjunction with <a href="http://lesscss.org" target="_blank">LESS</a>, a CSS preprocessor for faster and easier web development.</p>
|
||||
<p>Check out how we used Preboot in Bootstrap and how you can make use of it should you choose to run LESS on your next project.</p>
|
||||
<p>Bootstrap was built with <a href="http://markdotto.com/bootstrap/">Preboot</a>, an open-source pack of mixins and variables to be used in conjunction with <a href="http://lesscss.org" target="_blank">Less</a>, a CSS preprocessor for faster and easier web development.</p>
|
||||
<p>Check out how we used Preboot in Bootstrap and how you can make use of it should you choose to run Less on your next project.</p>
|
||||
</div>
|
||||
<div class="span12 columns">
|
||||
<h2>How to use it</h2>
|
||||
<p>Use this option to make full use of Bootstrap's LESS variables, mixins, and nesting in CSS via javascript in your browser.</p>
|
||||
<p>Use this option to make full use of Bootstrap's Less variables, mixins, and nesting in CSS via javascript in your browser.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<link rel="stylesheet/less" type="text/css" href="less/bootstrap.less" media="all" />
|
||||
<script type="text/javascript" src="js/less-1.0.41.min.js"></script></pre>
|
||||
<p>Not feeling the .js solution? <a href="http://incident57.com/less" target="_blank">Try the LESS Mac app</a> or <a href="http://lesscss.org/#-client-side-usage" target="_blank">use Node.js</a> to compile when you deploy your code.</p>
|
||||
<p>Not feeling the .js solution? <a href="http://incident57.com/less" target="_blank">Try the Less Mac app</a> or <a href="http://lesscss.org/#-client-side-usage" target="_blank">use Node.js</a> to compile when you deploy your code.</p>
|
||||
|
||||
<h2>What's included</h2>
|
||||
<p>Here are some of the highlights of what's included in Twitter Bootstrap as part of Bootstrap. Head over to the Bootstrap website or Github project page to download and learn more.</p>
|
||||
<h3>Color variables</h3>
|
||||
<p>Variables in LESS are perfect for maintaining and updating your CSS headache free. When you want to change a color value or a frequently used value, update it in one spot and you're set.</p>
|
||||
<p>Variables in Less are perfect for maintaining and updating your CSS headache free. When you want to change a color value or a frequently used value, update it in one spot and you're set.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
// Links
|
||||
@linkColor: #8b59c2;
|
||||
@@ -1191,7 +1191,7 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita
|
||||
</pre>
|
||||
|
||||
<h3>Commenting</h3>
|
||||
<p>LESS also provides another style of commenting in addition to CSS's normal <code>/* ... */</code> syntax.</p>
|
||||
<p>Less also provides another style of commenting in addition to CSS's normal <code>/* ... */</code> syntax.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
// This is a comment
|
||||
/* This is also a comment */
|
||||
|
||||
+17
-5
@@ -1,14 +1,14 @@
|
||||
/*
|
||||
* Forms.less
|
||||
/* Forms.less
|
||||
* Base styles for various input types, form layouts, and states
|
||||
*/
|
||||
* ------------------------------------------------------------- */
|
||||
|
||||
|
||||
/* Global form styles
|
||||
-------------------------------------------------- */
|
||||
// FORM STYLES
|
||||
// -----------
|
||||
|
||||
form {
|
||||
margin-bottom: @baseline;
|
||||
|
||||
// Groups of fields with labels on top (legends)
|
||||
fieldset {
|
||||
margin-bottom: @baseline;
|
||||
@@ -21,14 +21,17 @@ form {
|
||||
color: @grayDark;
|
||||
}
|
||||
}
|
||||
|
||||
// Parent element that clears floats and wraps labels and fields together
|
||||
div.clearfix {
|
||||
margin-bottom: @baseline;
|
||||
}
|
||||
|
||||
// Set font for forms
|
||||
label, input, select, textarea {
|
||||
#font > .sans-serif(normal,13px,normal);
|
||||
}
|
||||
|
||||
// Float labels left
|
||||
label {
|
||||
padding-top: 6px;
|
||||
@@ -39,15 +42,18 @@ form {
|
||||
text-align: right;
|
||||
color: @grayDark;
|
||||
}
|
||||
|
||||
// Shift over the inside div to align all label's relevant content
|
||||
div.input {
|
||||
margin-left: 150px;
|
||||
}
|
||||
|
||||
// Checkboxs and radio buttons
|
||||
input[type=checkbox],
|
||||
input[type=radio] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
// Inputs, Textareas, Selects
|
||||
input[type=text],
|
||||
input[type=password],
|
||||
@@ -79,6 +85,7 @@ form {
|
||||
border-color: #ccc;
|
||||
.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
|
||||
:-moz-placeholder {
|
||||
color: @grayLight;
|
||||
@@ -86,6 +93,7 @@ form {
|
||||
::-webkit-input-placeholder {
|
||||
color: @grayLight;
|
||||
}
|
||||
|
||||
// Focus states
|
||||
input[type=text],
|
||||
input[type=password],
|
||||
@@ -102,6 +110,7 @@ form {
|
||||
@shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
|
||||
.box-shadow(@shadow);
|
||||
}
|
||||
|
||||
// Error styles
|
||||
div.error {
|
||||
background: lighten(@red, 57%);
|
||||
@@ -133,6 +142,7 @@ form {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Form element sizes
|
||||
.input-mini, input.mini, textarea.mini, select.mini {
|
||||
width: 60px;
|
||||
@@ -155,6 +165,7 @@ form {
|
||||
textarea.xxlarge {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
// Turn off focus for disabled (read-only) form elements
|
||||
input[readonly]:focus,
|
||||
textarea[readonly]:focus,
|
||||
@@ -194,6 +205,7 @@ div.actions {
|
||||
.help-inline {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
// Big blocks of help text
|
||||
.help-block {
|
||||
display: block;
|
||||
|
||||
+24
-11
@@ -2,7 +2,8 @@
|
||||
* Repeatable UI elements outside the base styles provided from the scaffolding
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
// Topbar
|
||||
|
||||
// TOPBAR
|
||||
// ------
|
||||
|
||||
// Topbar for Branding and Nav
|
||||
@@ -17,11 +18,13 @@ div.topbar {
|
||||
overflow: visible;
|
||||
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
|
||||
.box-shadow(@shadow);
|
||||
|
||||
// Links get text shadow
|
||||
a {
|
||||
color: @grayLight;
|
||||
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||
}
|
||||
|
||||
// Hover and active states for links
|
||||
ul li a:hover,
|
||||
ul li.active a,
|
||||
@@ -31,6 +34,7 @@ div.topbar {
|
||||
color: @white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Logo
|
||||
a.logo {
|
||||
float: left;
|
||||
@@ -46,6 +50,7 @@ div.topbar {
|
||||
margin-right: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
// Search Form
|
||||
form {
|
||||
float: left;
|
||||
@@ -65,6 +70,7 @@ div.topbar {
|
||||
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.25);
|
||||
.box-shadow(@shadow);
|
||||
.transition(none);
|
||||
|
||||
// Placeholder text gets special styles; can't be bundled together though for some reason
|
||||
&:-moz-placeholder {
|
||||
color: @grayLighter;
|
||||
@@ -89,6 +95,7 @@ div.topbar {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Navigation
|
||||
ul {
|
||||
display: block;
|
||||
@@ -120,6 +127,7 @@ div.topbar {
|
||||
background-color: rgba(0,0,0,.5);
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdowns
|
||||
&.primary-nav li ul {
|
||||
left: 0;
|
||||
@@ -207,6 +215,7 @@ div.topbar {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
// Dividers (basically an hr)
|
||||
&.divider {
|
||||
height: 1px;
|
||||
@@ -215,6 +224,7 @@ div.topbar {
|
||||
border-bottom: 1px solid rgba(255,255,255,.1);
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
// Section separaters
|
||||
span {
|
||||
clear: both;
|
||||
@@ -230,7 +240,8 @@ div.topbar {
|
||||
}
|
||||
}
|
||||
|
||||
// Page Headers
|
||||
|
||||
// PAGE HEADERS
|
||||
// ------------
|
||||
|
||||
div.page-header {
|
||||
@@ -243,7 +254,7 @@ div.page-header {
|
||||
}
|
||||
|
||||
|
||||
// Error Styles
|
||||
// ERROR STYLES
|
||||
// ------------
|
||||
|
||||
// One-liner alert bars
|
||||
@@ -336,7 +347,7 @@ div.block-message {
|
||||
}
|
||||
|
||||
|
||||
// Navigation
|
||||
// NAVIGATION
|
||||
// ----------
|
||||
|
||||
// Common tab and pill styles
|
||||
@@ -353,6 +364,7 @@ ul.pills {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Basic Tabs
|
||||
ul.tabs {
|
||||
width: 100%;
|
||||
@@ -378,6 +390,7 @@ ul.tabs {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Basic pill nav
|
||||
ul.pills {
|
||||
li {
|
||||
@@ -403,8 +416,8 @@ ul.pills {
|
||||
}
|
||||
|
||||
|
||||
// Pagination
|
||||
// --------------------------------------------------
|
||||
// PAGINATION
|
||||
// ----------
|
||||
|
||||
div.pagination {
|
||||
height: @baseline * 2;
|
||||
@@ -442,7 +455,7 @@ div.pagination {
|
||||
}
|
||||
|
||||
|
||||
// Wells
|
||||
// WELLS
|
||||
// -----
|
||||
|
||||
div.well {
|
||||
@@ -456,7 +469,7 @@ div.well {
|
||||
}
|
||||
|
||||
|
||||
// Modals
|
||||
// MODALS
|
||||
// ------
|
||||
|
||||
div.modal-backdrop {
|
||||
@@ -510,7 +523,7 @@ div.modal {
|
||||
}
|
||||
|
||||
|
||||
// Popover Arrows
|
||||
// POPOVER ARROWS
|
||||
// --------------
|
||||
|
||||
#popoverArrow {
|
||||
@@ -548,7 +561,7 @@ div.modal {
|
||||
}
|
||||
}
|
||||
|
||||
// Twipsy
|
||||
// TWIPSY
|
||||
// ------
|
||||
|
||||
div.twipsy {
|
||||
@@ -580,7 +593,7 @@ div.twipsy {
|
||||
}
|
||||
|
||||
|
||||
// Popovers
|
||||
// POPOVERS
|
||||
// --------
|
||||
|
||||
.popover {
|
||||
|
||||
+3
-5
@@ -2,7 +2,8 @@
|
||||
* Variables and mixins to pre-ignite any new web development project
|
||||
* ------------------------------------------------------------------ */
|
||||
|
||||
// Variables
|
||||
|
||||
// VARIABLES
|
||||
// ---------
|
||||
|
||||
// Links
|
||||
@@ -37,10 +38,7 @@
|
||||
@gridGutterWidth: 20px;
|
||||
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
||||
|
||||
|
||||
// Color Scheme
|
||||
// ------------
|
||||
|
||||
@baseColor: @blue; // Set a base color
|
||||
@complement: spin(@baseColor, 180); // Determine a complementary color
|
||||
@split1: spin(@baseColor, 158); // Split complements
|
||||
@@ -53,7 +51,7 @@
|
||||
@analog2: spin(@baseColor, -22);
|
||||
|
||||
|
||||
// Mixins
|
||||
// MIXINS
|
||||
// ------
|
||||
|
||||
// Clearfix for clearing floats like a boss
|
||||
|
||||
+11
-10
@@ -1,20 +1,21 @@
|
||||
/*
|
||||
* Reset.less
|
||||
/* Reset.less
|
||||
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
|
||||
*/
|
||||
* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
// ERIC MEYER RESET
|
||||
// ----------------
|
||||
|
||||
// Eric Meyer reset
|
||||
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; }
|
||||
table { border-collapse: collapse; border-spacing: 0; }
|
||||
ol, ul { list-style: none; }
|
||||
q:before, q:after, blockquote:before, blockquote:after { content: ""; }
|
||||
|
||||
|
||||
// HTML5
|
||||
header,
|
||||
section,
|
||||
footer,
|
||||
article,
|
||||
aside {
|
||||
// -----
|
||||
|
||||
header, section, footer, article, aside {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
+11
-9
@@ -1,14 +1,15 @@
|
||||
/*
|
||||
* Scaffolding
|
||||
* Basic and global styles for generating a grid system, structural layout, and page templates
|
||||
*/
|
||||
* ------------------------------------------------------------------------------------------- */
|
||||
|
||||
/* Baseline Grid System
|
||||
-------------------------------------------------- */
|
||||
|
||||
// GRID SYSTEM
|
||||
// -----------
|
||||
|
||||
.row {
|
||||
.clearfix();
|
||||
|
||||
|
||||
// Default columns
|
||||
.span1 { .columns(1); }
|
||||
.span2 { .columns(2); }
|
||||
@@ -26,7 +27,7 @@
|
||||
.span14 { .columns(14); }
|
||||
.span15 { .columns(15); }
|
||||
.span16 { .columns(16); }
|
||||
|
||||
|
||||
// Offset column options
|
||||
.offset1 { .offset(1); }
|
||||
.offset2 { .offset(2); }
|
||||
@@ -43,8 +44,8 @@
|
||||
}
|
||||
|
||||
|
||||
/* Structural Layout
|
||||
-------------------------------------------------- */
|
||||
// STRUCTURAL LAYOUT
|
||||
// -----------------
|
||||
|
||||
html, body {
|
||||
background-color: #fff;
|
||||
@@ -78,8 +79,8 @@ div.container-fluid {
|
||||
}
|
||||
|
||||
|
||||
/* Base Styles
|
||||
-------------------------------------------------- */
|
||||
// BASE STYLES
|
||||
// -----------
|
||||
|
||||
// Links
|
||||
a {
|
||||
@@ -125,6 +126,7 @@ a {
|
||||
.box-shadow(@shadow);
|
||||
}
|
||||
}
|
||||
|
||||
// Help Firefox not be a jerk about adding extra padding to buttons
|
||||
button.btn,
|
||||
input[type=submit].btn {
|
||||
|
||||
+29
-14
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
* Tables.less
|
||||
* Tables for, you guessed it, tabular data
|
||||
*/
|
||||
* ---------------------------------------- */
|
||||
|
||||
|
||||
/* Baseline styles
|
||||
-------------------------------------------------- */
|
||||
// BASELINE STYLES
|
||||
// ---------------
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
@@ -28,8 +28,8 @@ table {
|
||||
}
|
||||
|
||||
|
||||
/* Zebra-striping
|
||||
-------------------------------------------------- */
|
||||
// ZEBRA-STRIPING
|
||||
// --------------
|
||||
|
||||
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
||||
table.zebra-striped {
|
||||
@@ -41,8 +41,9 @@ table.zebra-striped {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
}
|
||||
|
||||
// Tablesorting styles w/ jQuery plugin
|
||||
th.header { // For tablesorter tables, make THs have a pointer on hover
|
||||
th.header {
|
||||
cursor: pointer;
|
||||
&:after {
|
||||
width: 0px;
|
||||
@@ -61,13 +62,17 @@ table.zebra-striped {
|
||||
.opacity(30);
|
||||
}
|
||||
}
|
||||
|
||||
// Style the sorted column headers (THs)
|
||||
th.headerSortUp,
|
||||
th.headerSortDown { // Style the sorted column headers (THs)
|
||||
th.headerSortDown {
|
||||
background-color: rgba(141,192,219,.25);
|
||||
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
||||
.border-radius(3px 3px 0 0);
|
||||
}
|
||||
th.header:hover { // Style the ascending (reverse alphabetical) column header
|
||||
|
||||
// Style the ascending (reverse alphabetical) column header
|
||||
th.header:hover {
|
||||
&:after {
|
||||
visibility:visible;
|
||||
}
|
||||
@@ -75,14 +80,18 @@ table.zebra-striped {
|
||||
th.actions:hover {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
// Style the descending (alphabetical) column header
|
||||
th.headerSortDown,
|
||||
th.headerSortDown:hover { // Style the descending (alphabetical) column header
|
||||
th.headerSortDown:hover {
|
||||
&:after {
|
||||
visibility:visible;
|
||||
.opacity(60);
|
||||
}
|
||||
}
|
||||
th.headerSortUp { // Style the ascending (reverse alphabetical) column header
|
||||
|
||||
// Style the ascending (reverse alphabetical) column header
|
||||
th.headerSortUp {
|
||||
&:after {
|
||||
border-bottom: none;
|
||||
border-left: 4px solid transparent;
|
||||
@@ -93,6 +102,7 @@ table.zebra-striped {
|
||||
.opacity(60);
|
||||
}
|
||||
}
|
||||
|
||||
// Blue Table Headings
|
||||
th.blue {
|
||||
color: @blue;
|
||||
@@ -101,6 +111,7 @@ table.zebra-striped {
|
||||
th.headerSortUp.blue, th.headerSortDown.blue {
|
||||
background-color: lighten(@blue, 40%);
|
||||
}
|
||||
|
||||
// Green Table Headings
|
||||
th.green {
|
||||
color: @green;
|
||||
@@ -109,36 +120,40 @@ table.zebra-striped {
|
||||
th.headerSortUp.green, th.headerSortDown.green { // backround color is 20% of border color
|
||||
background-color: lighten(@green, 40%);
|
||||
}
|
||||
|
||||
// Red Table Headings
|
||||
th.red {
|
||||
color: @red;
|
||||
border-bottom-color: @red;
|
||||
}
|
||||
th.headerSortUp.red, th.headerSortDown.red { // backround color is 20% of border color
|
||||
th.headerSortUp.red, th.headerSortDown.red {
|
||||
background-color: lighten(@red, 50%);
|
||||
}
|
||||
|
||||
// Yellow Table Headings
|
||||
th.yellow {
|
||||
color: @yellow;
|
||||
border-bottom-color: @yellow;
|
||||
}
|
||||
th.headerSortUp.yellow, th.headerSortDown.yellow { // backround color is 20% of border color
|
||||
th.headerSortUp.yellow, th.headerSortDown.yellow {
|
||||
background-color: lighten(@yellow, 40%);
|
||||
}
|
||||
|
||||
// Orange Table Headings
|
||||
th.orange {
|
||||
color: @orange;
|
||||
border-bottom-color: @orange;
|
||||
}
|
||||
th.headerSortUp.orange, th.headerSortDown.orange { // backround color is 20% of border color
|
||||
th.headerSortUp.orange, th.headerSortDown.orange {
|
||||
background-color: lighten(@orange, 40%);
|
||||
}
|
||||
|
||||
// Purple Table Headings
|
||||
th.purple {
|
||||
color: @purple;
|
||||
border-bottom-color: @purple;
|
||||
}
|
||||
th.headerSortUp.purple, th.headerSortDown.purple { // backround color is 20% of border color
|
||||
th.headerSortUp.purple, th.headerSortDown.purple {
|
||||
background-color: lighten(@purple, 40%);
|
||||
}
|
||||
}
|
||||
|
||||
+6
-6
@@ -3,7 +3,7 @@
|
||||
* ---------------------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
// Body text
|
||||
// BODY TEXT
|
||||
// ---------
|
||||
|
||||
p {
|
||||
@@ -15,7 +15,8 @@ p {
|
||||
}
|
||||
}
|
||||
|
||||
// Headings
|
||||
|
||||
// HEADINGS
|
||||
// --------
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@@ -65,8 +66,7 @@ h6 {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Colors
|
||||
// COLORS
|
||||
// ------
|
||||
|
||||
// Unordered and Ordered lists
|
||||
@@ -108,7 +108,7 @@ dl {
|
||||
}
|
||||
}
|
||||
|
||||
// Misc
|
||||
// MISC
|
||||
// ----
|
||||
|
||||
// Horizontal rules
|
||||
@@ -169,7 +169,7 @@ code, pre {
|
||||
code {
|
||||
background-color: lighten(@orange, 40%);
|
||||
color: rgba(0,0,0,.75);
|
||||
padding: 2px 3px;
|
||||
padding: 1px 3px;
|
||||
}
|
||||
pre {
|
||||
background-color: #f5f5f5;
|
||||
|
||||
Reference in New Issue
Block a user