Remove all frameworks except Bootstrap (#251)
- Remove all frameworks except Bootstrap - Remove roots-options.php and replace with a more simple roots-config.php - Include all Bootstrap Javascript plugins by default in js/plugins.js - Use Bootstrap Responsive and Topbar navigation by default - Use Bootstrap markup on forms, page titles, image galleries, alerts and errors, post and comment navigation - Remove Roots styles from style.css and introduce app.css for site-specific CSS. Remove almost all previous default Roots styles. - Add latest updates from H5BP project
This commit is contained in:
389
css/style.css
389
css/style.css
@@ -1,5 +1,9 @@
|
||||
/*
|
||||
* HTML5 ✰ Boilerplate
|
||||
* HTML5 Boilerplate
|
||||
*
|
||||
* What follows is the result of much research on cross-browser styling.
|
||||
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
|
||||
* Kroc Camen, and the H5BP dev community and team.
|
||||
*
|
||||
* Detailed information about this CSS: h5bp.com/css
|
||||
*
|
||||
@@ -12,14 +16,13 @@ audio:not([controls]) { display: none; }
|
||||
[hidden] { display: none; }
|
||||
|
||||
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
||||
body { margin: 0; /* add your base font-size and line-height here */ }
|
||||
body, button, input, select, textarea { font-family: sans-serif; color: #222; }
|
||||
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
|
||||
body { margin: 0; font-size: 1em; line-height: 1.4; }
|
||||
|
||||
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
|
||||
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
|
||||
|
||||
a { color: #00e; }
|
||||
a:visited { color: #551a8b; }
|
||||
a:hover { color: #06e; }
|
||||
a:focus { outline: thin dotted; }
|
||||
a:hover, a:active { outline: 0; }
|
||||
@@ -53,6 +56,7 @@ legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
|
||||
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
|
||||
button, input { line-height: normal; }
|
||||
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
|
||||
button[disabled], input[disabled] { cursor: default; }
|
||||
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
|
||||
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
|
||||
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
|
||||
@@ -64,401 +68,38 @@ input:invalid, textarea:invalid { background-color: #f0dddd; }
|
||||
table { border-collapse: collapse; border-spacing: 0; }
|
||||
td { vertical-align: top; }
|
||||
|
||||
.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }
|
||||
|
||||
|
||||
/* ==|== roots styles ======================================================= */
|
||||
|
||||
a:active, input.button:active { outline: 0; position: relative; top: 1px; }
|
||||
|
||||
.button, #post-nav a, #comments-nav a {
|
||||
display: inline-block;
|
||||
background: #06c;
|
||||
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
background-image: linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 8px 16px;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.15);
|
||||
width: auto;
|
||||
overflow: visible;
|
||||
-moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2), 1px 1px 3px rgba(0, 0, 0, 0.2) inset;
|
||||
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2), 1px 1px 3px rgba(0, 0, 0, 0.2) inset;
|
||||
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2), 1px 1px 3px rgba(0, 0, 0, 0.2) inset;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
.button:hover, #post-nav a:hover, #comments-nav a:hover {
|
||||
background: #09f;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Header
|
||||
/* ==|== primary styles =====================================================
|
||||
Author:
|
||||
========================================================================== */
|
||||
|
||||
#banner { position: relative; margin: 16px auto 0; z-index: 1000; }
|
||||
#banner .container { padding: 0; }
|
||||
|
||||
#logo { float: left; width: 300px; height: 75px; margin: 0 0 16px; padding: 0; }
|
||||
|
||||
#nav-main ul {
|
||||
background: #06c;
|
||||
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
background-image: linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
|
||||
position: relative;
|
||||
list-style: none;
|
||||
margin: 0 0 16px 0;
|
||||
padding: 0;
|
||||
float: left;
|
||||
width: 100%;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
#nav-main ul li { float: left; margin: 0; *zoom: 1; }
|
||||
#nav-main ul li:hover { position: relative; }
|
||||
#nav-main ul li a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
padding: 8px 16px;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
#nav-main ul li a:hover,
|
||||
#nav-main ul li.current-menu-item > a,
|
||||
#nav-main ul li.current-menu-parent > a,
|
||||
#nav-main ul li.current-menu-ancestor > a,
|
||||
#nav-main ul li.current-page-item > a,
|
||||
#nav-main ul li.current-page-parent > a,
|
||||
#nav-main ul li.current-page-ancestor > a
|
||||
#nav-main ul li:hover > a {
|
||||
color: #73c8ff;
|
||||
}
|
||||
|
||||
#nav-main ul ul {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 200px;
|
||||
background: #73c8ff;
|
||||
padding: 0;
|
||||
-moz-border-radius: 0;
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
#nav-main ul ul li { float: none; }
|
||||
#nav-main ul ul li a {
|
||||
font-size: 12px;
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1);
|
||||
padding: 4px 16px;
|
||||
width: 168px; /* account for the width of ul#nav-main ul and the padding on the anchor */
|
||||
display: inline-block;
|
||||
|
||||
}
|
||||
#nav-main ul ul li a:hover,
|
||||
#nav-main ul ul li.current-menu-item > a,
|
||||
#nav-main ul ul li.current-menu-parent > a,
|
||||
#nav-main ul ul li.current-menu-ancestor > a,
|
||||
#nav-main ul ul li.current-page-item > a,
|
||||
#nav-main ul ul li.current-page-parent > a,
|
||||
#nav-main ul ul li.current-page-ancestor > a
|
||||
#nav-main ul ul li:hover > a {
|
||||
color: #06c;
|
||||
}
|
||||
|
||||
#nav-main ul ul ul { left: 100%; top: 0; }
|
||||
#nav-main ul li:hover > ul { visibility: visible; }
|
||||
|
||||
#nav-utility { position: absolute; top: 0; right: 0; }
|
||||
#nav-utility ul { list-style: none; margin: 0; padding: 0; float: right; width: auto; position: relative; }
|
||||
#nav-utility ul li { float: left; position: relative; }
|
||||
#nav-utility ul li a { display: block; float: left; padding: 2px 6px; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Content
|
||||
========================================================================== */
|
||||
|
||||
#content { margin-bottom: 24px; }
|
||||
#content .container { width: auto; position: relative; padding: 0; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Primary Content
|
||||
========================================================================== */
|
||||
|
||||
#main { position: relative; }
|
||||
#main .container { padding: 0; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Sidebar
|
||||
========================================================================== */
|
||||
|
||||
#sidebar { position: relative; }
|
||||
#sidebar .container { width: auto; padding: 0; }
|
||||
#sidebar .widget { clear: both; margin-bottom: 1.5em; }
|
||||
#sidebar .widget .gform_wrapper ul { padding: 0; list-style-type: none; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Posts
|
||||
========================================================================== */
|
||||
|
||||
.hentry header { margin-bottom: 1.5em; }
|
||||
.hentry h1 { line-height: 1.2em; margin-bottom: 0.2em; }
|
||||
.hentry h2:first-child { line-height: 1.2em; margin-bottom: 0; }
|
||||
.hentry h2 a { text-decoration: none; }
|
||||
.hentry time { display: block; font-size: 1.2em; position: relative; }
|
||||
.hentry p.byline { }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Post & Comment Navigation
|
||||
========================================================================== */
|
||||
|
||||
#post-nav { clear: both; *display: inline-block; }
|
||||
#post-nav:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; overflow: hidden; }
|
||||
#post-nav .post-previous { float: left; width: 50%; }
|
||||
#post-nav .post-next { float: right; width: 50%; text-align: right; }
|
||||
#post-nav .post-next a { float: right; }
|
||||
|
||||
#comments-nav { clear: both; margin: 0 0 1.5em 0; *display: inline-block; }
|
||||
#comments-nav:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; overflow: hidden; }
|
||||
#comments-nav .comments-previous { float: left; width: 50%; }
|
||||
#comments-nav .comments-next { float: right; width: 50%; text-align: right; }
|
||||
#comments-nav .comments-next a { float: right; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Post Comments
|
||||
========================================================================== */
|
||||
|
||||
ol.commentlist img.avatar { float: left; margin-right: 10px; }
|
||||
ol.commentlist time { display: block; font-size: 1em; margin-bottom: 0.5em; position: relative; }
|
||||
#commentform label { display: block; }
|
||||
#commentform textarea { display: block; }
|
||||
#commentform input.button { margin-top: 0.5em; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Galleries
|
||||
========================================================================== */
|
||||
|
||||
figure.gallery-item { float: left; margin: 0 1em 1em 0; position: relative; }
|
||||
figure.gallery-item a img {
|
||||
border: 4px solid #bbb;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
figure.gallery-item a:hover img { border-color: #ccc; }
|
||||
figure.gallery-item figcaption { display: none; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Footer
|
||||
========================================================================== */
|
||||
|
||||
#content-info { clear: both; position: relative; }
|
||||
#content-info > .container { padding: 0 0 1.5em; }
|
||||
|
||||
#content-info ul.menu { margin: 0 0 24px; padding: 0; list-style-type: none; }
|
||||
#content-info ul.menu li { display: inline; margin-right: 1em; }
|
||||
|
||||
#content-info p.copy small { font-size: 1em; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Gravity Forms
|
||||
========================================================================== */
|
||||
|
||||
.gform_wrapper { margin: 0; max-width: none; }
|
||||
.gform_wrapper .gform_heading { width: 100%; margin-bottom: 1.5em; }
|
||||
.gform_wrapper .gsection .gfield_label, .gform_wrapper h2.gsection_title, .gform_wrapper h3.gform_title { font-size: 1.5em; font-weight: 400; }
|
||||
.gform_wrapper h3.gform_title { margin-top: 0; }
|
||||
.gform_wrapper .top_label .gfield_label { margin: 6px 0 0 0; }
|
||||
.gform_wrapper .top_label input.medium { padding-right: 0; }
|
||||
.gform_wrapper .left_label .gfield_label,
|
||||
.gform_wrapper .right_label .gfield_label { margin: 10px 10px 0 0; }
|
||||
.gform_wrapper .left_label ul.gfield_checkbox,
|
||||
.gform_wrapper .left_label ul.gfield_radio,
|
||||
.gform_wrapper .right_label ul.gfield_checkbox,
|
||||
.gform_wrapper .right_label ul.gfield_radio {
|
||||
margin: 9px 0 0 31%;
|
||||
}
|
||||
.gform_wrapper input[type=text],
|
||||
.gform_wrapper input[type=url],
|
||||
.gform_wrapper input[type=email],
|
||||
.gform_wrapper input[type=tel],
|
||||
.gform_wrapper input[type=file],
|
||||
.gform_wrapper input[type=number],
|
||||
.gform_wrapper input[type=password],
|
||||
.gform_wrapper textarea,
|
||||
.gform_wrapper select {
|
||||
font-size: 1em;
|
||||
line-height: 14px;
|
||||
padding: 4px;
|
||||
margin: 6px 0;
|
||||
border: 1px solid #bbb;
|
||||
-moz-background-clip: padding;
|
||||
-webkit-background-clip: padding;
|
||||
background-clip: padding-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.gform_wrapper input[type=text]:focus,
|
||||
.gform_wrapper input[type=url]:focus,
|
||||
.gform_wrapper input[type=email]:focus,
|
||||
.gform_wrapper input[type=tel]:focus,
|
||||
.gform_wrapper input[type=number]:focus,
|
||||
.gform_wrapper input[type=password]:focus,
|
||||
.gform_wrapper textarea:focus,
|
||||
.gform_wrapper select:focus {
|
||||
border: 1px solid #666;
|
||||
}
|
||||
.gform_wrapper select { padding: 3px; }
|
||||
.gform_wrapper .small, .gform_wrapper .large { font-size: 1em; line-height: 14px; }
|
||||
.gform_wrapper ul.right_label li,
|
||||
.gform_wrapper ul.left_label li,
|
||||
.gform_wrapper form ul.right_label li,
|
||||
.gform_wrapper form ul.left_label li {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.gform_wrapper .description,
|
||||
.gform_wrapper .gfield_description,
|
||||
.gform_wrapper .gsection_description,
|
||||
.gform_wrapper .instruction {
|
||||
font-size: 0.9em;
|
||||
font-style: normal;
|
||||
padding: 0;
|
||||
}
|
||||
.gform_wrapper .right_label .gfield_description,
|
||||
.gform_wrapper .right_label .instruction,
|
||||
.gform_wrapper .left_label .gfield_description,
|
||||
.gform_wrapper .left_label .instruction {
|
||||
padding: 0;
|
||||
margin-left: 31%;
|
||||
}
|
||||
.gform_wrapper .ginput_complex label,
|
||||
.gform_wrapper .gfield_time_hour label,
|
||||
.gform_wrapper .gfield_time_minute label,
|
||||
.gform_wrapper .gfield_date_month label,
|
||||
.gform_wrapper .gfield_date_day label,
|
||||
.gform_wrapper .gfield_date_year label,
|
||||
.gform_wrapper .instruction {
|
||||
font-size: 0.9em;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0;
|
||||
margin: 0 0 6px 0;
|
||||
}
|
||||
.gform_wrapper .gfield_checkbox li input[type=checkbox],
|
||||
.gform_wrapper .gfield_radio li input[type=radio],
|
||||
.gform_wrapper .gfield_checkbox li input { float: none; display: inline-block; margin-top: 0; vertical-align: middle; }
|
||||
.gform_wrapper .gfield_checkbox li label, .gform_wrapper .gfield_radio li label { display: inline-block; margin: 0 0 0 8px; vertical-align: middle; }
|
||||
.gform_wrapper .left_label .ginput_complex .ginput_right label,
|
||||
.gform_wrapper .left_label .ginput_complex .ginput_left label,
|
||||
.gform_wrapper .right_label .ginput_complex .ginput_right label,
|
||||
.gform_wrapper .right_label .ginput_complex .ginput_left label { word-spacing: 0; }
|
||||
.gform_wrapper .gfield_checkbox li label, .gform_wrapper .gfield_radio li label { font-weight: 400; }
|
||||
img.ui-datepicker-trigger { vertical-align: middle; }
|
||||
.gform_wrapper .gf_progressbar_wrapper { width: 100%; }
|
||||
.gform_wrapper .gf_page_steps { border-bottom: 1px dashed #ddd; width: 100%; }
|
||||
.gform_wrapper .gf_step { font-family: sans-serif; }
|
||||
.gform_wrapper .gf_step span.gf_step_number { font-family: sans-serif; }
|
||||
.gform_wrapper .gsection { border-bottom: 1px dashed #ddd; }
|
||||
.gform_wrapper .gform_page_footer { border-top: 1px dashed #ddd; }
|
||||
.gform_wrapper .gform_footer { margin: 6px 0 0 0; padding: 0; }
|
||||
.gform_wrapper .gform_footer.right_label, .gform_wrapper .gform_footer.left_label { margin: 6px 0 0 0; padding: 0 0 0 31%; }
|
||||
.gform_footer input.button { *padding: 8px 16px; }
|
||||
.gform_wrapper .gform_edit_link { display: none; }
|
||||
.gform_wrapper .validation_error { font-size: 1em; font-weight: 400; padding: 0.8em; margin-bottom: 1.5em; background: #fbe3e4; color: #8a1f11; border: 2px solid #fbc2c4; }
|
||||
.gform_wrapper .validation_message { display: none; }
|
||||
.gform_wrapper li.gfield.gfield_error {
|
||||
background: none;
|
||||
margin-bottom: 6px !important;
|
||||
padding: 0 !important;
|
||||
border: none;
|
||||
}
|
||||
.gform_wrapper .top_label .gfield_error .ginput_container { max-width: none; }
|
||||
.gform_wrapper .top_label .gfield_error { margin-bottom: 0 !important; }
|
||||
.gform_wrapper .gfield_error .gfield_label { color: #8a1f11; }
|
||||
.gform_wrapper .gfield_error input,
|
||||
.gform_wrapper .gfield_error select,
|
||||
.gform_wrapper .gfield_error textarea { background: #FBE3E4; border-color: #FBC2C4; }
|
||||
.gform_wrapper .top_label .gfield_error input,
|
||||
.gform_wrapper .top_label .gfield_error textarea,
|
||||
.gform_wrapper .top_label .gfield_error select { border-color: #FBC2C4; }
|
||||
.gform_wrapper .top_label .gfield_error { width: auto; }
|
||||
|
||||
|
||||
|
||||
/* =============================================================================
|
||||
Search form
|
||||
========================================================================== */
|
||||
|
||||
#searchform #s { padding: 5px; }
|
||||
|
||||
|
||||
|
||||
/* ==|== media queries ======================================================
|
||||
PLACEHOLDER Media Queries for Responsive Design.
|
||||
These override the primary ('mobile first') styles
|
||||
EXAMPLE Media Query for Responsive Design.
|
||||
This example overrides the primary ('mobile first') styles
|
||||
Modify as content requires.
|
||||
========================================================================== */
|
||||
|
||||
@media only screen and (min-width: 480px) {
|
||||
/* Style adjustments for viewports 480px and over go here */
|
||||
|
||||
@media only screen and (min-width: 35em) {
|
||||
/* Style adjustments for viewports that meet the condition */
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
/* Style adjustments for viewports 768px and over go here */
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ==|== wordpress generated classes ========================================
|
||||
See: http://codex.wordpress.org/CSS#WordPress_Generated_Classes
|
||||
========================================================================== */
|
||||
|
||||
.aligncenter { display: block; margin: 0 auto; }
|
||||
.alignleft { margin: 0 1.5em 1.5em 0; float: left; }
|
||||
.alignright { margin: 0 0 1.5em 1.5em; float: right; }
|
||||
|
||||
.wp-caption { border: 1px solid #ddd; text-align: center; background: #eee; padding: 14px 10px 6px 10px; margin: 15px 10px; }
|
||||
.wp-caption-text { margin: 0; }
|
||||
|
||||
|
||||
|
||||
/* ==|== non-semantic helper classes ======================================== */
|
||||
|
||||
Reference in New Issue
Block a user