Skip to content

Instantly share code, notes, and snippets.

@taliwalt
Forked from marcosfreitas/extras.css
Last active September 2, 2015 02:59
Show Gist options
  • Save taliwalt/e4e57cce9a2c56401f55 to your computer and use it in GitHub Desktop.
Save taliwalt/e4e57cce9a2c56401f55 to your computer and use it in GitHub Desktop.
/* ==========================================================================
Buttons Class Configurations
========================================================================== */
/*
* Redefinition to bootstrap buttons
*/
.btn, .btn[disabled], .btn:focus, .btn:hover, .btn:active{
color: #333;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
background: #f6f6f6;
border-color: #ccc;
}
.btn.active {
cursor: default !important;
}
/* ==========================================================================
Button with hover effect
========================================================================== */
.btn { }
.btn.onHover{
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
font-family: inherit;
font-size: inherit;
color: inherit;
background: none;
cursor: pointer;
padding: 6px 12px !important;
display: inline-block;
margin: 5px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 300;
outline: none;
position: relative;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
color: #333;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0);
background: #f6f6f6;
border: 1px solid #ccc;
}
/*
* btn hover styled as primary
*/
.btn.primary:hover,
.btn.primary:active,
.btn.primary.active{
background: #305088;
color: #fff;
border-color: transparent;
}
/*
* btn hover styled as basic blue
*/
.btn.basic-blue {
background-color: #6CA7D2;
color: #fff;
border-color: transparent;
}
.btn.basic-blue:hover,
.btn.basic-blue:active,
.btn.basic-blue.active{
background: #408BC4;
}
/*
* btn hover amethyst
*/
.btn.amethyst:hover,
.btn.amethyst:active,
.btn.amethyst.active {
background-color: #9b59b6;
color: #fff;
border-color: transparent;
}
/*
* btn hover orange
*/
.btn.orange:hover,
.btn.orange.active,
.btn.orange:active {
background-color: #f39c12;
color: #fff;
border-color: transparent;
}
/* ==========================================================================
Button with press effect
========================================================================== */
.btn.press{
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
font-family: inherit;
font-size: inherit;
color: inherit;
background: none;
cursor: pointer;
padding: 8px 19px !important;
display: inline-block;
margin: 5px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 300;
outline: none;
position: relative;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
/*
* btn press styled as primary
*/
.btn.press.primary{
background: #305088;
color: #f6f6f6;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0);
border-color: transparent;
box-shadow: 0 6px #27416f;
-webkit-transition: none;
-moz-transition: none;
transition: none;
}
.btn.press.primary:hover, .btn.press.primary.active, #sp-search-menu .btn:hover {
box-shadow: 0 4px #27416f;
top: 2px;
}
.btn.press.primary:active, #sp-search-menu .btn:active {
box-shadow: 0 0 #27416f;
top: 6px;
}
.btn.press:after, #sp-search-menu .btn:after {
content: '';
position: absolute;
z-index: -1;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
/*
* Btn press yellow - #F5F544
*/
.btn.press.yellow{
background: #F5F544;
color: #888807;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0);
border-color: transparent;
box-shadow: 0 6px #a8a809;
-webkit-transition: none;
-moz-transition: none;
transition: none;
}
.btn.press.yellow:hover {
box-shadow: 0 4px #a8a809;
top: 2px;
}
.btn.press.yellow:active {
box-shadow: 0 0 #a8a809;
top: 6px;
}
/* Button sizes */
.btn.press.medium{
font-size:0.7em !important;
padding: 4px 8px !important;
}
/*
* Buttons without press effect
*/
.btn:hover:not(.press), .btn:focus:not(.press), .btn:active:not(.press){
/* IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
/* IE 5-7 */
filter: alpha(opacity=100);
/* Netscape */
-moz-opacity: 1;
/* Safari 1.x */
-khtml-opacity: 1;
/* Good browsers */
opacity: 1;
}
/*
* btn-primary without effect press
*/
.btn-primary:not(.press){
background: #305088;
color: #f6f6f6;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-color: #0044cc;
}
.font.OpenSans, .font.OpenSans *:not(.sp-totop i) { font-family: 'Open Sans', sans-serif !important; font-weight: 400 !important; }
/*.font.Serif { font-family: 'Alef', sans-serif; font-weight: 400 !important; }*/
/*
* Font-weight definitions
*/
.font.light {font-weight: 300 !important;}
.font.normal {font-weight: 400 !important;}
.font.semi.bold {font-weight: 600 !important;}
.font.bold {font-weight: 700 !important;}
.null.bold:not(b) {font-weight: normal !important;}
/*
* Classes to apply font sizes
*/
.font8 {font-size: 8px;} .font10 {font-size: 10px;}.font11 {font-size: 11px;}
.font12 {font-size: 12px;}.font13 {font-size: 13px;}.font14 {font-size: 14px;}
.font16 {font-size: 16px;}.font18 {font-size: 18px;}.font19 {font-size: 19px;}
.font20 {font-size: 20px;}.font22 {font-size: 22px;}.font25 {font-size: 25px;}
.font27 {font-size: 27px;}.font30 {font-size: 30px;}.font35 {font-size: 35px;}
.font48 {font-size: 48px;}.font52 {font-size: 52px;}.font55 {font-size: 55px;}
/* large sizes*/
.font85 {font-size: 85px;}.font100 {font-size: 100px;}
small {font-size: 12px;}
.null.text-shadow {text-shadow: none !important;}
/*
* Classes to apply opacity
*/
.opacity80{
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";/* IE 8 */
filter: alpha(opacity=80);/* IE 5-7 */
-moz-opacity: 0.8;/* Netscape */
-khtml-opacity: 0.8;/* Safari 1.x */
opacity: 0.8;/* Good browsers */
}
.opacity80:hover{
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";/* IE 8 */
filter: alpha(opacity=100);/* IE 5-7 */
-moz-opacity: 1;/* Netscape */
-khtml-opacity: 1;/* Safari 1.x */
opacity: 1;/* Good browsers */
}
/*
* Class of Alignment
*
* vertical centralize menu text boxes
* disable when image logo is defined
*/
.vertical.align { position: relative; top: 50%; -webkit-transform: translateY(50%); -moz-transform: translateY(50%); -ms-transform: translateY(50%); -o-transform: translateY(50%); transform: translateY(50%); }
/*
* Nulling border-radius on elements and her childs
*/
.null.radius, .null.radius:hover, .null.radius *, .null.radius:hover * {-webkit-border-radius: 0px !important; -moz-border-radius: 0px !important; border-radius: 0px !important;}
.null.shadow, .null.shadow:hover, .null.shadow *, .null.shadow:hover * {-webkit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important;}
/*
* Border-radius definitions
*/
.radius4 {-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;}
.radius7 {-webkit-border-radius: 7px;-moz-border-radius: 7px;border-radius: 7px;}
.radius14 {-webkit-border-radius: 14px;-moz-border-radius: 14px;border-radius: 14px;}
.radius17 {-webkit-border-radius: 17px;-moz-border-radius: 17px;border-radius: 17px;}
.radius20 {-webkit-border-radius: 20px;-moz-border-radius: 20px;border-radius: 20px;}
.radius20.percent {-webkit-border-radius: 20%;-moz-border-radius: 20%;border-radius: 20%;}
.radius50.percent {-webkit-border-radius: 50%;-moz-border-radius: 50%;border-radius: 50%;}
.radius100.percent {-webkit-border-radius: 100%;-moz-border-radius: 100%;border-radius: 100%;}
/*
* Transitions classes
*/
.transition.slow {-webkit-transition: 1s linear all;-moz-transition: 1s linear all;-ms-transition: 1s linear all;-o-transition: 1s linear all;transition: 1s linear all !important;}
.transition.medium {-webkit-transition: .5s linear all;-moz-transition: .5s linear all;-ms-transition: .5s linear all;-o-transition: .5s linear all;transition: .5s linear all !important;}
.transition.fast {-webkit-transition: .2s linear all;-moz-transition: .2s linear all;-ms-transition: .2s linear all;-o-transition: .2s linear all;transition: .2s linear all !important;}
/* Transição sobre :hover */
*:hover {-webkit-transition: all 0.3s linear; -moz-transition: all 0.3s linear; -ms-transition: all 0.3s linear; -o-transition: all 0.3s linear; transition: all 0.3s linear;}
/*margin*/
.null.margin {margin: 0px !important;}
.null.margin.bottom {margin-bottom: 0px !important;}
.null.margin.top {margin-top: 0px !important;}
.null.margin.left {margin-left: 0px !important;}
.null.margin.right {margin-right: 0px !important;}
/* Extra offset vertical classes */
.voffset { margin-top: 2px; }
.voffset1 { margin-top: 5px; }
.voffset2 { margin-top: 10px; }
.voffset3 { margin-top: 15px; }
.voffset4 { margin-top: 30px; }
.voffset5 { margin-top: 40px; }
.voffset6 { margin-top: 60px; }
.voffset7 { margin-top: 80px; }
.voffset8 { margin-top: 100px; }
.voffset9 { margin-top: 150px; }
/*padding*/
.pad4 {padding: 4px;}
.pad7 {padding: 7px;}
.pad10 {padding: 10px;}
.null.padding {padding: 0px !important;}
/* mini loading */
button i.loading14 {
display: inline-block;
width: 14px;
height: 14px;
margin: 1px 2px 0 2px;
line-height: 14px;
vertical-align: text-top;
background: transparent url('../../../images/extras/360-14.gif') no-repeat scroll;
}
button i.loading14.info{
background: transparent url('../../../images/extras/360-14-info.gif') no-repeat scroll !important;
}
/* loading */
.loading {
width: 100%;
height: 100%;
background: transparent url('../../../images/extras/loading.gif') center center scroll no-repeat;
background-size: 30px;
border: 1px solid #eee;
padding: 30px 0;
}
/* reset .btn bootstrap */
.btn.reset {
background: #fff;
border-color: #fff;
text-shadow: 0 0 0 transparent;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment