html Del Mar w / Bootstrap 3 Starter
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Del Mar w / Bootstrap 3 Starter相关的知识,希望对你有一定的参考价值。
<meta name="viewport" content="initial-scale=1.0" />
<link rel="stylesheet" href="https://s3.amazonaws.com/PlatinumStrategies/PWS/bootstrap/bootstrap-grid.css" media="all" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" media="all" />
<style>
/** SWATCHES **/
/** Place any hex codes for branded colors here for quick reference. **/
/** **/
/** TYPOGRAPHY **/
/** Place any CSS code in this section that changes or modifies the headlines, paragraphs or links. **/
*{
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a.back-to-top {
position: fixed;
bottom: 50px;
right: 50px;
background-color: rgba(51, 51, 51, 0.5);
padding: 1px 10px 5px;
font-size: 20px;
border-radius: 3px;
color: #fff;
z-index: 100;
}
a.back-to-top:hover {
background-color: #333;
}
/* FMG/Bootstrap Overrides */
a{
color: #ba5915;
}
a:hover, a:focus{
text-decoration: none;
color: #333;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
font-family: 'Quattrocento', 'Times New Roman';
font-weight: normal;
color: #003a63;
}
h4, .h4, h5, .h5, h6, .h6 {
margin-top: auto;
margin-bottom: auto;
}
.container {
max-width: 1000px;
width: 100%;
}
#content aside{
margin-left: 0;
}
/** Button Styles **/
#hero aside a + a, #additional .viewAll a + a{
display: none;
}
input[type="button"], input[type="submit"], button, .button, #hero aside a, #additional .viewAll a, .submit, .threeBoxBtn {
background: #d36e2a;
color: #FFF !important;
padding: 10px 15px;
display: inline-block;
height: auto;
text-shadow: none;
font-size: 16px;
font-family: helvetica, arial, sans-serif;
}
input[type="button"]:hover, input[type="submit"]:hover, button:hover, .button:hover, #hero aside a:hover, #additional .viewAll a:hover, .submit:hover, .threeBoxBtn {
background: #333;
text-decoration: none;
}
/** fontawesome social media icons **/
.facebookIcon, .twitterIcon, .linkedinIcon, .youtubeIcon, .emailIcon, .googleIcon{
font-family: FontAwesome !important;
font-weight: normal;
font-style: normal;
display: inline-block;
color: #FFF;
padding: 1px 0 2px 0px;
text-align: center;
text-shadow: 0 1px 1px rgba(51, 51, 51, 0.5);
}
.facebookIcon:hover, .twitterIcon:hover, .linkedinIcon:hover, .youtubeIcon:hover, .emailIcon:hover, .googleIcon:hover{
text-decoration: none;
opacity: .5;
color: #fff;
}
.facebookIcon:before, .twitterIcon:before, .linkedinIcon:before, .youtubeIcon:before, .emailIcon:before, .googleIcon:before{
border-radius: 3px;
width: 20px;
height: 20px;
display: inline-block;
}
.facebookIcon:before{
content: "\f09a";
background-color: #3D5F9F;
}
.twitterIcon:before{
content: "\f099";
background-color: #56C2CF;
}
.linkedinIcon:before{
content: "\f0e1";
background-color: #0F75B3;
}
.youtubeIcon:before{
content: "\f16a";
background-color: #D6202D;
}
.emailIcon:before{
content: "\f0e0";
background-color: #189604;
}
.googleIcon:before{
content: "\f0d5";
background-color: #DF4A32;
}
/** HOMEPAGE TEMPLATE **/
/** Place any CSS code in this section that changes or modifies the template including Body, Container, Aside, or Content. **/
/* full width content/hidden sidebar */
.homepage #content article{
width: 100%;
}
.homepage #content aside{
display: none;
}
.homepage .rule{
display: none;
}
.homepage #suggested .content img {
height: 220px;
background-size: cover;
}
/** SUBPAGES TEMPLATE **/
/** Place any CSS code in this section that changes or modifies the subpage template including Body, Container, Aside, or Content. **/
/** HEADER **/
/** Place any CSS code in this section that changes or modifies the main header in Header or .header **/
header{
background: #dadee1;
padding-top: 80px;
padding-bottom: 35px;
text-align: center;
}
/** NAVIGATION **/
/** Place any CSS code in this section that changes or modifies the main navigation bar including Nav, or .socialSidebar **/
nav#main #homeButton {
display: none;
}
nav#main {
height: auto;
background: #043B62;
}
nav#main .container {
background: none;
padding: 0;
text-align: left;
}
nav#main .container ul li {
background: none;
margin: 0;
margin: 0;
padding: 0;
}
nav#main .container ul li.first {
padding-top: 0;
}
nav#main .container ul li.last {
padding-bottom: 0;
}
.navbar-default .navbar-nav > li > a {
padding: 10px 15px;
font-size: medium;
text-transform: none;
color: #fff;
}
nav#main .container ul li a i {
font-size: large;
}
nav#main .container ul li .dropdown-toggle {
padding: 10px 30px 9px;
position: absolute;
top: 0;
right: 0;
}
nav#main .container ul li:hover .dropdown-toggle, nav#main .container ul li .dropdown-toggle:hover {
background: none;
}
.navbar {
min-height: 0;
margin-bottom: 0;
border: none;
border-radius: 0;
top: 0;
}
.navbar-nav {
height: auto;
margin: 0;
overflow-x: hidden;
}
.navbar-collapse {
max-height: 100%;
padding-left: 0;
padding-right: 0;
border: none;
}
.navbar-header, .navbar-collapse {
margin-left: 0 !important;
margin-right: 0 !important;
}
.navbar-header {
height: 40px;
}
.navbar-header a.mobile-home {
display: inline-block;
float: left;
margin: 3px 0 0 10px;
padding: 6px;
}
.navbar-toggle {
float: right;
margin: 6px 20px 0 0;
padding: 6px;
background-color: #6A747C;
border-color: rgba(0, 0, 0, 0) !important;
}
.navbar-toggle-text {
display: block;
float: left;
font-size: 1em;
font-weight: 600;
text-transform: uppercase;
line-height: 1;
margin: 10px;
color: #fff;
}
.icon-bar {
background-color: #fff !important;
}
.navbar-collapse ul li {
display: block !important;
margin: 0;
padding: 15px;
}
.navbar-collapse ul li a, .navbar-collapse ul li a:hover {
text-decoration: none;
}
nav#main .container ul li .dropdown-menu {
width: 100%;
padding: 0;
border-width: 1px;
border-right: 0;
border-bottom: 0;
border-left: 0;
background-color: #1D4E71;
border-radius: 0;
}
nav#main .container ul li:hover .dropdown-menu {
left: 0;
}
nav#main .container ul li .dropdown-menu li a {
padding-left: 30px;
font-size: 1em;
color: #aaa;
}
nav#main .container ul li:hover .dropdown-menu li a {
background: none;
}
/** HERO ROTATOR **/
/** Place any CSS code in this section that changes or modifies the Hero Rotator #hero **/
#hero{
display: none;
}
/** SIDEBAR WIDGET **/
/** Place any CSS code in this section that changes or modifies the Sidebar Widgets, both default and custom **/
#content aside {
background-color: #F8F8F8;
background-color: rgba(255, 255, 255, 0.5);
border-left: 1px dashed #D5D5D5;
padding-bottom: 20px;
margin-bottom: 30px;
}
#content aside .wrapper {
padding: 15px;
}
#content aside .rule {
width: 94%;
border-bottom: 1px solid #EFEFEF;
display: block;
margin: 10px auto;
background: none;
}
#content aside .rule:first-child {
display: none;
}
/** FOOTER **/
/** Place any CSS code in this section that changes or modifies the main footer in Footer or .footer **/
footer{
background: #DADEE1;
color: #6A747C;
}
footer .wrapper{
padding-left: 0;
}
footer aside{
margin-left: 0;
}
footer h4, footer td {
color: inherit;
}
footer a, footer a:hover {
color: inherit;
}
footer h4 {
color: #033a63;
}
footer a {
color: #BA5915;
}
/** removes footer social media icons to replace with fontawsome icons **/
footer .socialMedia a{
color: #fff;
}
footer .facebookIcon img, footer .twitterIcon img, footer .linkedinIcon img, footer .youtubeIcon img{
display: none;
}
/* CLASSES */
/** Place any CSS code in this section that relates to universal CSS classes **/
#content .container{
background: none;
}
#agentContent img {
float: left;
margin-right: 15px;
}
#taxContent h3, #glossaryContent h3, .page-tools-tax-resources #content article h3 {
margin-top: 30px;
}
.contactForm input[type="text"], .contactForm textarea {
width: 100%;
padding: 4px 10px;
border: 1px solid #b0b6bb;
border-radius: 4px;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
font-family: Helvetica Neue, Arial, sans-serif;
color: #394856;
font-size: 16px;
line-height: 1.5;
box-sizing: border-box;
}
.contactForm label{
font-size: 14px;
margin-bottom: 0;
margin-top: 10px;
}
.contactForm .submit{
margin-top: 10px;
}
.section_Boxes .delmar-3box {
width: 100%;
}
.delmar-3box img {
max-width: 100%;
width: auto !important;
padding: 15px !important;
height: auto;
}
.delmar-3box h2, .delmar-3box div{
padding-right: 15px;
padding-left: 15px;
}
@media all and (min-width:768px){
.section_Boxes .delmar-3box {
width: 33.3333333%;
}
}
@media all and (max-width:768px){
.SideBySide .boxside {
width: 100%;
text-align: center;
}
.section_SideBySide .no-img-mask {
width: 100%;
}
}
#content .container-fluid > article {
padding-bottom: 0;
}
/* suggested area styles for full width content */
#suggested {
margin: 0 -20px;
margin-bottom: 40px;
overflow: hidden;
}
#suggested h2 {
padding-left: 20px;
}
#suggested .content {
width: 100%;
box-sizing: border-box;
margin: 0;
padding: 20px;
text-align: center;
}
#suggested .content img {
width: 100%;
background-size: contain;
background-repeat: no-repeat;
}
/* additional area styles */
#additional{
background: none;
}
#additional .wrapper {
padding: 0;
}
#additional nav {
height: auto;
margin-bottom: 0;
font-size: 0;
border-bottom: 5px solid #043B62;
}
#additional nav ul {
margin-bottom: 0;
}
#additional nav li {
border-left: none;
padding: 0;
display: inline-block;
}
#additional nav a {
padding: 10px;
display: block;
color: #6A747C;
}
#additional nav a:hover {
color: #FFF;
background-color: #6A747C;
}
#additional nav .selected{
background: #043B62;
color: #fff;
}
#additional nav .selected:hover{
color: #fff;
background: #043B62;
}
#additional .matterContent {
overflow: hidden;
padding-top: 20px;
}
#additional .content {
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 10px 20px;
}
#additional .content a:hover {
color: #333333;
}
#additional .viewAll {
margin: 0 0 20px 20px;
}
#allVideoContent .videoContent {
width: 100%;
margin: 0;
padding: 5px 5px 10px;
text-align: center;
float: none;
display: inline-block;
vertical-align: top;
}
#allVideoContent .videoContent .video img {
max-width: 190px;
width: 100%;
}
#allTypeContent section {
margin-right: 28px;
}
.page-contact .right.map-canvas{
width: 100%;
float: none;
margin: 0;
}
.page-contact #content ul.socialMedia{
display: none;
}
#learningContent .matter {
width: 100%;
}
/* MEDIA QUERIES */
@media (max-width: 320px){
#teamContent .info img {
float: none;
margin-bottom: 10px;
}
#teamContent .agent .info h4, #teamContent .agent .info p {
margin-left: 0;
}
}
@media (max-width: 480px){
#teamContent .agent .team-description {
margin-left: 0;
}
#teamContent .agent .info {
float: none;
width: 100%;
overflow: hidden;
margin-bottom: 10px;
}
}
@media (min-width: 480px){
#agentContent img {
float: right;
margin-left: 30px;
margin-right: 0;
}
#suggested .content {
width: 33%;
text-align: left;
}
#additional .matterContent {
margin: 0 -20px;
}
#additional .content {
width: 50%;
}
#allVideoContent .videoContent {
width: 49%;
text-align: left;
}
}
/* Small devices - tablets */
@media (min-width: 768px) {
#hero{
display: block;
background: none;
color: inherit;
height: auto;
}
#hero .container {
height: 500px;
width: 100%;
padding: 0;
}
#hero .container a img{
width: 100%;
height: 500px;
}
#hero .container #hero1 img {
background: url('https://s3.amazonaws.com/PlatinumStrategies/PWS/members/schwefel/schwefel-rotator-01.jpg') no-repeat center center !important;
background-size: cover !important;
}
#hero .container #hero2 img {
background: url('https://s3.amazonaws.com/PlatinumStrategies/PWS/members/schwefel/schwefel-rotator-02.jpg') no-repeat center center !important;
background-size: cover !important;
}
#hero .container #hero3 img {
background: url('https://s3.amazonaws.com/PlatinumStrategies/PWS/members/schwefel/schwefel-rotator-03.jpg') no-repeat center center !important;
background-size: cover !important;
}
#hero .container #hero4 img {
background: url('https://s3.amazonaws.com/PlatinumStrategies/PWS/members/schwefel/schwefel-rotator-04.jpg') no-repeat center center !important;
background-size: cover !important;
}
#hero .backArrow, #hero .forwardArrow {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
font-size: 80px;
padding: 10px;
color: #FFF;
height: 98px;
width: auto;
top: 185px;
background: none;
text-shadow: 0 1px 1px #333;
z-index: 20;
}
#hero .forwardArrow {
right: 10px;
left: auto;
}
#hero .backArrow:before {
content: "\f104";
}
#hero .forwardArrow:before {
content: "\f105";
}
#hero:hover .backArrow, #hero:hover .forwardArrow {
opacity: 0.75;
visibility: visible;
}
#hero:hover .backArrow:hover, #hero:hover .forwardArrow:hover {
opacity: 1;
text-decoration: none;
}
#hero aside {
position: absolute;
margin: 0;
width: 100%;
}
#hero aside .wrapper {
padding: 20px;
width: 330px;
color: #fff;
}
#hero h2{
color: #043B62;
line-height: 1em;
padding: 10px 0 15px;
background: none;
border-bottom: 1px dashed #555;
}
#allVideoContent .videoContent {
width: 32%;
}
#learningContent .matter {
width: 45%;
}
}
/* Medium devices - desktops */
@media (min-width: 992px) {
header{
padding: 50px 0;
text-align: left;
}
.navbar-header a.mobile-home {
display: none !important;
}
.navbar-toggle-text {
display: none;
}
.navbar-fixed-top {
position: relative;
}
nav#main .container ul li a + a {
display: none;
}
nav#main {
/* margin: -85px auto 0; */
/* background: none; */
/* float: right; */
}
nav#main .container {
background: none;
padding-left: 0;
padding-right: 0;
text-align: right;
}
nav#main a:hover, nav#main a:focus{
color: #333;
}
.navbar-default .navbar-nav > li > a{
/* color: #043B62; */
}
nav#main .container ul li:hover a, nav#main .container ul li a.selected {
background: none;
text-decoration: none;
}
nav#main .container ul li:hover .dropdown-menu {
display: block;
width: 220px;
text-align: left;
border: none;
top: 33px;
background-color: #043B62;
box-shadow: none;
}
nav#main .container ul li:hover .dropdown-menu li {
margin: 0;
padding: 0;
}
nav#main .container ul li:hover .dropdown-menu li a {
display: block;
margin: 0;
padding: 8px 15px;
font-size: 1em;
font-weight: 400;
text-decoration: none;
text-align: left;
border: none;
}
nav#main .container ul li:hover .dropdown-menu li a:hover{
background: #333;
color: #fff;
}
.navbar-nav {
float: none;
overflow-x: visible;
}
.navbar-nav .open .dropdown-menu {
display: none;
}
.navbar-collapse ul {
background-image: none;
}
.navbar-collapse ul li {
display: inline;
}
.dropdown-menu > li > a {
white-space: normal;
}
}
</style>
<script type="text/javascript" src="https://s3.amazonaws.com/PlatinumStrategies/PWS/bootstrap/bootstrap-grid.js"></script>
<script type="text/javascript" src="https://s3.amazonaws.com/PlatinumStrategies/PWS/bootstrap/fmg-bootstrap-inserts.js"></script>
<script>
//** Add this Script to the Custom Head section in the Additional Footer HTML **//
$(document).ready(function() {
// add class to homebutton anchor so we can style
$('nav#main .container #homeButton').parent().attr('class', 'homeButton');
// pull home url and add an li to the menu
var homeUrl = $('nav#main .container a:first').attr('href');
$('nav#main ul li.first').removeClass('first');
$('nav#main ul:first').prepend('<li class="first"><a href="' + homeUrl + '">Home</a></li>'); // HOME LINK
// $('nav#main ul:first').prepend('<li class="first"><a href="' + homeUrl + '"><i class="fa fa-home"></i></a></li>'); // HOUSE ICON
// remove default footer social media icons and replace with fontawesome
$('footer a img.facebook').parent().attr('class', 'facebookIcon');
$('footer a img.twitter').parent().attr('class', 'twitterIcon');
$('footer a img.linkedIn').parent().attr('class', 'linkedinIcon');
$('footer a img.youTube').parent().attr('class', 'youtubeIcon');
// adding photo to contact page below h1 tag
//$('.page-contact #content article h1').after('<p><img src="https://s3.amazonaws.com/PlatinumStrategies/PWS/members/davis/davis-page-contact.jpg" class="inline-image" /></p>');
// change Team link text to About MemberName for advisors with no staff
//$('.page-team h1, nav#main ul li:nth-of-type(2) li:first-child a').html('About Victor Gray');
// change footer email link to mask the email address
$('.contact p a').text("Contact Us Today!");
// add custom headers / dividers to team page
// $('body.page-team h1').eq(0).after( '<h1 class="headline">Executive Staff</h1>' );
// $('body.page-team .rule' ).eq(5).after( '<h1 class="headline">Advisors</h1>' );
//// ADD ADDITIONAL BOOTSTRAP CLASSES TO FOOTER
$('footer section.note').addClass('col-xs-12 col-sm-6');
$('footer section.note').removeClass('note');
$('footer aside').addClass('col-xs-12 col-sm-6');
$('footer section.contact').addClass('col-xs-6 col-sm-12 col-md-6');
$('footer section.contact').removeClass('contact');
$('footer section.quickLinks').addClass('col-xs-6 col-sm-12 col-md-6');
$('footer section.quickLinks').removeClass('quickLinks');
});
</script>
以上是关于html Del Mar w / Bootstrap 3 Starter的主要内容,如果未能解决你的问题,请参考以下文章