1st commit

This commit is contained in:
2024-04-06 11:45:36 +02:00
commit 62a52850bc
228 changed files with 37418 additions and 0 deletions

24
404.php Normal file
View File

@@ -0,0 +1,24 @@
<?php get_header()?>
<!-- start content wrapper -->
<div class="content clearfix">
<div class="content-inner-wrapper clearfix">
<div class="page-title">
<h1><?php esc_html_e('404 - Page Not Found', 'toppic') ?></h1>
</div>
<div class="inner-content">
<p><?php esc_html_e( 'The page you are looking for was moved, removed, renamed or might never existed.' , 'toppic' ) ?></p>
<a class="more-link" href="<?php echo esc_url( home_url() ) ?>"><?php esc_html_e( 'Back to home', 'toppic' ) ?></a>
</div>
</div>
<div class="bg404"></div>
</div>
<!-- end content wrapper -->
<?php get_footer()?>

105
admin/class_check_ver.php Normal file
View File

@@ -0,0 +1,105 @@
<?php
/**
* Title : Theme Version Checker
* Description : Checks for new version of installed theme
* Version : 1.0
* Author : Constantine K.
* Author URI : http://themes.easysite.by/
* License : WTFPL - http://sam.zoy.org/wtfpl/
**/
if ( !defined( 'ABSPATH' ) ) exit;
if ( !class_exists( 'kkCheckThemeVer' ) ) {
class kkCheckThemeVer {
public $url = 'http://easysite.by/API/check_ver.json';
public $sign_url = 'https://themeforest.net/sign_in?ref=kotofey';
public $version;
public $themeName;
public $themeId;
public $logUrl;
public $interval = 21600; // How often check for new version ( in seconds )
public function get_HTTP_data() {
$response = wp_remote_get( $this->url );
if ( ! is_wp_error( $response ) && 200 === $response['response']['code'] ) {
$response_body = wp_remote_retrieve_body( $response );
$arr = json_decode( $response_body, true );
if ( !isset( $arr['themes'][$this->themeName] ) ) return;
return $arr;
}
return;
}
public function __construct() {
if ( !is_admin() ) return;
$themeData = wp_get_theme(get_template());
$this->version = $themeData->get( 'Version' );
$this->themeName = $themeData->get( 'Name' );
if ( !apply_filters( 'kkHideUpdateNotice', false ) ) {
add_action( 'admin_notices', array($this, 'print_notice' ));
}
}
public function print_notice() {
if ( false === ( $setV = get_transient( 'kkRemoteVersion'.$this->themeName ) ) ) {
// this code runs when there is no valid transient set
$arr = $this->get_HTTP_data();
$remoteVer = $arr['themes'][$this->themeName]['ver'];
$interval = isset( $arr['interval'] ) ? $arr['interval'] : $this->interval;
$this->logUrl = isset( $arr['themes'][$this->themeName]['logurl'] ) ? esc_url( $arr['themes'][$this->themeName]['logurl'] ) : $this->logUrl;
$this->themeId = isset( $arr['themes'][$this->themeName]['id'] ) ? esc_attr( $arr['themes'][$this->themeName]['id'] ) : $this->themeId;
if ( $arr === NULL ) {
$interval = 1200;
}
set_transient( 'kkRemoteVersion'.$this->themeName, $remoteVer, $interval );
if ( $this->logUrl !== NULL ) {
set_transient( 'kkLogUrl'.$this->themeName, $this->logUrl, $interval );
}
if ( $this->themeId !== NULL ) {
set_transient( 'kkthemeId'.$this->themeName, $this->themeId, $interval );
}
} else {
$remoteVer = $setV;
$this->logUrl = get_transient( 'kkLogUrl'.$this->themeName );
$this->themeId = get_transient( 'kkthemeId'.$this->themeName );
}
// text strings in the code below should not be translatable.
if ( version_compare( $remoteVer, $this->version, '>' ) ) {
echo '<div class="updated notice is-dismissible">
<p><strong>New version of your '. $this->themeName .' theme is available for download.</strong></p>
<p>Installed version: '.$this->version.'<br>
Available version: '.$remoteVer. ( !empty( $this->logUrl ) ? ' ( <a href="'.$this->logUrl.'" target="_blank">Changelog</a> )' : '' ).'</p>
<p>Please,'. ( empty( $this->themeId ) ? ' login to your <a href="'. $this->sign_url .' " target="_blank" >ThemeForest account</a>' : 'go to the <a href="https://themeforest.net/item/i/'.$this->themeId.'?ref=kotofey&utm_source=wordpress%20dashboard&utm_medium=notice" target="_blank"> item\'s page</a>' ) .' and download latest version. Don\'t forget to renew support if needed.</p>
</div>';
}
}
}
new kkCheckThemeVer;
}
?>

179
admin/css/colorpicker.css Normal file
View File

@@ -0,0 +1,179 @@
.colorpicker {
width: 356px;
height: 176px;
overflow: hidden;
position: absolute;
background: url(../i/colorpicker/colorpicker_background.png);
font-family: Arial, Helvetica, sans-serif;
display: none;
}
.colorpicker_color {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: #f00;
overflow: hidden;
cursor: crosshair;
}
.colorpicker_color div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url(../i/colorpicker/colorpicker_overlay.png);
}
.colorpicker_color div div {
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url(../i/colorpicker/colorpicker_select.gif);
margin: -5px 0 0 -5px;
}
.colorpicker_hue {
position: absolute;
top: 13px;
left: 171px;
width: 35px;
height: 150px;
cursor: n-resize;
}
.colorpicker_hue div {
position: absolute;
width: 35px;
height: 9px;
overflow: hidden;
background: url(../i/colorpicker/colorpicker_indic.gif) left top;
margin: -4px 0 0 0;
left: 0px;
}
.colorpicker_new_color {
position: absolute;
width: 60px;
height: 30px;
left: 213px;
top: 13px;
background: #f00;
}
.colorpicker_current_color {
position: absolute;
width: 60px;
height: 30px;
left: 283px;
top: 13px;
background: #f00;
}
.colorpicker input {
background-color: transparent;
border: 1px solid transparent;
position: absolute;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #898989;
top: 4px;
right: 11px;
text-align: right;
margin: 0;
padding: 0;
height: 12px;
width:40px!important;
height:14px!important;
}
.colorpicker_hex {
position: absolute;
width: 72px;
height: 22px;
background: url(../i/colorpicker/colorpicker_hex.png) top;
left: 212px;
top: 142px;
}
.colorpicker_hex input {
right: 6px;
}
.colorpicker_field {
height: 22px;
width: 62px;
background-position: top;
position: absolute;
}
.colorpicker_field span {
position: absolute;
width: 12px;
height: 22px;
overflow: hidden;
top: 0;
right: 0;
cursor: n-resize;
}
.colorpicker_rgb_r {
background-image: url(../i/colorpicker/colorpicker_rgb_r.png);
top: 52px;
left: 212px;
}
.colorpicker_rgb_g {
background-image: url(../i/colorpicker/colorpicker_rgb_g.png);
top: 82px;
left: 212px;
}
.colorpicker_rgb_b {
background-image: url(../i/colorpicker/colorpicker_rgb_b.png);
top: 112px;
left: 212px;
}
.colorpicker_hsb_h {
background-image: url(../i/colorpicker/colorpicker_hsb_h.png);
top: 52px;
left: 282px;
}
.colorpicker_hsb_s {
background-image: url(../i/colorpicker/colorpicker_hsb_s.png);
top: 82px;
left: 282px;
}
.colorpicker_hsb_b {
background-image: url(../i/colorpicker/colorpicker_hsb_b.png);
top: 112px;
left: 282px;
}
.colorpicker_submit {
position: absolute;
width: 22px;
height: 22px;
background: url(../i/colorpicker/colorpicker_submit.png) top;
left: 322px;
top: 142px;
overflow: hidden;
}
.colorpicker_focus {
background-position: center;
}
.colorpicker_hex.colorpicker_focus {
background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
background-position: bottom;
}
.colorpicker_slider {
background-position: bottom;
}
.colorSelector {
position: relative;
width: 27px;
height: 27px;
background: url(../i/colorpicker/select.png);
float:left;
}
.colorSelector div {
position: absolute;
top: 4px;
left: 3px;
width: 21px;
height: 19px;
background: url(../i/colorpicker/select.png) center;
}

BIN
admin/css/itoggle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,37 @@
.slider {
width: 265px;
display: inline-block;
margin: 4px 0 0 !important
}
.slider > .dragger {
background: url('../i/knob.png');
width: 28px;
height: 28px;
}
.slider > .track, .slider > .highlight-track {
background: #898989;
background: -moz-linear-gradient(top, #898989, #a2a2a2);
background: -webkit-linear-gradient(top, #898989, #a2a2a2);
background: linear-gradient(top, #898989, #a2a2a2);
-moz-box-shadow: inset 0 2px 5px 1px rgba(0,0,0,0.15), 0 1px 0px 0px rgba(230,230,230,0.9), inset 0 0 1px 1px rgba(0,0,0,0.2);
-webkit-box-shadow: inset 0 2px 5px 1px rgba(0,0,0,0.15), 0 1px 0px 0px rgba(230,230,230,0.9), inset 0 0 1px 1px rgba(0,0,0,0.2);
box-shadow: inset 0 2px 5px 1px rgba(0,0,0,0.15), 0 1px 0px 0px rgba(230,230,230,0.9), inset 0 0 1px 1px rgba(0,0,0,0.2);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
height: 8px;
}
.slider > .highlight-track {
background-color: #9dd53a;
background: -webkit-linear-gradient(top, #9dd53a, #7cbc0a);
background: -moz-linear-gradient(top, #9dd53a, #7cbc0a);
background: linear-gradient(top, #9dd53a, #7cbc0a);
border-color: #496805;
}

525
admin/css/style.css Normal file
View File

@@ -0,0 +1,525 @@
/* Admin Styles */
.updated, .error{display:none !important;}
#of_container{
margin: 15px;
width: 780px;
position:relative;
z-index: 0
}
.section .option {
padding-bottom:15px;
}
#header{
height: 60px;
background-color:#f1f1f1;
border: 1px solid #d8d8d8;
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
margin-bottom:20px;
}
#header .logo{
float: left;
margin: 7px 0 0 20px;
}
.logo h1 {
font-size: 20px;
line-height: 1.2em;
}
#js-warning{
color: red;
float: left;
margin: 20px 10px;
width: 330px;
}
.js #js-warning{
display: none;
}
#header .icon-option{
float: right;
height: 32px;
width: 32px;
background: url(../i/icon_option.png) no-repeat;
margin:15px 20px;
}
#main{
background-color: #f1f1f1;
border: 1px solid #d8d8d8;
-webkit-border-top-left-radius: 6px;
-moz-border-radius-topleft: 6px;
border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-moz-border-radius-topright: 6px;
border-top-right-radius: 6px;
}
#of-nav {
float: left;
position: relative;
z-index: 9999;
width: 160px;
}
#of-nav ul {
margin: 0;
}
#of-nav li{
margin-bottom:0
}
#of-nav ul li a {
border-bottom: 1px solid #D8D8D8;
color: #666;
display: block;
font: 12px/26px Arial;
padding: 10px 10px 10px 15px;
text-decoration: none;
font-weight: 600;
}
#of-nav ul li a img{
position:relative;
visibility:hidden;
width:24px;
height:24px;
top:6px;
margin-right:4px;
}
#of-nav ul li a:hover{
background-color: #fff;
}
#of-nav ul li.current a{
background-color: #fff;color: #21759B;
}
#of-nav ul li a img, #of-nav ul li.current a img{
visibility:visible;
}
#of-nav ul li.first a{
-webkit-border-top-left-radius: 6px;
-moz-border-radius-topleft: 6px;
border-top-left-radius: 6px;
}
#content{
float: left;
min-height: 590px;
width: 590px;
margin-left: -1px;
padding: 0 14px;
font-family: "Lucida Grande", Sans-serif;
background: #fff url(../i/menu-shr.png) right top repeat-y;
border-left: 1px solid #d8d8d8;
-webkit-border-top-right-radius: 6px;
-moz-border-radius-topright: 6px;
border-top-right-radius: 6px;
}
#content .section{
margin-bottom: 20px;
}
#content .section h3.heading {
border-bottom: 1px solid #E7E7E7;
font-family: Arial;
font-size: 13px;
font-weight: inherit;
margin: 10px 0;
padding: 7px 0;
font-weight: bold;
}
#content .section .controls{
float: left;
width: 345px;
margin: 0 15px 0 0;
}
#content .section .explain{
float: left;
width: 220px;
padding: 0 10px 0 0;
font-size: 11px;
color: #666666;
}
#content .section-checkbox .controls{
width:25px
}
#content .section-checkbox .explain{
width:540px
}
#content .section-color .controls{
width:125px
}
#content .section-color .explain{
width:440px
}
#content .section-info h3.heading{
font-size: 12px;
font-weight: 100;
border: 0;
margin-top: 20px;
letter-spacing: 1px;
border-top: 1px solid #FFF298;
margin-bottom: 0;
background:#EFE186;
padding: 10px 20px;
}
#content .section-info .controls{
margin: 0 0 20px;
padding: 15px 20px;
width: auto;
line-height: 1.5em;
font-size: 14px;
font-style: italic;
font-family: Georgia, arial;
background: #FFF298;
border:1px solid #ECD852;
color:#424242;
}
#content .section-info .controls small{
font-size: 12px
}
#content .section-info h3.heading{
-moz-border-radius-topleft:4px;
-moz-border-radius-topright:4px;
}
#content .section-info .controls{
-moz-border-radius-bottomleft:4px;
-moz-border-radius-bottomright:4px;
}
textarea, input, select{
-moz-border-radius-bottomleft:4px;
-moz-border-radius-bottomright:4px;
-moz-border-radius-topleft:4px;
-moz-border-radius-topright:4px;
border-style:solid;
border-width:1px;
}
.controls input, .controls select, .controls textarea{
margin-top: 5px !important;
margin-bottom: 7px !important;
background-color: #FFFFFF;
border-color: #DFDFDF;
border: 1px solid;
border-color: #ccc #e6e6e6 #e6e6e6 #ccc;
width: 340px;
font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
font-size: 12px;
}
.controls input[type="checkbox"] {
float: left;
margin-right: 10px;
position: relative;
top: -4px;
width: auto;
}
.controls select{
padding: 2px 0 0 4px;
width: 340px
}
.controls textarea{
width: 340px;
height:120px;
}
input[type=text]{
width: 340px;
}
.range_slider_holder input[type=text]{
width: 50px;
float: right;
}
input.checkbox{
width: 30px;
}
input.of-radio{
width: 30px;
}
.controls .input-text-small{
width: 60px;
margin-right:10px
}
.meta-two{
margin-right:10px
}
.controls .of-color{
float:left;
width: 80px;
margin-left:5px; /* font-size:20px; height:34px;*/
}
#content .section-typography .controls{
width:425px
}
#content .section-typography .explain{
width:140px
}
.controls .of-typography-size{
width:80px;
float:left
}
.controls .of-typography-unit{
width:50px;
float:left
}
.controls .of-typography-face{
width:100px;
float:left
}
.controls .of-typography-style{
width:80px;
float:left
}
.controls .of-radio-img-img{
border:3px solid #fff;
margin:0 5px 10px 0;
display:none;
cursor:pointer;
float:left;
}
.controls .of-radio-img-selected{
border:3px solid #ccc
}
.controls .of-radio-img-img:hover{
opacity:.8;
}
.controls .of-border-width{
width:80px;
float:left
}
.controls .of-border-style{
width:120px;
float:left
}
.group{
padding-bottom:20px
}
.group h2{
display:none;
border-bottom:3px solid #e7e7e7
}
.controls input:focus, select:focus, textarea:focus{
background:#fff;
}
.accept{
background: #DBF6BE no-repeat 10px center;
border: solid #9BBF65;
border-width: 0px 1px 1px 1px;
color: #060;
font-weight: bold;
padding: 10px;
text-align: center;
}
.warning{
background: #ffeeee no-repeat 10px center;
border: solid #dfbfbf;
border-width: 0px 1px 1px 1px;
color: #333;
font-weight: bold;
padding: 10px;
text-align: center;
}
.update_available{
background: #FFFEEB no-repeat 10px center;
border: solid #CCCCCC;
border-width: 0px 1px 1px 1px;
color: #333;
font-weight: bold;
padding: 10px;
text-align: center;
}
.of-save-popup{
position:fixed;
margin-left:450px;
-moz-border-radius:12px;
-webkit-border-radius:12px;
border-radius:12px;
background:rgba(0, 0, 0, 0.8);
color:#fff;
font-size:16px;
text-align:center;
display:none;
z-index: 9999;
}
.of-save-save{
background:url(../i/accept.png) 20px 50% no-repeat;
padding:30px 30px 30px 70px
}
.of-save-reset{
background:url(../i/warning.png) 20px 50% no-repeat;
padding:30px 30px 30px 70px
}
.upload_button_div{
margin-bottom: 15px;
margin-top:5px;
}
.upload_button_div .button{
cursor:pointer;
}
.upload_button_div .image_reset_button{
margin-left:10px
}
.upload-error{
float:left;
color:#666;
font-size:10px;
font-weight:bold;
text-decoration:none;
text-shadow:1px 1px 0 #FFFFFF;
margin: 0 10px 0 0;
padding:3px 10px;
background:#FFDFEC;
-moz-border-radius:4px;
-webkit-border:4px;
}
.reset-button{
float:left;
}
.save_bar_top{
background: #f3f3f3;
border:solid #ccc;
border-width:0px 1px 1px 1px;
padding: 10px 20px 0px 20px;
height: 35px;
text-align: right;
-moz-border-radius-bottomright: 6px;
-moz-border-radius-bottomleft: 6px;
-webkit-border-bottom-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
}
.hide{
display:none
}
.ajax-loading-img-top{
margin: 8px 4px 0;
float:left
}
.ajax-loading-img-bottom{
}
.of-option-image{
max-width:340px;
}
.mini .controls select, #content .section .mini .controls{
width: 70px;
}
.mini .controls input, #content .mini .controls{
width: 70px;
}
#content .mini .explain{
width:500px;
}
.of-notice{
background: #ffd1d1;
border:1px solid #DFA8A7;
-moz-border-radius:8px;
-webkit-border-radius:8px;
text-align: center;
margin-bottom: 15px
}
#ofform-reset{
position:relative;
left:20px;
top:-35px;
}
.color_picker input[type="text"]{width:300px;}
.color_picker .preview{
width:30px;
height:25px;
border:solid 1px #ccc;
border-color:#CCCCCC #eee #eee #CCCCCC;
-moz-border-radius:4px;
-webkit-border-radius:4px;
cursor:pointer;
margin:5px 0;
}
.color_picker:hover{
border-color:#aaa #ccc #ccc #aaa;
}
/* GENERAL STYLES */
html body * span.clear, html body * div.clear, html body * li.clear, html body * dd.clear{
background: none;
border: 0;
clear: both;
display: block;
float: none;
font-size: 0;
list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}
/* On/off button */
.kk-toggle {
position: absolute;
margin-left: -9999px;
visibility: hidden;
display: none!important;
}
.kk-toggle + label {
display: inline-block;
position: relative;
cursor: pointer;
outline: none;
user-select: none;
-moz-user-select: none;
}
input.kk-toggle-round + label {
padding: 2px;
width: 40px;
height: 20px;
background-color: #dddddd;
border-radius: 20px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
margin-right: 15px;
}
input.kk-toggle-round + label:before,
input.kk-toggle-round + label:after {
display: block;
position: absolute;
top: 1px;
left: 1px;
bottom: 1px;
content: "";
}
input.kk-toggle-round + label:before {
right: 1px;
background-color: #c52424;
border-radius: 20px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-webkit-transition: background 0.4s;
-moz-transition: background 0.4s;
-o-transition: background 0.4s;
transition: background 0.4s;
}
input.kk-toggle-round + label:after {
width: 22px;
background-color: #f1f1f1;
border-radius: 100%;
-moz-border-radius: 100%;
-webkit-border-radius: 100%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
-webkit-transition: margin 0.4s;
-moz-transition: margin 0.4s;
-o-transition: margin 0.4s;
transition: margin 0.4s;
}
input.kk-toggle-round:checked + label:before {
background-color: #7cbc0a;
}
input.kk-toggle-round:checked + label:after {
margin-left: 22px;
}

BIN
admin/i/accept.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
admin/i/accept1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
admin/i/admin-bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
admin/i/icon_option.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

BIN
admin/i/knob.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
admin/i/loading.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
admin/i/menu-bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

BIN
admin/i/menu-shr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

BIN
admin/i/warning.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

171
admin/interface.php Normal file
View File

@@ -0,0 +1,171 @@
<?php
get_template_part('/admin/js/main.js');
if(!isset($page)) $page='main';
$options = $this->validate_options($this->options[$page]);
?>
<div id="of_container" class="kktfwp-admin-wrap">
<div class="of-save-popup" id="of-popup-save">
<div class="of-save-save"><?php esc_html_e( 'Options Updated','toppic' )?></div>
</div>
<div class="of-save-popup" id="of-popup-reset">
<div class="of-save-reset"><?php esc_html_e( 'Options Reset','toppic' )?></div>
</div>
<form id="ofform" enctype="multipart/form-data" action="" method="post">
<div id="header">
<div class="logo">
<h1><?php echo esc_html( $options['title'] )?></h1>
</div>
<div class="icon-option"> </div>
<div class="clear">&nbsp;</div>
</div>
<div id="main">
<div id="of-nav">
<ul>
<?php $first=true;foreach($options as $group=>$data) if($group != "title"){?>
<li <?php if( $first ){ echo 'class="first"';$first=false; }?>>
<a href="#<?php echo str_replace(' ', '', $group);?>" title="<?php echo esc_attr( $group )?>">
<?php echo esc_html( $group ); ?>
</a>
</li>
<?php }?>
</ul>
<div class="clear">&nbsp;</div>
</div>
<div id="content">
<?php foreach($options as $group=>$gdata) if($group != "title"){?>
<div id="<?php echo str_replace(' ', '', $group)?>" class="group" style="display: block;">
<h2><?php echo esc_html( $group );?></h2>
<?php foreach($gdata as $section=>$sdata){?>
<div class="section <?php echo esc_attr( $section )?>">
<h3 class="heading"><?php echo esc_html( $sdata['options']['title'] )?></h3>
<?php foreach($sdata as $id=>$v) if($id != 'options'){?>
<div class="option <?php echo esc_attr( $id )?>"><div class="controls">
<?php $id=$this->name."_".$id;
switch($v['type']){
case 'text':?>
<input type="text" class="regular-text" id="<?php echo esc_attr( $id )?>" name="<?php echo esc_attr( $id )?>" value="<?php echo stripslashes($v['val'])?>">
<?php break;
case "rangeslider":?>
<div id="<?php echo esc_attr( $id )?>" class="range_slider_holder">
<input type="text" class="kk_range_slider" data-slider-highlight="true" data-slider-step="<?php echo esc_attr( $v['step'] ) ?>" data-slider="true" data-slider-range="<?php echo esc_attr( $v['range'] ) ?>" value="<?php echo stripslashes($v['val'])?>" >
<input type="text" class="regular-text" id="<?php echo esc_attr( $id )?>" name="<?php echo esc_attr( $id )?>" value="<?php echo stripslashes($v['val'])?>">
</div>
<?php break;
case 'textarea':?>
<textarea name="<?php echo esc_attr( $id )?>" type="<?php echo esc_attr( $v['type'] )?>" cols="" rows=""><?php echo esc_html(stripslashes($v['val']))?></textarea>
<?php break;
case 'select':?>
<select name="<?php echo esc_attr( $id )?>" id="<?php echo esc_attr( $id )?>">
<?php foreach($v['options'] as $value=>$text){
if(is_array($text)){
$select_opts=$text;
$text=$select_opts['text'];
}?>
<option value="<?php echo esc_attr( $value )?>"
<?php if($value==$v['val']) echo 'selected="selected"'?>>
<?php echo esc_html( $text )?>
</option>
<?php }?>
</select>
<?php break;
case "checkbox":?>
<label for="<?php echo esc_attr( $id )?>">
<input type="checkbox" name="<?php echo esc_attr( $id )?>" id="<?php echo esc_attr( $id )?>" <?php if($v['val']=='true') echo 'checked="checked"'?>><?php echo esc_html( $v['name'] )?>
</label>
<?php
break;
case "onoff":?>
<?php $kktfwp_val = ( empty( $v['val'] ) ? $v['std'] : $v['val'] ); ?>
<input type="checkbox" name="<?php echo esc_attr( $id )?>" class="kk-toggle kk-toggle-round" id="<?php echo esc_attr( $id )?>" <?php echo (( $kktfwp_val ==='true' ) ? 'checked="checked"' : '')?>>
<label for="<?php echo esc_attr( $id )?>"></label>
<span><?php echo esc_html( $v['name'] )?></span>
<?php
break;
case "image":?>
<?php siteoptions_uploader_function($id,$v['std'],null)?>
<?php break;
case "color":?>
<div id="<?php echo esc_attr( $id )?>" class="color_picker">
<input type="text" id="<?php echo esc_attr( $id )?>" name="<?php echo esc_attr( $id )?>" value="<?php echo esc_attr( $v['val'] )?>">
<div class="preview"></div>
</div>
<?php break;
case "wpeditor":
wp_editor('', $id, array( 'media_buttons' => false ) );
break;
}?>
</div>
<div class="explain"><?php echo esc_html( $v['desc'] ); ?></div>
<div class="clear">&nbsp;</div>
</div>
<?php }?>
<div class="clear">&nbsp;</div>
</div>
<?php }?>
<div class="clear">&nbsp;</div>
</div>
<?php }?>
<div class="clear">&nbsp;</div>
</div>
<div class="clear">&nbsp;</div>
</div>
<div class="save_bar_top">
<input type="hidden" name="type" value="save">
<img alt="Saving..." class="ajax-loading-img ajax-loading-img-bottom" src="<?php echo esc_url( $this->turl )?>/admin/i/loading.gif" style="display:none">
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save All Changes', 'toppic' ) ?>">
</div>
</form>
<form id="ofform-reset" method="post" action="">
<span class="submit-footer-reset">
<input type="hidden" name="type" value="reset">
<input type="submit" onclick="return confirm('CAUTION: Any and all settings will be lost! Click OK to reset.');" class="button submit-button reset-button" value="<?php esc_html_e( 'Reset All Options', 'toppic' ) ?>" name="reset">
</span>
</form>
<div class="clear">&nbsp;</div>
</div>

203
admin/js/jquery.admin.js Normal file
View File

@@ -0,0 +1,203 @@
jQuery(document).ready(function ($) {
String.prototype.bool = function () {
return (/^true$/i).test(this);
};
// Message popups
$.fn.center = function () {
this.css({
"position" : "fixed",
"left" : $("#wpbody").css('margin-left'),
"top" : $(window).height() / 2 - this.height() + "px"
});
return this;
}
$(window).scroll(function () {
$('#of-popup-save').center();
$('#of-popup-reset').center();
});
$(window).scroll();
// Tabs fading
$('.group').hide();
$('.group:first').fadeIn();
$('.group .collapsed').each(function () {
$(this).find('input:checked').parent().parent().parent().nextAll().each(function () {
if ($(this).hasClass('last')) {
$(this).removeClass('hidden');
return false;
}
$(this).filter('.hidden').removeClass('hidden');
});
});
// Tabs navigation fading
$('#of-nav li:first').addClass('current');
$('#of-nav li a').click(function (e) {
var clicked_group = $(this).attr('href');
$('#of-nav li').removeClass('current');
$(this).parent().addClass('current');
$('.group').hide();
$(clicked_group).fadeIn(100);
e.preventDefault();
});
// Colorpicker
$('.color_picker .preview').each(function () {
var elem = $(this);
var color = elem.parent().find('input').val();
elem.css('backgroundColor', color).ColorPicker({
color : color,
onShow : function (cp) {
$(cp).fadeIn(100);
return false;
},
onHide : function (cp) {
$(cp).fadeOut(100);
return false;
},
onChange : function (hsb, hex, rgb) {
elem.css('backgroundColor', '#' + hex).parent().find('input').attr('value', '#' + hex);
}
});
});
$('.color_picker :input').blur(function () {
$(this).parent().find(".preview").css('backgroundColor', $(this).val());
});
// Range slider
$(window).load(function () {
$('.kk_range_slider').each(function () {
var elem = $(this);
elem.bind("slider:changed", function (event, data) {
// The currently selected value of the slider
elem.parent().find('.regular-text').attr('value', data.value);
});
});
});
// AJAX Upload
$('.image_upload_button').each(function () {
var clickedObject = $(this);
var clickedID = $(this).attr('id');
new AjaxUpload(clickedID, {
action : kk_ajax_data.ajaxurl,
name : clickedID,
data : {
action : 'of_ajax_post_action',
type : 'upload',
data : clickedID
},
autoSubmit : true,
responseType : false,
onChange : function (file, extension) {},
onSubmit : function (file, extension) {
clickedObject.text('Uploading');
this.disable();
interval = window.setInterval(function () {
var text = clickedObject.text();
if (text.length < 13) {
clickedObject.text(text + '.');
} else {
clickedObject.text('Uploading');
}
}, 200);
},
onComplete : function (file, response) {
window.clearInterval(interval);
clickedObject.text('Upload Image');
this.enable();
if (response.search('Upload Error') > -1) {
var buildReturn = '<span class="upload-error">' + response + '</span>';
$(".upload-error").remove();
clickedObject.parent().after(buildReturn);
} else {
var buildReturn = '<img class="hide of-option-image" id="image_' + clickedID + '" src="' + response + '" alt="" />';
$(".upload-error").remove();
$("#image_" + clickedID).remove();
clickedObject.parent().after(buildReturn);
$('img#image_' + clickedID).fadeIn();
clickedObject.next('span').fadeIn();
clickedObject.parent().prev('input').val(response);
}
}
});
});
// AJAX Remove (clear option value)
$('.image_reset_button').click(function () {
var clickedObject = $(this);
var clickedID = $(this).attr('id');
var theID = $(this).attr('title');
var ajax_url = kk_ajax_data.ajaxurl;
var data = {
type : 'image_reset',
action : 'of_ajax_post_action',
data : theID
};
$.post(ajax_url, data, function (response) {
var image_to_remove = $('#image_' + theID);
var button_to_hide = $('#reset_' + theID);
image_to_remove.fadeOut(500, function () {
$(this).remove();
});
button_to_hide.fadeOut();
clickedObject.parent().prev('input').val('');
});
return false;
});
// Save everything else
$('#ofform').submit(function () {
$(":checkbox").each(function () {
this.value = this.checked;
this.checked = true
});
var serializedReturn = $("#ofform").serialize();
$(":checkbox").each(function () {
this.checked = this.value.bool()
});
$('.ajax-loading-img').fadeIn();
var ajax_url = kk_ajax_data.ajaxurl;
var data = {
type : 'save',
action : 'of_ajax_post_action',
data : serializedReturn
};
$.post(ajax_url, data, function (response) {
$('.ajax-loading-img').fadeOut();
var success = $('#of-popup-save');
success.fadeIn();
window.setTimeout(function () {
success.fadeOut();
}, 1000);
});
return false;
});
// Reset all options
$('#ofform-reset').submit(function () {
var ajax_url = kk_ajax_data.ajaxurl;
var data = {
type : 'reset',
action : 'of_ajax_post_action',
};
$.post(ajax_url, data, function (response) {
var reset = $('#of-popup-reset');
reset.fadeIn();
window.setTimeout(function () {
location.reload()
}, 250);
});
return false;
});
});

View File

@@ -0,0 +1,606 @@
/**
* AJAX Upload
* Project page - http://valums.com/ajax-upload/
* Copyright (c) 2008 Andris Valums, http://valums.com
* Licensed under the MIT license (http://valums.com/mit-license/)
*/
(function(){
var d = document, w = window;
/**
* Get element by id
*/
function get(element){
if (typeof element == "string")
element = d.getElementById(element);
return element;
}
/**
* Attaches event to a dom element
*/
function addEvent(el, type, fn){
if (w.addEventListener){
el.addEventListener(type, fn, false);
} else if (w.attachEvent){
var f = function(){
fn.call(el, w.event);
};
el.attachEvent('on' + type, f)
}
}
/**
* Creates and returns element from html chunk
*/
var toElement = function(){
var div = d.createElement('div');
return function(html){
div.innerHTML = html;
var el = div.childNodes[0];
div.removeChild(el);
return el;
}
}();
function hasClass(ele,cls){
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
// getOffset function copied from jQuery lib (http://jquery.com/)
if (document.documentElement["getBoundingClientRect"]){
// Get Offset using getBoundingClientRect
// http://ejohn.org/blog/getboundingclientrect-is-awesome/
var getOffset = function(el){
var box = el.getBoundingClientRect(),
doc = el.ownerDocument,
body = doc.body,
docElem = doc.documentElement,
// for ie
clientTop = docElem.clientTop || body.clientTop || 0,
clientLeft = docElem.clientLeft || body.clientLeft || 0,
// In Internet Explorer 7 getBoundingClientRect property is treated as physical,
// while others are logical. Make all logical, like in IE8.
zoom = 1;
if (body.getBoundingClientRect) {
var bound = body.getBoundingClientRect();
zoom = (bound.right - bound.left)/body.clientWidth;
}
if (zoom > 1){
clientTop = 0;
clientLeft = 0;
}
var top = box.top/zoom + (window.pageYOffset || docElem && docElem.scrollTop/zoom || body.scrollTop/zoom) - clientTop,
left = box.left/zoom + (window.pageXOffset|| docElem && docElem.scrollLeft/zoom || body.scrollLeft/zoom) - clientLeft;
return {
top: top,
left: left
};
}
} else {
// Get offset adding all offsets
var getOffset = function(el){
if (w.jQuery){
return jQuery(el).offset();
}
var top = 0, left = 0;
do {
top += el.offsetTop || 0;
left += el.offsetLeft || 0;
}
while (el = el.offsetParent);
return {
left: left,
top: top
};
}
}
function getBox(el){
var left, right, top, bottom;
var offset = getOffset(el);
left = offset.left;
top = offset.top;
right = left + el.offsetWidth;
bottom = top + el.offsetHeight;
return {
left: left,
right: right,
top: top,
bottom: bottom
};
}
/**
* Crossbrowser mouse coordinates
*/
function getMouseCoords(e){
// pageX/Y is not supported in IE
// http://www.quirksmode.org/dom/w3c_cssom.html
if (!e.pageX && e.clientX){
// In Internet Explorer 7 some properties (mouse coordinates) are treated as physical,
// while others are logical (offset).
var zoom = 1;
var body = document.body;
if (body.getBoundingClientRect) {
var bound = body.getBoundingClientRect();
zoom = (bound.right - bound.left)/body.clientWidth;
}
return {
x: e.clientX / zoom + d.body.scrollLeft + d.documentElement.scrollLeft,
y: e.clientY / zoom + d.body.scrollTop + d.documentElement.scrollTop
};
}
return {
x: e.pageX,
y: e.pageY
};
}
/**
* Function generates unique id
*/
var getUID = function(){
var id = 0;
return function(){
return 'ValumsAjaxUpload' + id++;
}
}();
function fileFromPath(file){
return file.replace(/.*(\/|\\)/, "");
}
function getExt(file){
return (/[.]/.exec(file)) ? /[^.]+$/.exec(file.toLowerCase()) : '';
}
/**
* Cross-browser way to get xhr object
*/
var getXhr = function(){
var xhr;
return function(){
if (xhr) return xhr;
if (typeof XMLHttpRequest !== 'undefined') {
xhr = new XMLHttpRequest();
} else {
var v = [
"Microsoft.XmlHttp",
"MSXML2.XmlHttp.5.0",
"MSXML2.XmlHttp.4.0",
"MSXML2.XmlHttp.3.0",
"MSXML2.XmlHttp.2.0"
];
for (var i=0; i < v.length; i++){
try {
xhr = new ActiveXObject(v[i]);
break;
} catch (e){}
}
}
return xhr;
}
}();
// Please use AjaxUpload , Ajax_upload will be removed in the next version
Ajax_upload = AjaxUpload = function(button, options){
if (button.jquery){
// jquery object was passed
button = button[0];
} else if (typeof button == "string" && /^#.*/.test(button)){
button = button.slice(1);
}
button = get(button);
this._input = null;
this._button = button;
this._disabled = false;
this._submitting = false;
// Variable changes to true if the button was clicked
// 3 seconds ago (requred to fix Safari on Mac error)
this._justClicked = false;
this._parentDialog = d.body;
if (window.jQuery && jQuery.ui && jQuery.ui.dialog){
var parentDialog = jQuery(this._button).parents('.ui-dialog');
if (parentDialog.length){
this._parentDialog = parentDialog[0];
}
}
this._settings = {
// Location of the server-side upload script
action: 'upload.php',
// File upload name
name: 'userfile',
// Additional data to send
data: {},
// Submit file as soon as it's selected
autoSubmit: true,
// The type of data that you're expecting back from the server.
// Html and xml are detected automatically.
// Only useful when you are using json data as a response.
// Set to "json" in that case.
responseType: false,
// Location of the server-side script that fixes Safari
// hanging problem returning "Connection: close" header
closeConnection: '',
// Class applied to button when mouse is hovered
hoverClass: 'hover',
// When user selects a file, useful with autoSubmit disabled
onChange: function(file, extension){},
// Callback to fire before file is uploaded
// You can return false to cancel upload
onSubmit: function(file, extension){},
// Fired when file upload is completed
// WARNING! DO NOT USE "FALSE" STRING AS A RESPONSE!
onComplete: function(file, response) {}
};
// Merge the users options with our defaults
for (var i in options) {
this._settings[i] = options[i];
}
this._createInput();
this._rerouteClicks();
}
// assigning methods to our class
AjaxUpload.prototype = {
setData : function(data){
this._settings.data = data;
},
disable : function(){
this._disabled = true;
},
enable : function(){
this._disabled = false;
},
// removes instance
destroy : function(){
if(this._input){
if(this._input.parentNode){
this._input.parentNode.removeChild(this._input);
}
this._input = null;
}
},
/**
* Creates invisible file input above the button
*/
_createInput : function(){
var self = this;
var input = d.createElement("input");
input.setAttribute('type', 'file');
input.setAttribute('name', this._settings.name);
var styles = {
'position' : 'absolute'
,'margin': '-5px 0 0 -175px'
,'padding': 0
,'width': '220px'
,'height': '30px'
,'fontSize': '14px'
,'opacity': 0
,'cursor': 'pointer'
,'display' : 'none'
,'zIndex' : 2147483583 //Max zIndex supported by Opera 9.0-9.2x
// Strange, I expected 2147483647
// Doesn't work in IE :(
//,'direction' : 'ltr'
};
for (var i in styles){
input.style[i] = styles[i];
}
// Make sure that element opacity exists
// (IE uses filter instead)
if ( ! (input.style.opacity === "0")){
input.style.filter = "alpha(opacity=0)";
}
this._parentDialog.appendChild(input);
addEvent(input, 'change', function(){
// get filename from input
var file = fileFromPath(this.value);
if(self._settings.onChange.call(self, file, getExt(file)) == false ){
return;
}
// Submit form when value is changed
if (self._settings.autoSubmit){
self.submit();
}
});
// Fixing problem with Safari
// The problem is that if you leave input before the file select dialog opens
// it does not upload the file.
// As dialog opens slowly (it is a sheet dialog which takes some time to open)
// there is some time while you can leave the button.
// So we should not change display to none immediately
addEvent(input, 'click', function(){
self.justClicked = true;
setTimeout(function(){
// we will wait 3 seconds for dialog to open
self.justClicked = false;
}, 2500);
});
this._input = input;
},
_rerouteClicks : function (){
var self = this;
// IE displays 'access denied' error when using this method
// other browsers just ignore click()
// addEvent(this._button, 'click', function(e){
// self._input.click();
// });
var box, dialogOffset = {top:0, left:0}, over = false;
addEvent(self._button, 'mouseover', function(e){
if (!self._input || over) return;
over = true;
box = getBox(self._button);
if (self._parentDialog != d.body){
dialogOffset = getOffset(self._parentDialog);
}
});
// We can't use mouseout on the button,
// because invisible input is over it
addEvent(document, 'mousemove', function(e){
var input = self._input;
if (!input || !over) return;
if (self._disabled){
removeClass(self._button, self._settings.hoverClass);
input.style.display = 'none';
return;
}
var c = getMouseCoords(e);
if ((c.x >= box.left) && (c.x <= box.right) &&
(c.y >= box.top) && (c.y <= box.bottom)){
input.style.top = c.y - dialogOffset.top + 'px';
input.style.left = c.x - dialogOffset.left + 'px';
input.style.display = 'block';
addClass(self._button, self._settings.hoverClass);
} else {
// mouse left the button
over = false;
var check = setInterval(function(){
// if input was just clicked do not hide it
// to prevent safari bug
if (self.justClicked){
return;
}
if ( !over ){
input.style.display = 'none';
}
clearInterval(check);
}, 25);
removeClass(self._button, self._settings.hoverClass);
}
});
},
/**
* Creates iframe with unique name
*/
_createIframe : function(){
// unique name
// We cannot use getTime, because it somelustrel return
// same value in safari :(
var id = getUID();
// Remove ie6 "This page contains both secure and nonsecure items" prompt
// http://tinyurl.com/77w9wh
var iframe = toElement('<iframe src="javascript:false;" name="' + id + '" />');
iframe.id = id;
iframe.style.display = 'none';
d.body.appendChild(iframe);
return iframe;
},
/**
* Upload file without refreshing the page
*/
submit : function(){
var self = this, settings = this._settings;
if (this._input.value === ''){
// there is no file
return;
}
// get filename from input
var file = fileFromPath(this._input.value);
// execute user event
if (! (settings.onSubmit.call(this, file, getExt(file)) == false)) {
// Create new iframe for this submission
var iframe = this._createIframe();
// Do not submit if user function returns false
var form = this._createForm(iframe);
form.appendChild(this._input);
// A pretty little hack to make uploads not hang in Safari. Just call this
// immediately before the upload is submitted. This does an Ajax call to
// the server, which returns an empty document with the "Connection: close"
// header, telling Safari to close the active connection.
// http://blog.airbladesoftware.com/2007/8/17/note-to-self-prevent-uploads-hanging-in-safari
if (settings.closeConnection && /AppleWebKit|MSIE/.test(navigator.userAgent)){
var xhr = getXhr();
// Open synhronous connection
xhr.open('GET', settings.closeConnection, false);
xhr.send('');
}
form.submit();
d.body.removeChild(form);
form = null;
this._input = null;
// create new input
this._createInput();
var toDeleteFlag = false;
addEvent(iframe, 'load', function(e){
if (// For Safari
iframe.src == "javascript:'%3Chtml%3E%3C/html%3E';" ||
// For FF, IE
iframe.src == "javascript:'<html></html>';"){
// First time around, do not delete.
if( toDeleteFlag ){
// Fix busy state in FF3
setTimeout( function() {
d.body.removeChild(iframe);
}, 0);
}
return;
}
var doc = iframe.contentDocument ? iframe.contentDocument : frames[iframe.id].document;
// fixing Opera 9.26
if (doc.readyState && doc.readyState != 'complete'){
// Opera fires load event multiple lustrel
// Even when the DOM is not ready yet
// this fix should not affect other browsers
return;
}
// fixing Opera 9.64
if (doc.body && doc.body.innerHTML == "false"){
// In Opera 9.64 event was fired second time
// when body.innerHTML changed from false
// to server response approx. after 1 sec
return;
}
var response;
if (doc.XMLDocument){
// response is a xml document IE property
response = doc.XMLDocument;
} else if (doc.body){
// response is html document or plain text
response = doc.body.innerHTML;
if (settings.responseType && settings.responseType.toLowerCase() == 'json'){
// If the document was sent as 'application/javascript' or
// 'text/javascript', then the browser wraps the text in a <pre>
// tag and performs html encoding on the contents. In this case,
// we need to pull the original text content from the text node's
// nodeValue property to retrieve the unmangled content.
// Note that IE6 only understands text/html
if (doc.body.firstChild && doc.body.firstChild.nodeName.toUpperCase() == 'PRE'){
response = doc.body.firstChild.firstChild.nodeValue;
}
if (response) {
response = window["eval"]("(" + response + ")");
} else {
response = {};
}
}
} else {
// response is a xml document
var response = doc;
}
settings.onComplete.call(self, file, response);
// Reload blank page, so that reloading main page
// does not re-submit the post. Also, remember to
// delete the frame
toDeleteFlag = true;
// Fix IE mixed content issue
iframe.src = "javascript:'<html></html>';";
});
} else {
// clear input to allow user to select same file
// Doesn't work in IE6
// this._input.value = '';
d.body.removeChild(this._input);
this._input = null;
// create new input
this._createInput();
}
},
/**
* Creates form, that will be submitted to iframe
*/
_createForm : function(iframe){
var settings = this._settings;
// method, enctype must be specified here
// because changing this attr on the fly is not allowed in IE 6/7
var form = toElement('<form method="post" enctype="multipart/form-data"></form>');
form.style.display = 'none';
form.action = settings.action;
form.target = iframe.name;
d.body.appendChild(form);
// Create hidden input element for each data key
for (var prop in settings.data){
var el = d.createElement("input");
el.type = 'hidden';
el.name = prop;
el.value = settings.data[prop];
form.appendChild(el);
}
return form;
}
};
})();

View File

@@ -0,0 +1,455 @@
/**
*
* Color picker
* Author: Stefan Petre www.eyecon.ro
*
* Dependencies: jQuery
*
*/
(function ($) {
var ColorPicker = function () {
var
ids = {},
inAction,
charMin = 65,
visible,
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
defaults = {
eventName: 'click',
onShow: function () {},
onBeforeShow: function(){},
onHide: function () {},
onChange: function () {},
onSubmit: function () {},
color: 'ff0000',
livePreview: true,
flat: false
},
fillRGBFields = function (hsb, cal) {
var rgb = HSBToRGB(hsb);
$(cal).data('colorpicker').fields
.eq(1).val(rgb.r).end()
.eq(2).val(rgb.g).end()
.eq(3).val(rgb.b).end();
},
fillHSBFields = function (hsb, cal) {
$(cal).data('colorpicker').fields
.eq(4).val(hsb.h).end()
.eq(5).val(hsb.s).end()
.eq(6).val(hsb.b).end();
},
fillHexFields = function (hsb, cal) {
$(cal).data('colorpicker').fields
.eq(0).val(HSBToHex(hsb)).end();
},
setSelector = function (hsb, cal) {
$(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
$(cal).data('colorpicker').selectorIndic.css({
left: parseInt(150 * hsb.s/100, 10),
top: parseInt(150 * (100-hsb.b)/100, 10)
});
},
setHue = function (hsb, cal) {
$(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
},
setCurrentColor = function (hsb, cal) {
$(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
},
setNewColor = function (hsb, cal) {
$(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
},
keyDown = function (ev) {
var pressedKey = ev.charCode || ev.keyCode || -1;
if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
return false;
}
var cal = $(this).parent().parent();
if (cal.data('colorpicker').livePreview === true) {
change.apply(this);
}
},
change = function (ev) {
var cal = $(this).parent().parent(), col;
if (this.parentNode.className.indexOf('_hex') > 0) {
cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
} else if (this.parentNode.className.indexOf('_hsb') > 0) {
cal.data('colorpicker').color = col = fixHSB({
h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
});
} else {
cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
}));
}
if (ev) {
fillRGBFields(col, cal.get(0));
fillHexFields(col, cal.get(0));
fillHSBFields(col, cal.get(0));
}
setSelector(col, cal.get(0));
setHue(col, cal.get(0));
setNewColor(col, cal.get(0));
cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
},
blur = function (ev) {
var cal = $(this).parent().parent();
cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus')
},
focus = function () {
charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
$(this).parent().addClass('colorpicker_focus');
},
downIncrement = function (ev) {
var field = $(this).parent().find('input').focus();
var current = {
el: $(this).parent().addClass('colorpicker_slider'),
max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
y: ev.pageY,
field: field,
val: parseInt(field.val(), 10),
preview: $(this).parent().parent().data('colorpicker').livePreview
};
$(document).bind('mouseup', current, upIncrement);
$(document).bind('mousemove', current, moveIncrement);
},
moveIncrement = function (ev) {
ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
if (ev.data.preview) {
change.apply(ev.data.field.get(0), [true]);
}
return false;
},
upIncrement = function (ev) {
change.apply(ev.data.field.get(0), [true]);
ev.data.el.removeClass('colorpicker_slider').find('input').focus();
$(document).unbind('mouseup', upIncrement);
$(document).unbind('mousemove', moveIncrement);
return false;
},
downHue = function (ev) {
var current = {
cal: $(this).parent(),
y: $(this).offset().top
};
current.preview = current.cal.data('colorpicker').livePreview;
$(document).bind('mouseup', current, upHue);
$(document).bind('mousemove', current, moveHue);
},
moveHue = function (ev) {
change.apply(
ev.data.cal.data('colorpicker')
.fields
.eq(4)
.val(parseInt(360*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.y))))/150, 10))
.get(0),
[ev.data.preview]
);
return false;
},
upHue = function (ev) {
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
$(document).unbind('mouseup', upHue);
$(document).unbind('mousemove', moveHue);
return false;
},
downSelector = function (ev) {
var current = {
cal: $(this).parent(),
pos: $(this).offset()
};
current.preview = current.cal.data('colorpicker').livePreview;
$(document).bind('mouseup', current, upSelector);
$(document).bind('mousemove', current, moveSelector);
},
moveSelector = function (ev) {
change.apply(
ev.data.cal.data('colorpicker')
.fields
.eq(6)
.val(parseInt(100*(150 - Math.max(0,Math.min(150,(ev.pageY - ev.data.pos.top))))/150, 10))
.end()
.eq(5)
.val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX - ev.data.pos.left))))/150, 10))
.get(0),
[ev.data.preview]
);
return false;
},
upSelector = function (ev) {
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
$(document).unbind('mouseup', upSelector);
$(document).unbind('mousemove', moveSelector);
return false;
},
enterSubmit = function (ev) {
$(this).addClass('colorpicker_focus');
},
leaveSubmit = function (ev) {
$(this).removeClass('colorpicker_focus');
},
clickSubmit = function (ev) {
var cal = $(this).parent();
var col = cal.data('colorpicker').color;
cal.data('colorpicker').origColor = col;
setCurrentColor(col, cal.get(0));
cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col));
cal.hide();
},
show = function (ev) {
var cal = $('#' + $(this).data('colorpickerId'));
cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
var pos = $(this).offset();
var viewPort = getViewport();
var top = pos.top + this.offsetHeight;
var left = pos.left;
if (top + 176 > viewPort.t + viewPort.h) {
top -= this.offsetHeight + 176;
} else {
top += 5;
}
if (left + 356 > viewPort.l + viewPort.w) {
left -= 356;
}
cal.css({left: left + 'px', top: top + 'px'});
if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
cal.show();
}
$(document).bind('mousedown', {cal: cal}, hide);
return false;
},
hide = function (ev) {
if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
ev.data.cal.hide();
}
$(document).unbind('mousedown', hide);
}
},
isChildOf = function(parentEl, el, container) {
if (parentEl == el) {
return true;
}
if (parentEl.contains) {
return parentEl.contains(el);
}
if ( parentEl.compareDocumentPosition ) {
return !!(parentEl.compareDocumentPosition(el) & 16);
}
var prEl = el.parentNode;
while(prEl && prEl != container) {
if (prEl == parentEl)
return true;
prEl = prEl.parentNode;
}
return false;
},
getViewport = function () {
var m = document.compatMode == 'CSS1Compat';
return {
l : window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
t : window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
w : window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
h : window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
};
},
fixHSB = function (hsb) {
return {
h: Math.min(360, Math.max(0, hsb.h)),
s: Math.min(100, Math.max(0, hsb.s)),
b: Math.min(100, Math.max(0, hsb.b))
};
},
fixRGB = function (rgb) {
return {
r: Math.min(255, Math.max(0, rgb.r)),
g: Math.min(255, Math.max(0, rgb.g)),
b: Math.min(255, Math.max(0, rgb.b))
};
},
fixHex = function (hex) {
var len = 6 - hex.length;
if (len > 0) {
var o = [];
for (var i=0; i<len; i++) {
o.push('0');
}
o.push(hex);
hex = o.join('');
}
return hex;
},
HexToRGB = function (hex) {
var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
},
HexToHSB = function (hex) {
return RGBToHSB(HexToRGB(hex));
},
RGBToHSB = function (rgb) {
var hsb = {};
hsb.b = Math.max(Math.max(rgb.r,rgb.g),rgb.b);
hsb.s = (hsb.b <= 0) ? 0 : Math.round(100*(hsb.b - Math.min(Math.min(rgb.r,rgb.g),rgb.b))/hsb.b);
hsb.b = Math.round((hsb.b /255)*100);
if((rgb.r==rgb.g) && (rgb.g==rgb.b)) hsb.h = 0;
else if(rgb.r>=rgb.g && rgb.g>=rgb.b) hsb.h = 60*(rgb.g-rgb.b)/(rgb.r-rgb.b);
else if(rgb.g>=rgb.r && rgb.r>=rgb.b) hsb.h = 60 + 60*(rgb.g-rgb.r)/(rgb.g-rgb.b);
else if(rgb.g>=rgb.b && rgb.b>=rgb.r) hsb.h = 120 + 60*(rgb.b-rgb.r)/(rgb.g-rgb.r);
else if(rgb.b>=rgb.g && rgb.g>=rgb.r) hsb.h = 180 + 60*(rgb.b-rgb.g)/(rgb.b-rgb.r);
else if(rgb.b>=rgb.r && rgb.r>=rgb.g) hsb.h = 240 + 60*(rgb.r-rgb.g)/(rgb.b-rgb.g);
else if(rgb.r>=rgb.b && rgb.b>=rgb.g) hsb.h = 300 + 60*(rgb.r-rgb.b)/(rgb.r-rgb.g);
else hsb.h = 0;
hsb.h = Math.round(hsb.h);
return hsb;
},
HSBToRGB = function (hsb) {
var rgb = {};
var h = Math.round(hsb.h);
var s = Math.round(hsb.s*255/100);
var v = Math.round(hsb.b*255/100);
if(s == 0) {
rgb.r = rgb.g = rgb.b = v;
} else {
var t1 = v;
var t2 = (255-s)*v/255;
var t3 = (t1-t2)*(h%60)/60;
if(h==360) h = 0;
if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3}
else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3}
else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3}
else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3}
else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3}
else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3}
else {rgb.r=0; rgb.g=0; rgb.b=0}
}
return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
},
RGBToHex = function (rgb) {
var hex = [
rgb.r.toString(16),
rgb.g.toString(16),
rgb.b.toString(16)
];
$.each(hex, function (nr, val) {
if (val.length == 1) {
hex[nr] = '0' + val;
}
});
return hex.join('');
},
HSBToHex = function (hsb) {
return RGBToHex(HSBToRGB(hsb));
};
return {
init: function (options) {
options = $.extend({}, defaults, options||{});
if (typeof options.color == 'string') {
options.color = HexToHSB(options.color);
} else if (options.color.r != undefined && options.color.g != undefined && options.color.b != undefined) {
options.color = RGBToHSB(options.color);
} else if (options.color.h != undefined && options.color.s != undefined && options.color.b != undefined) {
options.color = fixHSB(options.color);
} else {
return this;
}
options.origColor = options.color;
return this.each(function () {
if (!$(this).data('colorpickerId')) {
var id = 'collorpicker_' + parseInt(Math.random() * 1000);
$(this).data('colorpickerId', id);
var cal = $(tpl).attr('id', id);
if (options.flat) {
cal.appendTo(this).show();
} else {
cal.appendTo(document.body);
}
options.fields = cal
.find('input')
.bind('keydown', keyDown)
.bind('change', change)
.bind('blur', blur)
.bind('focus', focus);
cal.find('span').bind('mousedown', downIncrement);
options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
options.selectorIndic = options.selector.find('div div');
options.hue = cal.find('div.colorpicker_hue div');
cal.find('div.colorpicker_hue').bind('mousedown', downHue);
options.newColor = cal.find('div.colorpicker_new_color');
options.currentColor = cal.find('div.colorpicker_current_color');
cal.data('colorpicker', options);
cal.find('div.colorpicker_submit')
.bind('mouseenter', enterSubmit)
.bind('mouseleave', leaveSubmit)
.bind('click', clickSubmit);
fillRGBFields(options.color, cal.get(0));
fillHSBFields(options.color, cal.get(0));
fillHexFields(options.color, cal.get(0));
setHue(options.color, cal.get(0));
setSelector(options.color, cal.get(0));
setCurrentColor(options.color, cal.get(0));
setNewColor(options.color, cal.get(0));
if (options.flat) {
cal.css({
position: 'relative',
display: 'block'
});
} else {
$(this).bind(options.eventName, show);
}
}
});
},
showPicker: function() {
return this.each( function () {
if ($(this).data('colorpickerId')) {
show.apply(this);
}
});
},
hidePicker: function() {
return this.each( function () {
if ($(this).data('colorpickerId')) {
$('#' + $(this).data('colorpickerId')).hide();
}
});
},
setColor: function(col) {
if (typeof col == 'string') {
col = HexToHSB(col);
} else if (col.r != undefined && col.g != undefined && col.b != undefined) {
col = RGBToHSB(col);
} else if (col.h != undefined && col.s != undefined && col.b != undefined) {
col = fixHSB(col);
} else {
return this;
}
return this.each(function(){
if ($(this).data('colorpickerId')) {
var cal = $('#' + $(this).data('colorpickerId'));
cal.data('colorpicker').color = col;
cal.data('colorpicker').origColor = col;
fillRGBFields(col, cal.get(0));
fillHSBFields(col, cal.get(0));
fillHexFields(col, cal.get(0));
setHue(col, cal.get(0));
setSelector(col, cal.get(0));
setCurrentColor(col, cal.get(0));
setNewColor(col, cal.get(0));
}
});
}
};
}();
$.fn.extend({
ColorPicker: ColorPicker.init,
ColorPickerHide: ColorPicker.hide,
ColorPickerShow: ColorPicker.show,
ColorPickerSetColor: ColorPicker.setColor
});
})(jQuery)

View File

@@ -0,0 +1,252 @@
/// <reference path="../../../lib/jquery-1.2.6.js" />
/*
Masked Input plugin for jQuery
Copyright (c) 2007-2009 Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: 1.2.2 (03/09/2009 22:39:06)
*/
(function($) {
var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask";
var iPhone = (window.orientation != undefined);
$.mask = {
//Predefined character definitions
definitions: {
'9': "[0-9]",
'a': "[A-Za-z]",
'*': "[A-Za-z0-9]"
}
};
$.fn.extend({
//Helper Function for Caret positioning
caret: function(begin, end) {
if (this.length == 0) return;
if (typeof begin == 'number') {
end = (typeof end == 'number') ? end : begin;
return this.each(function() {
if (this.setSelectionRange) {
this.focus();
this.setSelectionRange(begin, end);
} else if (this.createTextRange) {
var range = this.createTextRange();
range.collapse(true);
range.moveEnd('character', end);
range.moveStart('character', begin);
range.select();
}
});
} else {
if (this[0].setSelectionRange) {
begin = this[0].selectionStart;
end = this[0].selectionEnd;
} else if (document.selection && document.selection.createRange) {
var range = document.selection.createRange();
begin = 0 - range.duplicate().moveStart('character', -100000);
end = begin + range.text.length;
}
return { begin: begin, end: end };
}
},
unmask: function() { return this.trigger("unmask"); },
mask: function(mask, settings) {
if (!mask && this.length > 0) {
var input = $(this[0]);
var tests = input.data("tests");
return $.map(input.data("buffer"), function(c, i) {
return tests[i] ? c : null;
}).join('');
}
settings = $.extend({
placeholder: "_",
completed: null
}, settings);
var defs = $.mask.definitions;
var tests = [];
var partialPosition = mask.length;
var firstNonMaskPos = null;
var len = mask.length;
$.each(mask.split(""), function(i, c) {
if (c == '?') {
len--;
partialPosition = i;
} else if (defs[c]) {
tests.push(new RegExp(defs[c]));
if(firstNonMaskPos==null)
firstNonMaskPos = tests.length - 1;
} else {
tests.push(null);
}
});
return this.each(function() {
var input = $(this);
var buffer = $.map(mask.split(""), function(c, i) { if (c != '?') return defs[c] ? settings.placeholder : c });
var ignore = false; //Variable for ignoring control keys
var focusText = input.val();
input.data("buffer", buffer).data("tests", tests);
function seekNext(pos) {
while (++pos <= len && !tests[pos]);
return pos;
};
function shiftL(pos) {
while (!tests[pos] && --pos >= 0);
for (var i = pos; i < len; i++) {
if (tests[i]) {
buffer[i] = settings.placeholder;
var j = seekNext(i);
if (j < len && tests[i].test(buffer[j])) {
buffer[i] = buffer[j];
} else
break;
}
}
writeBuffer();
input.caret(Math.max(firstNonMaskPos, pos));
};
function shiftR(pos) {
for (var i = pos, c = settings.placeholder; i < len; i++) {
if (tests[i]) {
var j = seekNext(i);
var t = buffer[i];
buffer[i] = c;
if (j < len && tests[j].test(t))
c = t;
else
break;
}
}
};
function keydownEvent(e) {
var pos = $(this).caret();
var k = e.keyCode;
ignore = (k < 16 || (k > 16 && k < 32) || (k > 32 && k < 41));
//delete selection before proceeding
if ((pos.begin - pos.end) != 0 && (!ignore || k == 8 || k == 46))
clearBuffer(pos.begin, pos.end);
//backspace, delete, and escape get special treatment
if (k == 8 || k == 46 || (iPhone && k == 127)) {//backspace/delete
shiftL(pos.begin + (k == 46 ? 0 : -1));
return false;
} else if (k == 27) {//escape
input.val(focusText);
input.caret(0, checkVal());
return false;
}
};
function keypressEvent(e) {
if (ignore) {
ignore = false;
//Fixes Mac FF bug on backspace
return (e.keyCode == 8) ? false : null;
}
e = e || window.event;
var k = e.charCode || e.keyCode || e.which;
var pos = $(this).caret();
if (e.ctrlKey || e.altKey || e.metaKey) {//Ignore
return true;
} else if ((k >= 32 && k <= 125) || k > 186) {//typeable characters
var p = seekNext(pos.begin - 1);
if (p < len) {
var c = String.fromCharCode(k);
if (tests[p].test(c)) {
shiftR(p);
buffer[p] = c;
writeBuffer();
var next = seekNext(p);
$(this).caret(next);
if (settings.completed && next == len)
settings.completed.call(input);
}
}
}
return false;
};
function clearBuffer(start, end) {
for (var i = start; i < end && i < len; i++) {
if (tests[i])
buffer[i] = settings.placeholder;
}
};
function writeBuffer() { return input.val(buffer.join('')).val(); };
function checkVal(allow) {
//try to place characters where they belong
var test = input.val();
var lastMatch = -1;
for (var i = 0, pos = 0; i < len; i++) {
if (tests[i]) {
buffer[i] = settings.placeholder;
while (pos++ < test.length) {
var c = test.charAt(pos - 1);
if (tests[i].test(c)) {
buffer[i] = c;
lastMatch = i;
break;
}
}
if (pos > test.length)
break;
} else if (buffer[i] == test[pos] && i!=partialPosition) {
pos++;
lastMatch = i;
}
}
if (!allow && lastMatch + 1 < partialPosition) {
input.val("");
clearBuffer(0, len);
} else if (allow || lastMatch + 1 >= partialPosition) {
writeBuffer();
if (!allow) input.val(input.val().substring(0, lastMatch + 1));
}
return (partialPosition ? i : firstNonMaskPos);
};
if (!input.attr("readonly"))
input
.one("unmask", function() {
input
.unbind(".mask")
.removeData("buffer")
.removeData("tests");
})
.bind("focus.mask", function() {
focusText = input.val();
var pos = checkVal();
writeBuffer();
setTimeout(function() {
if (pos == mask.length)
input.caret(0, pos);
else
input.caret(pos);
}, 0);
})
.bind("blur.mask", function() {
checkVal();
if (input.val() != focusText)
input.change();
})
.bind("keydown.mask", keydownEvent)
.bind("keypress.mask", keypressEvent)
.bind(pasteEventName, function() {
setTimeout(function() { input.caret(checkVal(true)); }, 0);
});
checkVal(); //Perform initial check for existing values
});
}
});
})(jQuery);

View File

@@ -0,0 +1,99 @@
jQuery(function ($) {
"use strict";
// Menu options
var menuTypeCss = $('.sflickr_userid, .sflickr_api, .sflickr_icount, .sflickr_isize'),
menuTypeCss_2 = $('#BackgroundSlider .1, #BackgroundSlider .3, #BackgroundSlider .4'),
menuTypeCss_3 = $('#BackgroundSlider .2'),
menuType = $('#portfolio-type-Video'),
selectors = $('#toppic_theme_fullscreen_stream'),
selectors_menu = $('#toppic_theme_menu_style'),
contentStyle = $('.content_style'),
menuOpacity = $('.menu_opacity'),
menuColor = $('.menu_color, .menu_links_color');
menuTypeCss.css('display', 'none');
menuTypeCss_2.css('display', 'none');
menuTypeCss_3.css('display', 'none');
selectors.change(function () {
if ($(this).val() == 'ken_b') {
menuTypeCss_3.slideDown();
menuTypeCss_2.slideUp();
menuTypeCss.slideUp();
} else {
menuTypeCss_3.slideUp();
menuTypeCss_2.slideDown();
menuTypeCss.slideUp();
}
});
if (selectors.val() == 'kk_royal') {
menuTypeCss_2.css('display', 'block');
menuTypeCss_3.css('display', 'none');
}
if (selectors.val() == 'ken_b') {
menuTypeCss.css('display', 'none');
menuTypeCss_2.css('display', 'none');
menuTypeCss_3.css('display', 'block');
}
selectors_menu.change(function () {
if ($(this).val() == 'kk-menu-left-boxed') {
contentStyle.slideUp();
menuColor.slideDown();
menuOpacity.slideDown();
$('.is_border').slideUp();
//$('.is_border #toppic_theme_is_border').attr('checked', false);
$(".content_style option[value='kk-boxed']").attr('selected', 'selected');
} else if ($(this).val() == 'kk-menu-slide-right') {
menuColor.slideDown();
contentStyle.slideUp();
menuOpacity.slideUp();
$('.is_border').slideDown();
$(".content_style option[value='kk-full']").attr('selected', 'selected');
} else if ($(this).val() == 'kk-menu-fullscreen') {
contentStyle.slideDown();
menuOpacity.slideDown();
$('.is_border').slideUp();
menuColor.slideDown();
} else if ($(this).val() == 'kk-menu-classic') {
menuColor.slideUp();
menuOpacity.slideUp();
} else {
contentStyle.slideDown();
menuOpacity.slideUp();
menuColor.slideDown();
$('.is_border').slideUp();
}
});
if (selectors_menu.val() == 'kk-menu-slide-right') {
contentStyle.css('display', 'none');
menuOpacity.css('display', 'none');
menuColor.css('display', 'block');
$('.is_border').css('display', 'block');
} else if (selectors_menu.val() == 'kk-menu-left-boxed') {
contentStyle.css('display', 'none');
menuColor.css('display', 'block');
$('.is_border').css('display', 'none');
} else if (selectors_menu.val() == 'kk-menu-classic') {
menuColor.css('display', 'none');
menuOpacity.css('display', 'none');
} else if (selectors_menu.val() == 'kk-menu-fullscreen') {
contentStyle.css('display', 'block');
$('.is_border').css('display', 'none');
menuColor.css('display', 'block');
} else {
contentStyle.css('display', 'block');
menuOpacity.css('display', 'none');
menuColor.css('display', 'block');
$('.is_border').css('display', 'none');
}
});

11
admin/js/jquery.simpleslider.min.js vendored Normal file

File diff suppressed because one or more lines are too long

191
admin/main.php Normal file
View File

@@ -0,0 +1,191 @@
<?php
get_template_part('/admin/options');
load_theme_textdomain( 'toppic', get_template_directory() . '/languages' );
global $toppic_theme;
$toppic_theme = new toppic_theme();
class toppic_theme {
var $title;
var $name;
var $turl;
var $options;
function __construct(){
$this->title = esc_html__( 'Theme Settings','toppic' );
$this->name = get_class( $this );
$this->turl = esc_url( get_template_directory_uri() );
$this->options = $this->get_options();
if(!get_option($this->name)) $this->set_default_options();
add_action( 'admin_menu', array($this, 'action_add_theme_admin'), 1 );
add_action( 'wp_ajax_of_ajax_post_action', array($this, 'ajax_callback' ) );
}
function action_add_theme_admin(){
$page = add_theme_page($this->title, $this->title, "edit_theme_options", $this->name, array($this, "admin_page_main"), 59);
add_action("admin_print_styles-$page", array($this, "admin_styles"));
foreach($this->options as $slug=>$v) if($slug!="main"){
$title=isset($v['title']) ? $v['title'] : $slug;
add_theme_page($this->name, $title, $title, "edit_theme_options", $this->name."_".$slug, array($this, "admin_page_".$slug));
}
}
function add_toolbar_items($admin_bar){
$admin_bar->add_menu( array(
'id' => $this->name,
'parent' => 'site-name',
'title' => $this->title,
'href' => esc_url(admin_url('themes.php?page='.$this->name.'')),
));
}
function admin_page_main(){
$page='main';
require_once get_template_directory() . '/admin/interface.php';
}
function admin_styles(){
wp_enqueue_script('jquery-ui-core');
wp_enqueue_style('kk-admin-style', $this->turl."/admin/css/style.css");
wp_enqueue_style('kk-color-picker', $this->turl."/admin/css/colorpicker.css");
wp_enqueue_style('kk-simple-slider', $this->turl."/admin/css/simple-slider.css");
wp_enqueue_script('kk-theme-js', $this->turl.'/admin/js/jquery.admin.js', false, KKFW_VERSION, false);
wp_enqueue_script('kk-settings', $this->turl.'/admin/js/jquery.settings.js', false, KKFW_VERSION, false);
wp_enqueue_script('kk-jquery-input-mask', $this->turl.'/admin/js/jquery.maskedinput-1.2.2.js', false, KKFW_VERSION, false);
wp_enqueue_script('kk-color-picker', $this->turl.'/admin/js/jquery.colorpicker.js', false, KKFW_VERSION, false);
wp_enqueue_script('kk-ajaxupload', $this->turl.'/admin/js/jquery.ajaxupload.js', false, KKFW_VERSION, false);
wp_enqueue_script('kk-simle-slider', $this->turl.'/admin/js/jquery.simpleslider.min.js', false, KKFW_VERSION, false);
$kk_data = array(
'ajaxurl' => admin_url('admin-ajax.php'),
);
wp_localize_script( 'kk-theme-js', 'kk_ajax_data', $kk_data );
}
function get_options(){
$options=theme_options_array();
foreach($options as $page=>$pdata) if(is_array($pdata))
foreach($pdata as $group=>$gdata) if(is_array($gdata))
foreach($gdata as $section=>$sdata) if(is_array($sdata))
foreach($sdata as $id=>$v) if(is_array($v))
$options[$page][$group][$section][$id]['val']=get_option($this->name."_".$id);
return $options;
}
function set_default_options(){
update_option($this->name, $this->title);
foreach($this->options as $page=>$pdata) if(is_array($pdata))
foreach($pdata as $group=>$gdata) if(is_array($gdata))
foreach($gdata as $section=>$sdata) if(is_array($sdata))
foreach($sdata as $id=>$v) if(is_array($v)) if (isset($v['std']))
update_option( $this->name."_".$id, $v['std'] );
}
function validate_options($opts=null){
if(!isset($opts)) $opts=$this->options;
return $opts;
}
function ajax_callback() {
if( current_user_can( 'edit_theme_options' ) ) {
global $wpdb;
switch($_POST['type']){
case 'upload':
$clickedID = $_POST['data'];
$filename = $_FILES[$clickedID];
$filename['name'] = preg_replace('/[^a-zA-Z0-9._\-]/', '', $filename['name']);
$override['test_form'] = false;
$override['action'] = 'wp_handle_upload';
$uploaded_file = wp_handle_upload($filename,$override);
$upload_tracking[] = $clickedID;
update_option($clickedID, $uploaded_file['url']);
if(!empty($uploaded_file['error'])){
echo 'Upload Error: '.$uploaded_file['error'];
}else{
echo esc_url($uploaded_file['url']);
}
break;
case 'image_reset':
$wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE '".$_POST['data']."'");
break;
case 'reset':
$this->set_default_options();
break;
case 'save':
foreach(wp_parse_args($_POST['data']) as $id=>$v) update_option($id, $v);
break;
}
}
die();
}
}
function siteoptions_uploader_function( $id, $std, $mod ){
$upload = get_option( $id );
if($mod != 'min') {
$val = $std;
if(get_option($id) != "") {
$val=get_option($id);
} ?>
<input class="of-input" name="<?php echo esc_attr($id) ?>" id="<?php echo esc_attr($id) ?>_upload" type="text" value="<?php echo esc_attr($val) ?>" />
<?php } ?>
<div class="upload_button_div"><span class="button image_upload_button" id="<?php echo esc_attr($id) ?>"><?php esc_html_e('Upload Image', 'essu') ?></span>
<?php if(!empty( $upload )) {
$hide = '';
} else {
$hide = 'hide';
} ?>
<span class="button image_reset_button <?php echo esc_attr($hide) ?>" id="reset_<?php echo esc_attr($id) ?>" title="<?php echo esc_attr($id) ?>"><?php esc_html_e('Remove', 'essu') ?></span>
</div>
<div class="clear"></div>
<?php if(!empty($upload)){ ?>
<a class="of-uploaded-image" href="<?php echo esc_url($upload) ?>">
<img class="of-option-image" id="image_<?php echo esc_attr($id)?>" src="<?php echo esc_url($upload) ?>" alt="image" />
</a>
<?php } ?>
<div class="clear"></div>
<?php }

490
admin/options.php Normal file
View File

@@ -0,0 +1,490 @@
<?php
function theme_options_array() {
$options=array(
// MAIN PAGE OPTIONS
"main" => array( "title" => __( "Theme Settings" , "toppic" ),
// GENERAL SECTION
__( "General" , "toppic" ) => array(
array( "options" => array( "title" => __( 'Site Logo ( Dark )' , 'toppic' ), "class" => "section-upload" ),
"logo_main" => array( "name" => __('Site Logo ( Dark )', 'toppic' ),
"type" => "image",
"desc" => __( "This logo will be used if background behind the logo is light. Supported formats: JPG, PNG, GIF" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( 'Retina Site Logo ( Dark )' , 'toppic' ), "class" => "section-upload" ),
"logo_main_retina" => array( "name" => __('Retina Site Logo ( Dark )', 'toppic' ),
"type" => "image",
"desc" => __( "Logo for retina displays" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( 'Site Logo ( Light )' , 'toppic' ), "class" => "section-upload" ),
"logo_main_light" => array( "name" => __('Site Logo ( Light )',"toppic" ),
"type" => "image",
"desc" => __( "This logo will be used if background behind the logo is dark. Supported formats: JPG, PNG, GIF" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( 'Retina Site Logo ( Light )' , 'toppic' ), "class" => "section-upload" ),
"logo_main_light_retina" => array( "name" => __('Site Logo ( Light )',"toppic" ),
"type" => "image",
"desc" => __( "Logo for retina displays" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( 'Admin Logo' , 'toppic' ), "class" => "section-upload" ),
"logo_admin" => array( "name" => __( 'Admin Logo', 'toppic' ),
"type" => "image",
"desc" => __( "Upload a logo (JPG, PNG, GIF) for your Wordpress login screen" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( 'Site Favicon' , 'toppic' ), "class" => "section-upload" ),
"favicon" => array( "name" => __( 'Site Favicon', 'toppic' ),
"type" => "image",
"desc" => __( "Upload a 16x16px image (ICO, JPG, PNG, GIF) that will your website's favicon" , "toppic" ),
"std" => "#",
)
),
array( "options" => array( "title" => __( "Content Protection" , "toppic" ) ),
"content_protection" => array( "name" => __('Enable Content Protection',"toppic" ),
"type" => "onoff",
"desc" => __( "Enable/disable right click protection" , "toppic" ),
"std" => "false",
),
"protection_message" => array( "name" => __(' ',"toppic" ),
"type" => "textarea",
"desc" => __( "This message will be displayed when the user clicks the right button and protection is turned on" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Search button" , "toppic" ) ),
"search_button" => array( "name" => __('Enable Search Button',"toppic" ),
"type" => "onoff",
"desc" => __( "Enable/disable search button" , "toppic" ),
"std" => "true",
),
),
array( "options" => array( "title" => __( "Tracking code" , "toppic" ) ),
"custom_footer" => array( "name" => __('Footer Custom Code',"toppic" ),
"type" => "textarea",
"desc" => __( "Paste your Google Analytics or other tracking code here" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Footer copyrights" , "toppic" ) ),
"copyrights" => array( "name" => __('Paste your copyrights text here',"toppic" ),
"type" => "textarea",
"desc" => __( "Paste your copyrights text here. You may use these HTML tags and attributes" , "toppic" ),
"std" => "&copy; Toppic theme by <a target='_blank' href='http://themeforest.net/user/kotofey?ref=kotofey'>kotofey</a>",
),
),
),
// APPEARANCE
__( "Appearance" , "toppic" ) => array(
array( "options" => array( "title" => __( "Menu" , "toppic" ) ),
"menu_style" => array( "name" => __( "Menu style" , "toppic" ),
"type" => "select",
"options" => array(
"kk-menu-default" => "Default",
"kk-menu-classic" => "Classic",
"kk-menu-default-hidden" => "Default (hidden)",
"kk-menu-left-boxed" => "Left Boxed",
"kk-menu-slide-right" => "Creative",
"kk-menu-fullscreen" => "Fullscreen"
),
"desc" => __( "Select menu style" , "toppic" ),
"std" => "kk-menu-default",
),
"menu_color" => array( "name" => __( "Menu color" , "toppic" ),
"type" => "color",
"desc" => __( "Select menu color. Leave this field blank to use default color" , "toppic" ),
"std" => "",
),
"menu_links_color" => array( "name" => __( "Menu text color" , "toppic" ),
"type" => "color",
"desc" => __( "Select menu text color. Leave this field blank to use default color" , "toppic" ),
"std" => "",
),
"menu_opacity" => array( "name" => __( 'Menu opacity',"toppic" ),
"type" => "rangeslider",
"range" => "0,1",
"step" => "0.01",
"desc" => __( "Set menu opacity. Min - 0, max - 1" , "toppic" ),
"std" => "1",
),
),
array( "options" => array( "title" => __( "Content" , "toppic" ) ),
"content_style" => array( "name" => __( "Content layout" , "toppic" ),
"type" => "select",
"options" => array(
"kk-boxed" => "Boxed",
"kk-full" => "Wide"
),
"desc" => __( "Select the content area style" , "toppic" ),
"std" => "kk-boxed",
),
"is_border" => array( "name" => __( "Enable Borders" , "toppic" ),
"type" => "onoff",
"desc" => __( "Enable Borders" , "toppic" ),
"std" => "false"
),
"con_res" => array( "name" => __( "Enable Responsive layout" , "toppic" ),
"type" => "onoff",
"desc" => __( "Responsive layout" , "toppic" ),
"std" => "true"
),
),
array( "options" => array( "title" => __( "Skin settings" , "toppic" ) ),
"skin_color" => array( "name" => __( "Color scheme" , "toppic" ),
"type" => "select",
"options" => array(
"light" => "Light",
"dark" => "Dark"
),
"desc" => __( "Select predefined color scheme" , "toppic" ),
"std" => "light",
),
"color_scheme" => array( "name" => __('Select a color to be used as accents color.',"toppic" ),
"type" => "color",
"desc" => __( "Select a color to be used as accents color." , "toppic" ),
"std" => ""
),
"color_scheme_links" => array( "name" => __('Select a color for text to be used when the background is highlighted',"toppic" ),
"type" => "color",
"desc" => __( "Select a color for text to be used when the background is highlighted" , "toppic" ),
"std" => "#fff",
),
),
array( "options" => array( "title" => __( "Animation between pages" , "toppic" ) ),
"kk_page_anim" => array( "name" => __('Use animation between pages',"toppic" ),
"type" => "onoff",
"desc" => __( "Animation between pages" , "toppic" ),
"std" => "true"
),
),
array( "options" => array( "title" => __( "Custom CSS" , "toppic" ) ),
"custom_css" => array( "name" => __('Add some CSS to your theme by adding it to this area.',"toppic" ),
"type" => "textarea",
"desc" => __( "Add some CSS to your theme by adding it to this area." , "toppic" ),
"std" => "",
),
),
),
// FULLSCREEN BACKGROUND
__('Background Slider',"toppic" ) => array(
array( "options" => array( "title" => __( "Slider Type" , "toppic" ) ),
"fullscreen_stream" => array( "name" => __('Source images',"toppic" ),
"type" => "select",
"options" => array(
"kk_royal" => "Royal Slider",
"ken_b" => "KenB Slider"
),
"desc" => __( "Select source for background images" , "toppic" ),
"std" => "kk_royal",
),
),
array( "options" => array( "title" => __( "Slideshow Settings" , "toppic" ) ),
"fullscreen_effect" => array( "name" => __('Slideshow Settings',"toppic" ),
"type" => "select",
"options" => array(
"fade" => "Fade",
"move" => "Move"
),
"desc" => __( "Animation Effect" , "toppic" ),
"std" => "fade",
),
"fullscreen_transition" => array( "name" => __('Transition Speed (ms)',"toppic" ),
"type" => "rangeslider",
"range" => "100,2000",
"step" => "25",
"desc" => __( "Transition Speed (ms)" , "toppic" ),
"std" => "900",
),
"fullscreen_delay" => array( "name" => __('Length between transitions (ms)',"toppic" ),
"type" => "rangeslider",
"range" => "100,10000",
"step" => "100",
"desc" => __( "Length between transitions (ms)" , "toppic" ),
"std" => "4000",
),
),
array( "options" => array( "title" => __( "Slideshow Settings" , "toppic" ) ),
"ken_b_transition" => array( "name" => __('Transition Speed (ms)',"toppic" ),
"type" => "rangeslider",
"range" => "100,2000",
"step" => "25",
"desc" => __( "Transition Speed (ms)" , "toppic" ),
"std" => "1000",
),
"ken_b_delay" => array( "name" => __('Length between transitions (ms)',"toppic" ),
"type" => "rangeslider",
"range" => "100,20000",
"step" => "100",
"desc" => __( "Length between transitions (ms)" , "toppic" ),
"std" => "5000",
),
"ken_b_frames" => array( "name" => __('Frames Per Second',"toppic" ),
"type" => "rangeslider",
"range" => "15,60",
"step" => "1",
"desc" => __( "Frames Per Second" , "toppic" ),
"std" => "30",
),
"ken_b_zoom" => array( "name" => __('Zoom',"toppic" ),
"type" => "rangeslider",
"range" => "1,3",
"step" => "0.1",
"desc" => __( "Zoom (Use a point if you're using decimal numbers (i.e 2<strong>.</strong>5 not 2<strong>,</strong>5) )" , "toppic" ),
"std" => "1.2",
),
),
array( "options" => array( "title" => __( "Other settings" , "toppic" ) ),
"fullscreen_start_slide" => array( "name" => __('Randomize Slides',"toppic" ),
"type" => "onoff",
"desc" => __( "Randomizes all slides at start" , "toppic" ),
"std" => "false",
),
),
),
// BACKGROUND IMAGE
__( "Background image" , "toppic" ) => array(
array( "options" => array( "title" => __( "Default background image" , "toppic" ), "class" => "section-upload" ),
"default_background_image" => array( "name" => __('Image',"toppic" ),
"type" => "image",
"desc" => __( "Use this option only if you don't use a slideshow on the site. This image will set up as default background for all pages." , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Default background repeat" , "toppic" ) ),
"default_background_repeat" => array( "name" => __('Default background repeat',"toppic" ),
"type" => "select",
"options" => array(
"repeat" => "Repeat",
"no-repeat" => "No Repeat",
"repeat-x" => "Repeat Horizontally",
"repeat-y" => "Repeat Vertically"
),
"desc" => " ",
"std" => "no-repeat",
),
),
array( "options" => array( "title" => __( "Default background position" , "toppic" ) ),
"default_background_position" => array( "name" => __('Default background position',"toppic" ),
"type" => "select",
"options" => array(
"top left" => "Top Left",
"top center" => "Top Center",
"right top" => "Top Right",
"center center" => "Center"
),
"desc" => " ",
"std" => "top left",
),
),
array( "options" => array( "title" => __( "Default background size" , "toppic" ) ),
"default_background_size" => array( "name" => __('Default background size',"toppic" ),
"type" => "select",
"options" => array(
"full" => "Full Screen",
"original" => "Original"
),
"desc" => " ",
"std" => "top left",
),
),
),
// BLOG
__( "Blog" , "toppic" ) => array(
array( "options" => array( "title" => __( "Sidebar position" , "toppic" ) ),
"blog_sidebar" => array( "name" => __( "Select the position of the sidebar" , "toppic" ),
"type" => "select",
"options" => array(
"right" => "Right position",
"left" => "Left position",
"full" => "No sidebar"
),
"desc" => " ",
"std" => "right",
),
),
array( "options" => array( "title" => __( "Sidebar position (single post)" , "toppic" ) ),
"blog_sidebar_single" => array( "name" => __( "Select the position of the sidebar" , "toppic" ),
"type" => "select",
"options" => array(
"right" => "Right position",
"left" => "Left position",
"full" => "No sidebar"
),
"desc" => " ",
"std" => "right",
),
),
),
// Full Screen Gallery
__( "Full Screen Gallery" , "toppic" ) => array(
array( "options" => array( "title" => __( "Animation Effects" , "toppic" ) ),
"gallery_fullscreen_effect" => array( "name" => __('Default Animation Effect',"toppic" ),
"type" => "select",
"options" => array(
"fade" => "Fade",
"move" => "Move"
),
"desc" => __( "Default Animation Effect" , "toppic" ),
"std" => "move",
),
"gallery_fullscreen_transition" => array( "name" => __('Transition Speed (ms)',"toppic" ),
"type" => "rangeslider",
"range" => "100,2000",
"step" => "25",
"desc" => __( "Transition Speed (ms)" , "toppic" ),
"std" => "800",
),
"gallery_fullscreen_delay" => array( "name" => __('Length between transitions (ms)',"toppic" ),
"type" => "rangeslider",
"range" => "100,10000",
"step" => "100",
"desc" => __( "Length between transitions (ms)" , "toppic" ),
"std" => "4000",
),
),
array( "options" => array( "title" => __( "Other Settings" , "toppic" ) ),
"gallery_fullscreen_autoplay" => array( "name" => __('Autoplay','toppic'),
"type" => "onoff",
"std" => "true",
"desc" => __( "Enable autoplay or not" , "toppic" ),
),
"gallery_fullscreen_loop" => array( "name" => __('Loop','toppic'),
"type" => "onoff",
"std" => "true",
"desc" => __( "Makes slider to go from last slide to first" , "toppic" ),
),
),
),
// BACKGROUND IMAGE
__( "404 Error Page" , "toppic" ) => array(
array( "options" => array( "title" => __( "Background image" , "toppic" ), "class" => "section-upload" ),
"404_image" => array( "name" => __('Image',"toppic" ),
"type" => "image",
"desc" => __( "Background image for 404 page" , "toppic" ),
"std" => "",
),
),
),
// SOCIAL SECTION
__( "Social" , "toppic" ) => array(
array( "options" => array( "title" => __( "Facebook" , "toppic" ) ),
"social_facebook" => array( "name" => __('Enter the link to your facebook account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your Facebook account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Twitter" , "toppic" ) ),
"social_ftwitter" => array( "name" => __('Enter the link to your twitter account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your Twitter account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Google Plus" , "toppic" ) ),
"social_google" => array( "name" => __('Enter the link to your Google plus account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your google plus account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Pinterest" , "toppic" ) ),
"social_pinterest" => array( "name" => __('Enter the link to your Pinterest account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your Pinterest account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Instagram" , "toppic" ) ),
"social_instagram" => array( "name" => __('Enter the link to your Instagram account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your Instagram account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Soundcloud" , "toppic" ) ),
"social_soundcloud" => array( "name" => __('Enter the link to your Soundcloud account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your Soundcloud plus account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Youtube" , "toppic" ) ),
"social_youtube" => array( "name" => __('Enter the link to your Youtube account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your youtube account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Flickr" , "toppic" ) ),
"social_flickr" => array( "name" => __('Enter the link to your flickr account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your Flickr account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Skype" , "toppic" ) ),
"social_skype" => array( "name" => __('Enter your Skype name or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter your skype name or leave this field blank. I.e: skype:skypename" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Vimeo" , "toppic" ) ),
"social_vimeo" => array( "name" => __('Enter the link to your Vimeo account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your vimeo account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Linkedin" , "toppic" ) ),
"social_linkedin" => array( "name" => __('Enter the link to your Linkedin account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your linkedin account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "Tumblr" , "toppic" ) ),
"social_tumblr" => array( "name" => __('Enter the link to your Tumblr account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your Tumblr account or leave this field blank" , "toppic" ),
"std" => "",
),
),
array( "options" => array( "title" => __( "500px" , "toppic" ) ),
"social_fivehundredpx" => array( "name" => __('Enter the link to your 500px account or leave this field blank',"toppic" ),
"type" => "text",
"desc" => __( "Enter the link to your 500px account or leave this field blank" , "toppic" ),
"std" => "",
),
),
),
), // END MAIN PAGE
);
return $options;
}

96
archive.php Normal file
View File

@@ -0,0 +1,96 @@
<?php global $paged;
if(empty($paged)) $paged = 1;
?>
<?php get_header()?>
<?php
if(get_option('toppic_theme_blog_sidebar') == 'left') {
$position = 'left';
$content_position = 'right';
} else if (get_option('toppic_theme_blog_sidebar') == 'right') {
$position = 'right';
$content_position = 'left';
} else {
$position = 'full';
$content_position = 'none';
}
$kk_parallax = kk_parallax();
$title_type = $kk_parallax[0];
$bg_title_img = $kk_parallax[1];
?>
<!-- start content wrapper -->
<div class="content clearfix">
<?php if( $title_type == 'parallax' ) { ?>
<div id="kk-parallax-wrapper" class="kk-parallax-wrapper">
<div id="kk-parallax-bg" class="kk-parallax-bg kk-hidden">
<img id="kk-img-check" src="<?php echo esc_url( $bg_title_img ) ?>" alt="<?php echo esc_attr( $kk_parallax[2] ) ?>" />
</div>
<div id="kk-parallax-title-wrapper" class="kk-parallax-title-wrapper">
<div id="kk-parallax-title" class="page-title">
<?php the_archive_title('<h1>','</h1>') ?>
</div>
</div>
<a id="kk-down" class="kk-down is-loading" href="#kk-to-me"></a>
</div>
<?php } ?>
<div class="content-inner-wrapper clearfix">
<span id="kk-to-me"></span>
<?php if( $title_type == 'default' ) { ?>
<div class="page-title">
<?php the_archive_title('<h1>','</h1>') ?>
</div>
<div class="divider clear"></div>
<?php } ?>
<div class="inner-content" id="<?php echo esc_attr($content_position) ?>">
<!--start loop -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$format = get_post_format();
if( false === $format ) {
$format = 'standard';
}
get_template_part( 'formats/blog-classic/' . $format );
?>
<?php endwhile;endif; ?>
<!--end loop -->
<?php page_pagination(); ?>
</div>
<!-- start widgets -->
<?php if (get_option('toppic_theme_blog_sidebar') != 'full') {
if(is_active_sidebar("kk-blog-sidebar")) { ?>
<div class="sidebar" id="<?php echo esc_url($position) ?>">
<?php dynamic_sidebar("kk-blog-sidebar")?>
</div>
<?php }
} ?>
<!-- end widgets -->
</div>
<?php get_template_part('extends/footer-area') ?>
</div>
<!-- end content wrapper -->
<?php get_footer()?>

73
changelog.txt Normal file
View File

@@ -0,0 +1,73 @@
---- ver. 2.7 ----
* Added adaptive images support
---- ver. 2.6.1 ----
* Fixed issue were user wasn't able to set parallax header (issues has come with update 2.6)
---- ver. 2.6 ----
* WP 5.0 support.
* New UI for page/post settings.
* VisualComposer and other plugins was updated.
* Minor performance improvements.
* Fixed some CSS issues while using child-theme (child-theme updated)
---- ver. 2.5 ----
* Fixed responsive design while using classic menu with boxed layout
---- ver. 2.4 ----
* Improved child-theme support (now you can change ANY file by simple copying it into the child-theme's folder)
* VisualComposer updated to the latest version.
---- ver. 2.3 ----
* Fixed issue where sometimes if you click on the filter browser jumps to the top of the page
---- ver. 2.2 ----
* Added ability to change URLs structure for projects and galleries (new option can be found in the Settings -> Permalinks)
* All plugins updated to the latest versions to ensure WP 4.9 support
---- ver. 2.1 ----
* Fixed issue where sometimes the logo size was incorrect
* Fixed issue where selected filter categories doesn't display in the admin panel.
* VisualComposer updated to ver. 5.4.2
---- ver. 2.0 ----
* New style for 404 page
* New style for password protected page
* Captions support for slides in fullscreen galleries
* Added comments in galleries
* Added photo profing galleries
* CSS improvements
* Added swipe gestures for lightbox
* Added ability to autostart slider in portfolio project
* Mosaic gallery deprecated
* Added masonry galleries
* Added dark skin
---- ver. 1.9 ----
* New menu style (classic)
---- ver. 1.8.1 ----
* Fixed 'double-logo' issue while using Fullscreen or Creative menu type.
---- ver. 1.8 ----
* VisualComposer updated to ver 5.1.1
* Backend UI improvements (image editing)
* Lightbox animation improvement
* Minor CSS improvements
* Fixed issue with retina logo (on some PCs the option was unavailable).
* One Click Demo Import was added

62
comments.php Normal file
View File

@@ -0,0 +1,62 @@
<?php
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
return;
}
?>
<?php if ( comments_open() ) : ?>
<!-- If comments are open, but there are no comments. -->
<div id="comments-wrapper">
<div class="comments-content" id="comments">
<?php if ( have_comments() ) : ?>
<h3><?php comments_number(__('No Comments', 'toppic'), __('1 Comment', 'toppic'), __('% Comments', 'toppic'));?> </h3>
<ol class="commentlist">
<?php kk_comment_nav(); ?>
<?php wp_list_comments('type=comment&avatar_size=60&callback=toppic_comment'); ?>
<?php kk_comment_nav(); ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<div class="wrapper" id="form-main">
<?php
$fields = array(
'author' => '<ul><li><input type="text" placeholder="Name *" name="author" size="22" tabindex="1" aria-required="true" class="input-name" /></li>',
'email' => '<li><input type="text" placeholder="E-mail *" name="email" size="22" tabindex="2" aria-required="true" class="input-email" /></li>',
'url' => '<li><input type="text" placeholder="Website" name="url" size="22" tabindex="3" class="input-website" /></li></ul>',
);
$args = array(
'fields' => apply_filters( 'comment_form_default_fields', $fields ),
'comment_field' => '<textarea name="comment" id="comment" cols="39" rows="4" tabindex="4" class="textarea-comment"></textarea>',
'comment_notes_before' => '',
'comment_notes_after' => '',
'label_submit' => __( 'Submit Comment','toppic' )
);
comment_form($args); ?>
</div>
</div>
</div>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<?php endif; ?>
<?php endif; // if you delete this the sky will fall on your head ?>

540
css/_animation.scss Normal file
View File

@@ -0,0 +1,540 @@
/*-- FadeIn animation --*/
.kk_fadeIn {
animation: kk_fadeIn 1s;
-webkit-animation: kk_fadeIn 1s;
-moz-animation: kk_fadeIn 1s;
-ms-animation: kk_fadeIn 1s;
}
@keyframes kk_fadeIn {
0% {
transform: scale3d(0,0,0);
}
50% {
transform: scale3d(1,1,1);
}
}
@-ms-keyframes kk_fadeIn {
0% {
-ms-transform: scale3d(0,0,0);
}
50% {
-ms-transform: scale3d(1,1,1);
}
}
@-webkit-keyframes kk_fadeIn {
0% {
-webkit-transform: scale3d(0,0,0);
}
50% {
-webkit-transform: scale3d(1,1,1);
}
}
/* -- Heart animation --*/
.likeThis:hover > i{
animation: kk_heart linear 0.2s;
animation-iteration-count: 1;
-webkit-animation: kk_heart linear 0.2s;
-moz-animation: kk_heart linear 0.2s;
-webkit-animation-iteration-count: 1;
-moz-animation-iteration-count: 1;
-ms-animation: kk_heart linear 0.2s;
-ms-animation-iteration-count: 1;
}
#grid .likeThis:hover > i, .single-post .likeThis:hover > i {
animation: none;
-webkit-animation: none;
-ms-animation: none;
-moz-animation: none;
}
@keyframes kk_heart{
0% {
transform: scaleX(1) ;
}
50% {
transform: scaleX(1.15) ;
}
100% {
transform: scaleX(1) ;
}
}
@-webkit-keyframes kk_heart {
0% {
-webkit-transform: scale(1);
}
50% {
-webkit-transform: scale(1.15) ;
}
100% {
-webkit-transform: scale(1) ;
}
}
@-moz-keyframes kk_heart {
0% {
-moz-transform: scale(1);
}
50% {
-moz-transform: scale(1.15) ;
}
100% {
-moz-transform: scale(1) ;
}
}
@-ms-keyframes kk_heart {
0% {
-ms-transform: scale(1) ;
}
50% {
-ms-transform: scale(1.15) ;
}
100% {
-ms-transform: scale(1) ;
}
}
/*--- Button ---*/
.kk-menu-trigger {
position: relative;
display: block;
margin-left: 0;
padding: 5px;
cursor: pointer;
-webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s ease;
transition: opacity 0.4s ease, transform 0.4s ease;
}
.kk-menu-trigger span {
position: relative;
margin-top: 9px;
margin-bottom: 9px;
}
.kk-menu-trigger span,
.kk-menu-trigger span:before,
.kk-menu-trigger span:after {
display: block;
width: 26px;
height: 3px;
background-color: #444;
-webkit-transition-property: background-color, -webkit-transform;
transition-property: background-color, transform;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
border-radius: 1px;
}
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span,
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span:before,
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span:after {
width: 20px;
}
.kk-menu-open .kk-menu-trigger span:before,
.kk-menu-open .kk-menu-trigger span:after {
background-color: #fff;
}
.kk-menu-trigger span:before, .kk-menu-trigger span:after {
position: absolute;
content: "";
}
.kk-menu-trigger span:before {
top: -8px;
}
.kk-menu-trigger span:after {
top: 8px;
}
.kk-menu-open .kk-menu-trigger span {
background-color: transparent!important;
}
.kk-menu-open .kk-menu-trigger span:before {
-webkit-transform: translate3d(0, 8px, 0) rotate(45deg);
-ms-transform: translate(0, 8px) rotate(45deg);
transform: translate3d(0, 8px, 0) rotate(45deg);
}
.kk-menu-open .kk-menu-trigger span:after {
-webkit-transform: translate3d(0, -8px, 0) rotate(-225deg);
-ms-transform: translate(0, -8px) rotate(-225deg);
transform: translate3d(0, -8px, 0) rotate(-225deg);
}
/*--- Menu effects ---*/
.kk-content-boxed.kk_menu_default_hidden.kk-menu-open .content {
margin: 0;
-webkit-transform: translate3d(300px, 0, 0);
-ms-transform: translate(300px, 0);
transform: translate3d(300px, 0, 0);
}
@media screen and (max-width: 1690px) {
.kk-content-fullwidth.kk_menu_default_hidden.kk-menu-open .content {
margin: 0;
-webkit-transform: translate3d(200px, 0, 0);
-webkit-transform: translate(200px, 0);
transform: translate3d(200px, 0, 0);
}
}
@media screen and (max-width: 1290px) {
.kk-content-fullwidth.kk_menu_default_hidden.kk-menu-open .content {
margin: 0;
-webkit-transform: translate3d(240px, 0, 0);
-ms-transform: translate(240px, 0);
transform: translate3d(240px, 0, 0);
}
}
.kk_menu_default_hidden .menu-wrapper {
-webkit-transform: translate3d(-80%, 0, 0);
-ms-transform: translate(-80%, 0);
transform: translate3d(-80%, 0, 0);
}
.kk_menu_default_hidden.kk-menu-open .menu-wrapper {
visibility: visible;
-webkit-transition: -webkit-transform 0.5s;
transition: transform 0.5s;
-webkit-transform: translate3d(0, 0, 0);
-ms-transform: translate(0, 0);
transform: translate3d(0, 0, 0);
}
.kk_menu_default_hidden.kk-menu-open .menu-helper {
-webkit-transform: translate3d(-100%, 0, 0);
-ms-transform: translate(-100%, 0);
transform: translate3d(-100%, 0, 0);
}
.kk_menu_slide_right .royalSlider_fullscreen,
.kk_menu_slide_right .video-bg,
.kk_menu_slide_right #kenburns {
-webkit-transition: -webkit-transform 0.6s ease;
transition: transform 0.6s ease;
-webkit-transform: translate3d(0, 0, 0);
-ms-transform: translate(0, 0);
transform: translate3d(0, 0, 0);
}
.kk_menu_slide_right.kk-menu-open .royalSlider_fullscreen,
.kk_menu_slide_right.kk-menu-open .video-bg,
.kk_menu_slide_right.kk-menu-open #kenburns {
-webkit-transform: translate3d(-50%, 0, 0);
-ms-transform: translate(-50%, 0);
transform: translate3d(-50%, 0, 0);
}
.kk_menu_slide_right.kk-content-fullwidth.kk-menu-open .content {
-webkit-transform: translateX(-49.97%);
-ms-transform: translate(-49.97%, 0);
transform: translateX(-49.97%);
}
.kk_menu_slide_right .main-nav {
-webkit-transition: -webkit-transform 0.7s;
transition: transform 0.7s;
-webkit-transform: translate3d(20%, -50%, 0);
-ms-transform: translate(20%, -50%);
transform: translate3d(20%, -50%, 0);
}
.kk_menu_slide_right.kk-menu-open .main-nav {
-webkit-transform: translate3d(0, -50%, 0);
-ms-transform: translate(0, -50%);
transform: translate3d(0, -50%, 0);
}
.kk_menu_slide_right .main-nav .dl-menu {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.kk_menu_slide_right .main-nav .dl-menu.dl-menuopen, .kk_menu_fullscreen .main-nav .dl-menu.dl-menuopen {
pointer-events: auto;
margin: 0;
}
.kk_menu_slide_right .main-nav li .sub-menu, .kk_menu_fullscreen .main-nav li .sub-menu {
display: none;
}
.dl-menu.dl-subview li,
.dl-menu.dl-subview li.dl-subviewopen > a,
.dl-menu.dl-subview li.dl-subview > a {
display: none;
}
.dl-menu.dl-subview li.dl-subview,
.dl-menu.dl-subview li.dl-subview .sub-menu,
.dl-menu.dl-subview li.dl-subviewopen,
.dl-menu.dl-subview li.dl-subviewopen > .sub-menu {
display: block;
}
.dl-menu.dl-subview li.dl-subviewopen > .sub-menu > li {
display: inline-block;
}
.kk_menu_slide_right.kk-menu-open .menu.dl-menu.dl-animate-out-1, .kk_menu_fullscreen.kk-menu-open .menu.dl-menu.dl-animate-out-1 {
-webkit-animation: MenuAnimOut1 0.4s;
-ms-animation: MenuAnimOut1 0.4s;
animation: MenuAnimOut1 0.4s;
}
@-webkit-keyframes MenuAnimOut1 {
0% {
-webkit-transform: translate3d(0, 0, 0);
opacity: 1;
}
100% {
-webkit-transform: translate3d(-20%, 0, 0);
opacity: 0;
}
}
@-ms-keyframes MenuAnimOut1 {
0% {
-ms-transform: translate(0, 0);
opacity: 1;
}
100% {
-ms-transform: translate(-20%, 0);
opacity: 0;
}
}
@keyframes MenuAnimOut1 {
0% {
transform: translate3d(0, 0, 0);
opacity: 1;
}
100% {
transform: translate3d(-20%, 0, 0);
opacity: 0;
}
}
.kk_menu_slide_right.kk-menu-open .menu.dl-menu.dl-animate-in-1, .kk_menu_fullscreen.kk-menu-open .menu.dl-menu.dl-animate-in-1 {
-webkit-animation: MenuAnimIn1 0.4s ease;
-ms-animation: MenuAnimIn1 0.4s ease;
animation: MenuAnimIn1 0.4s ease;
}
@-webkit-keyframes MenuAnimIn1 {
0% {
opacity: 0;
-webkit-transform: translate3d(-20%, 0, 0);
}
100% {
-webkit-transform: translate3d(0, 0, 0);
opacity: 1;
}
}
@-ms-keyframes MenuAnimIn1 {
0% {
opacity: 0;
-ms-transform: translate(-20%, 0);
}
100% {
-ms-transform: translate(0, 0);
opacity: 1;
}
}
@keyframes MenuAnimIn1 {
0% {
transform: translate3d(-20%, 0, 0);
opacity: 0;
}
100% {
transform: translate3d(0, 0, 0);
opacity: 1;
}
}
.kk_menu_slide_right.kk-menu-open .main-nav > .sub-menu.dl-animate-in-1, .kk_menu_fullscreen.kk-menu-open .main-nav > .sub-menu.dl-animate-in-1 {
-webkit-animation: SubMenuAnimIn1 0.4s ease;
-ms-animation: SubMenuAnimIn1 0.4s ease;
animation: SubMenuAnimIn1 0.4s ease;
}
@-webkit-keyframes SubMenuAnimIn1 {
0% {
-webkit-transform: translate3d(30%, -50%, 0);
opacity: 0;
}
100% {
-webkit-transform: translate3d(0, -50%, 0);
opacity: 1;
}
}
@-ms-keyframes SubMenuAnimIn1 {
0% {
-ms-transform: translate(30%, -50%);
opacity: 0;
}
100% {
-ms-transform: translate(0, -50%);
opacity: 1;
}
}
@keyframes SubMenuAnimIn1 {
0% {
transform: translate3d(30%, -50%, 0);
opacity: 0;
}
100% {
transform: translate3d(0, -50%, 0);
opacity: 1;
}
}
.kk_menu_slide_right.kk-menu-open .main-nav > .sub-menu.dl-animate-out-1, .kk_menu_fullscreen.kk-menu-open .main-nav > .sub-menu.dl-animate-out-1 {
-webkit-animation: SubMenuAnimOut1 0.4s cubic-bezier(0.49, 0.06, 0.66, 0.68);
-ms-animation: SubMenuAnimOut1 0.4s cubic-bezier(0.49, 0.06, 0.66, 0.68);
animation: SubMenuAnimOut1 0.4s cubic-bezier(0.49, 0.06, 0.66, 0.68);
}
@-webkit-keyframes SubMenuAnimOut1 {
0% {
-webkit-transform: translate3d(0, -50%, 0);
opacity: 1;
}
100% {
-webkit-transform: translate3d(30%, -50%, 0);
opacity: 0;
}
}
@-ms-keyframes SubMenuAnimOut1 {
0% {
-ms-transform: translate(0, -50%);
opacity: 1;
}
100% {
-ms-transform: translate(30%, -50%);
opacity: 0;
}
}
@keyframes SubMenuAnimOut1 {
0% {
transform: translate3d(0, -50%, 0);
opacity: 1;
}
100% {
transform: translate3d(30%, -50%, 0);
opacity: 0;
}
}
.kk_menu_slide_right.kk-menu-open .main-nav .menu-item-has-children>a:hover:after, .kk_menu_fullscreen.kk-menu-open .main-nav .menu-item-has-children>a:hover:after {
-webkit-animation: arrAnim 0.7s linear infinite;
-ms-animation: arrAnim 0.7s linear infinite;
animation: arrAnim 0.7s linear infinite;
}
@-webkit-keyframes arrAnim {
0% {
-webkit-transform: translate3d(0, 0, 0);
}
50% {
-webkit-transform: translate3d(8px, 0, 0);
}
100% {
-webkit-transform: translate3d(0, 0, 0);
}
}
@-ms-keyframes arrAnim {
0% {
-ms-transform: translate(0, 0);
}
50% {
-ms-transform: translate(8px, 0);
}
100% {
-ms-transform: translate(0, 0);
}
}
@keyframes arrAnim {
0% {
transform: translate3d(0, 0, 0);
}
50% {
transform: translate3d(8px, 0, 0);
}
100% {
transform: translate3d(0, 0, 0);
}
}
.kk_menu_slide_right.kk-menu-open .main-nav .sub-menu .dl-back>a:hover:before, .kk_menu_fullscreen.kk-menu-open .main-nav .sub-menu .dl-back>a:hover:before {
-webkit-animation: arrAnimb 0.7s linear infinite;
-ms-animation: arrAnimb 0.7s linear infinite;
animation: arrAnimb 0.7s linear infinite;
}
@-webkit-keyframes arrAnimb {
0% {
-webkit-transform: translate3d(0, 0, 0);
}
50% {
-webkit-transform: translate3d(-8px, 0, 0);
}
100% {
-webkit-transform: translate3d(0, 0, 0);
}
}
@-ms-keyframes arrAnimb {
0% {
-ms-transform: translate(0, 0);
}
50% {
-ms-transform: translate(-8px, 0);
}
100% {
-ms-transform: translate(0, 0);
}
}
@keyframes arrAnimb {
0% {
transform: translate3d(0, 0, 0);
}
50% {
transform: translate3d(-8px, 0, 0);
}
100% {
transform: translate3d(0, 0, 0);
}
}

0
css/dark-light-style.css Normal file
View File

269
css/default.css Normal file
View File

@@ -0,0 +1,269 @@
/* Alignment */
.alignleft {
display: inline;
float: left;
margin-right: 1.625em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.625em;
}
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
sup, sub {
font-size: 10px;
height: 0;
line-height: 1;
position: relative;
vertical-align: baseline;
}
sup {
bottom: 1ex;
}
sub {
top: .5ex;
}
blockquote {
font-weight: 600;
text-transform: uppercase;
margin: 0 25px 20px 25px;
border-left: 2px solid #888;
background-color: #f7f7f7;
padding: 15px 20px;
font-size: 14px;
}
blockquote cite, blockquote em, blockquote i {
font-style: normal;
}
blockquote p {
padding: 0;
}
pre {
background: #f4f4f4;
font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
line-height: 1.5;
margin-bottom: 1.625em;
overflow: auto;
padding: 0.75em 1.625em;
margin: 0 40px;
}
code, kbd {
font: 13px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
.gallery-wrapper ul, .portfolio-wrapper ul, .filter ul, .gallery-magic ul {
margin: 0;
list-style:none;
}
ul, ol {
margin: 0 0 1.625em 2.5em;
}
.sidebar ul, .sidebar ol {
list-style: none!important;
margin: 0!important;
}
ul {
list-style: disc;
}
.sendError {
list-style: none!important;
margin:0 0 20px 0!important;
}
.page-content ol, .post-entry ol , .container ol, .portfolio-entry ol {
list-style-type: decimal;
}
.page-content ol ol, .post-entry ol ol {
list-style: upper-alpha;
}
.page-content ol ol ol, .post-entry ol ol ol {
list-style: lower-roman;
}
.page-content ol ol ol ol, .post-entry ol ol ol ol {
list-style: lower-alpha;
}
.page-content ul ul, .post-entry ul ul, .post-entry ol ol, .page-content ol ol, .page-content ul ol, .post-entry ul ol, .page-content ol ul, .post-entry ol ul {
margin-bottom: 0;
}
.sticky {
}
.gallery-caption {
}
.bypostauthor {
}
.wp-caption p.wp-caption-text {
color: #888;
font-size: 13px;
margin: 5px;
padding:0;
text-align: center;
}
/* Calendar Widget */
.widget_calendar {
font-family: Arial, Helvetica, sans-serif;
}
.widget_calendar #wp-calendar {
color: #555;
width: 95%;
text-align: center;
}
.widget_calendar #wp-calendar caption,
.widget_calendar #wp-calendar td,
.widget_calendar #wp-calendar th {
text-align: center;
}
.widget_calendar #wp-calendar caption {
font-size: 12px;
font-weight: 700;
padding: 5px 0 8px;
text-transform: uppercase;
}
.widget_calendar #wp-calendar th {
background: #f4f4f4;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
font-weight: bold;
}
.widget_calendar #wp-calendar th {
background: none repeat scroll 0 0 #F4F4F4;
border-bottom: 1px solid #CCCCCC;
border-top: 1px solid #CCCCCC;
font-weight: bold;
}
/* Visual Composer styles */
.kk_vc .wpb_content_element.wpb_tabs .wpb_tour_tabs_wrapper .wpb_tab {
background-color: transparent;
}
.kk_vc .wpb_content_element .wpb_tour_tabs_wrapper .wpb_tabs_nav a,
.kk_vc .wpb_content_element .wpb_accordion_header a,
.kk_vc .vc_toggle_title > h4,
.kk_vc .vc_tta.vc_general .vc_tta-panel-title {
font-weight: 600;
font-size: 14px;
}
.kk_vc .wpb_content_element .wpb_tour_tabs_wrapper .wpb_tabs_nav a:hover,
.kk_vc .wpb_content_element .wpb_accordion_header a:hover {
color: #444;
}
.kk_vc .wpb_tabs_nav li.ui-tabs-active,
.kk_vc .wpb_tabs_nav li:hover {
background-color: transparent;
border-top: 2px solid #dba425;
}
.kk_vc .wpb_content_element .wpb_tabs_nav li,
.kk_vc .vc_tta-panel .vc_tta-panel-heading a {
border-top: 2px solid transparent;
-ms-transition: all 0.1s linear;
-webkit-transition: all 0.1s linear;
transition: all 0.1s linear;
}
.kk_vc .wpb_content_element .wpb_tour_tabs_wrapper .wpb_tab,
.kk_vc .wpb_content_element .wpb_accordion_wrapper .wpb_accordion_content {
padding: 1em 0;
}
.kk_vc .wpb_tour .wpb_tour_tabs_wrapper .wpb_tab {
padding: 0 0 0 21.73913043px;
}
.kk_vc .wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header a,
.kk_vc .vc_tta.vc_general .vc_tta-panel.vc_active a {
border-left: 2px solid transparent;
}
.kk_vc .wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header.ui-state-active a,
.kk_vc .vc_tta.vc_general .vc_tta-panel.vc_active a {
border-color: #dba425;
}
.kk_vc .vc_progress_bar .vc_single_bar .vc_label {
font-weight: 600;
font-size: 14px;
}
.kk_vc .vc_pie_chart_back {
opacity: 0.1;
border: 26px solid #f7f7f7;
}
.kk_vc .vc_tta-panel .vc_tta-panel-heading {
}
.kk_vc .wpb_pie_chart_heading {
margin: 25px 0 0 0;
font-weight: 600;
}
.kk_vc .vc_label_units {
position: absolute;
right: 0;
}
.kk_vc small.vc_label {
top: -25px;
padding: 0!important;
}
.kk_vc .vc_progress_bar .vc_single_bar {
height: 15px;
margin-bottom: 40px;
}
.kk_vc .vc_progress_bar {
top: 25px;
position: relative;
}
.kk_vc span.vc_pie_chart_value {
}
.kk_vc .vc_separator h4 {
font-weight: 600;
font-size: 20px;
}

BIN
css/font/fontello.eot Normal file

Binary file not shown.

98
css/font/fontello.svg Normal file
View File

@@ -0,0 +1,98 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Copyright (C) 2016 by original authors @ fontello.com</metadata>
<defs>
<font id="fontello" horiz-adv-x="1000" >
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
<missing-glyph horiz-adv-x="1000" />
<glyph glyph-name="gplus" unicode="&#xe800;" d="M410 406q0-20 18-40t43-37 51-41 43-59 18-79q0-50-27-96-40-68-118-101t-166-32q-74 0-138 24t-95 76q-21 34-21 73 0 46 25 84t66 64q73 46 225 56-18 24-26 41t-9 41q0 20 12 48-26-3-38-3-83 0-139 54t-57 137q0 45 20 88t55 73q43 37 102 55t122 18h233l-77-49h-73q41-35 62-74t21-90q0-40-13-72t-33-52-39-36-33-34-14-37z m-81 53q21 0 43 10t37 24q30 32 30 89 0 32-10 69t-27 73-47 57-65 23q-24 0-46-11t-37-29q-26-33-26-89 0-26 5-55t18-57 29-52 42-37 54-15z m1-487q32 0 62 7t55 22 41 41 15 61q0 14-4 27t-8 24-15 23-16 19-22 20-20 16-23 16-21 15q-8 1-26 1-30 0-59-4t-60-14-54-25-38-42-15-59q0-39 19-69t51-46 67-25 71-8z m452 489h119v-60h-119v-122h-59v122h-118v60h118v121h59v-121z" horiz-adv-x="928.6" />
<glyph glyph-name="down" unicode="&#xe801;" d="M427 125q4-10-3-19l-195-215q-6-5-13-5-8 0-13 5l-198 215q-8 9-3 19 5 11 16 11h125v696q0 8 5 13t13 5h107q8 0 13-5t5-13v-696h125q11 0 16-11z" horiz-adv-x="428.6" />
<glyph glyph-name="youtube" unicode="&#xe802;" d="M542 156v-118q0-37-22-37-13 0-25 12v168q12 12 25 12 22 0 22-37z m188-1v-25h-50v25q0 38 25 38t25-38z m-539 122h60v52h-174v-52h59v-318h55v318z m161-318h50v276h-50v-211q-17-23-32-23-10 0-11 11-1 2-1 20v203h-50v-218q0-28 5-41 7-21 32-21 27 0 57 34v-30z m240 83v110q0 41-5 55-10 31-40 31-28 0-52-30v121h-50v-370h50v27q25-31 52-31 30 0 40 31 5 15 5 56z m188 6v7h-51q0-29-1-34-4-20-22-20-26 0-26 38v49h100v57q0 44-15 65-22 28-59 28-38 0-60-28-15-21-15-65v-96q0-44 16-65 22-29 60-29 40 0 60 30 10 15 12 30 1 5 1 33z m-339 509v117q0 39-24 39t-24-39v-117q0-39 24-39t24 39z m401-419q0-131-14-195-8-33-33-56t-57-25q-102-12-309-12t-310 12q-32 3-57 25t-32 56q-15 62-15 195 0 131 15 195 7 33 32 56t57 26q103 11 310 11t309-11q33-4 57-26t33-56q14-62 14-195z m-557 712h57l-67-223v-151h-56v151q-8 42-34 119-21 57-37 104h60l39-147z m207-186v-97q0-46-16-66-21-29-59-29-38 0-59 29-15 21-15 66v97q0 45 15 65 21 29 59 29 38 0 59-29 16-20 16-65z m187 91v-279h-51v31q-30-35-58-35-25 0-33 21-4 13-4 42v220h51v-205q0-19 0-20 2-12 12-12 15 0 32 24v213h51z" horiz-adv-x="857.1" />
<glyph glyph-name="instagramm" unicode="&#xe803;" d="M760 54v362h-75q11-35 11-73 0-71-36-130t-97-94-134-35q-110 0-188 76t-78 183q0 38 11 73h-79v-362q0-14 10-24t25-10h596q14 0 24 10t10 24z m-158 298q0 69-51 118t-122 49q-71 0-121-49t-51-118 51-118 121-49q72 0 122 49t51 118z m158 201v92q0 15-11 27t-27 11h-98q-16 0-27-11t-11-27v-92q0-17 11-28t27-11h98q16 0 27 11t11 28z m97 116v-638q0-45-32-77t-78-33h-637q-45 0-78 33t-32 77v638q0 45 32 77t78 33h637q45 0 78-33t32-77z" horiz-adv-x="857.1" />
<glyph glyph-name="linkedin" unicode="&#xe804;" d="M195 501v-553h-184v553h184z m12 171q0-41-29-68t-75-27h-1q-46 0-74 27t-28 68q0 41 29 68t75 27 74-27 29-68z m650-407v-317h-183v296q0 59-23 92t-71 33q-35 0-58-19t-36-48q-6-17-6-45v-309h-184q1 223 1 361t0 165l-1 27h184v-80h-1q11 18 23 31t31 29 49 24 64 9q95 0 153-63t58-186z" horiz-adv-x="857.1" />
<glyph glyph-name="twitter" unicode="&#xe805;" d="M904 622q-37-54-90-93 0-8 0-23 0-73-21-145t-64-139-103-117-144-82-181-30q-151 0-276 81 19-2 43-2 126 0 224 77-59 1-105 36t-64 89q19-3 34-3 24 0 48 6-63 13-104 62t-41 115v2q38-21 82-23-37 25-59 64t-22 86q0 49 25 91 68-83 164-133t208-55q-5 21-5 41 0 75 53 127t127 53q79 0 132-57 61 12 114 44-20-64-79-100 52 6 104 28z" horiz-adv-x="928.6" />
<glyph glyph-name="tumblr" unicode="&#xe806;" d="M527 108l44-132q-12-19-61-37t-99-18q-58-1-107 15t-79 41-53 59-31 67-9 66v304h-94v120q40 14 72 39t51 50 32 57 19 55 8 49q1 3 3 5t4 2h136v-237h186v-140h-186v-289q0-17 3-32t13-29 28-23 45-8q44 1 75 16z" horiz-adv-x="571.4" />
<glyph glyph-name="pinterest" unicode="&#xe807;" d="M320 190q-26-130-58-211t-96-129q-6 74-7 120t11 110 22 104 26 99 24 99q-24 52-19 116t48 106 99 20q40-16 44-59t-13-95-32-103-4-90 63-49q68-14 121 38t74 131 11 163-54 128q-62 64-151 70t-163-33-120-117-32-170q4-22 22-52t21-47-17-67q-146 34-140 230 4 138 105 234t233 112q164 18 290-57t144-219q26-176-66-317t-252-129q-22 2-42 9t-30 13-31 21-31 21z" horiz-adv-x="778" />
<glyph glyph-name="vimeo" unicode="&#xe808;" d="M896 558q-32-186-171-351t-245-237q-42-28-81-17t-66 38-43 61q-16 32-78 239t-74 223q-16 12-38 5t-44-21l-20-14-36 50q18 20 46 52t100 89 124 67q30 6 53-7t36-35 23-60 15-70 12-75 13-67q14-54 21-80t17-54 18-39 18-11q40 0 126 166 42 76 6 124t-112 2q22 126 140 188 104 54 182 8 80-46 58-174z" horiz-adv-x="901" />
<glyph glyph-name="facebook" unicode="&#xe809;" d="M500 644l-142 0q-14 0-25-15t-11-37l0-102 178 0 0-148-178 0 0-442-170 0 0 442-152 0 0 148 152 0 0 86q0 94 59 159t147 65l142 0 0-156z" horiz-adv-x="500" />
<glyph glyph-name="skype" unicode="&#xe80a;" d="M894 250q26-58 26-118 0-108-75-185t-179-77q-62 0-120 32-52-8-80-8-182 0-311 132t-129 320q0 44 10 90-36 60-36 134 0 108 74 184t180 76q74 0 136-40 32 8 76 8 182 0 310-132t128-320q0-46-10-96z m-204-120q30 46 30 100 0 44-16 80-16 30-50 54-36 22-76 36-68 20-96 26-14 2-35 7t-27 7q-24 8-34 14-16 8-26 22-10 10-10 26 0 24 28 42 26 20 76 20t74-18q26-22 38-50 16-26 26-36 16-12 38-12 26 0 46 20 18 18 18 44 0 20-14 52-16 24-42 48-28 22-74 38-48 14-102 14-72 0-128-22-56-20-86-60t-30-92 28-90q34-40 76-56 48-22 116-36 12-2 29-7t30-8 21-5q28-10 46-28 18-14 18-42 0-34-32-56-36-24-90-24-40 0-64 12-26 14-36 28-24 44-26 46-8 24-24 40-20 14-40 14-28 0-46-18t-18-42q0-38 28-82 26-40 72-66 64-34 158-34 78 0 138 24 60 28 88 70z" horiz-adv-x="920" />
<glyph glyph-name="flickr" unicode="&#xe80b;" d="M196 150q-80 0-138 59t-58 141q0 84 57 142t139 58 139-58 57-142q0-82-58-141t-138-59z m508 0q-80 0-138 59t-58 141q0 84 57 142t139 58 139-58 57-142q0-82-58-141t-138-59z" horiz-adv-x="900" />
<glyph glyph-name="right" unicode="&#xe80c;" d="M964 352q0-8-5-14l-215-197q-9-8-19-4-11 5-11 17v125h-696q-8 0-13 5t-5 12v108q0 7 5 12t13 5h696v125q0 12 11 17t19-3l215-195q5-6 5-13z" horiz-adv-x="1000" />
<glyph glyph-name="left" unicode="&#xe80d;" d="M1000 404v-108q0-7-5-12t-13-5h-696v-125q0-12-11-17t-19 3l-215 196q-5 5-5 12 0 8 5 14l215 197q9 8 19 4 11-5 11-17v-125h696q8 0 13-5t5-12z" horiz-adv-x="1000" />
<glyph glyph-name="dribbble" unicode="&#xe80e;" d="M438 480q-30 54-66 109t-56 84-24 33q-82-40-139-112t-77-162q182 0 362 48z m50-132q8 4 14 4-10 28-32 68-182-56-402-56l0-14q0-150 100-262 4 8 13 21t39 50 64 69 89 66 115 54z m-270-306q-2 0-4 2l-4 4z m148 690z m354-86q-114 98-260 98-48 0-92-12 82-108 146-228 138 52 204 140z m-260-756q-190 0-325 135t-135 325 135 325 325 135 325-135 135-325-135-325-325-135z m68 396q-216-74-308-242l-2-2q110-84 242-84 78 0 154 32-24 140-84 298z m16 158q12-24 26-56 2-2 5-9t5-11q66 8 129 4t101-10 42-8q0 138-88 246l-8-10q-8-10-26-27t-42-36-62-42-82-41z m60-138q52-148 76-280 140 92 168 262-8 4-39 11t-88 12-117-5z" horiz-adv-x="920" />
<glyph glyph-name="paypal" unicode="&#xe80f;" d="M771 610l8-4q38-22 60-62 20-38 20-96 0-130-110-210-106-80-306-80l-30 0q-16 0-32-12t-20-28l-36-156q-12-42-52-42l-106 0q-18 0-28 13t-6 29l6 24 68 0q16 0 32 13t20 29l36 156q10 40 52 40l30 0q196 0 306 80 110 82 110 210 0 56-22 96z m-580-516q-2-16-18-29t-32-13l-108 0q-18 0-27 13t-5 29l150 646q10 40 52 40l224 0q78 0 126-8 56-12 94-34 36-24 58-62 20-38 20-96 0-130-110-210-106-80-304-80l-32 0q-16 0-32-12t-18-28z m88 374q-4-16 6-28t26-12l28 0q86 0 134 36 48 34 48 98 0 44-30 64-32 20-94 20l-34 0q-42 0-52-40z" horiz-adv-x="859" />
<glyph glyph-name="picasa" unicode="&#xe810;" d="M250 760q10-12 158-144l-396-362q-12 48-12 96 0 130 67 240t183 170z m400 10l0-278-328 296q64 22 138 22 98 0 190-40z m70-40q94-64 147-165t53-215q0-80-26-152l-174 0 0 532z m-686-550q12 12 66 60l102 92 0-362q-116 80-168 210z m238-250l0 198 590 0q-56-100-151-163t-209-75l-84 0q-84 10-146 40z" horiz-adv-x="920" />
<glyph glyph-name="soundcloud" unicode="&#xe811;" d="M34 178q0-4-10-4-6 0-10 4l-14 70 14 72q4 4 10 4 10 0 10-4l16-72z m102-38q0-8-12-8t-12 8l-12 108 12 166q0 8 12 8t12-8l14-166z m102 2q0-10-14-10t-14 8l-10 108 10 222q0 10 14 10t14-10l12-222z m102 0q0-10-16-10t-16 10l-8 106 8 224q0 10 16 10t16-10l10-224z m102 2q0-12-18-12-16 0-18 12l-6 104 6 256q4 14 18 14 18 0 18-14l8-256z m72-12q-14 0-14 14l0 396q0 10 12 14 36 14 84 14 88 0 153-58t73-142q24 10 50 10 52 0 90-37t38-87q0-52-38-89t-90-37z" horiz-adv-x="1000" />
<glyph glyph-name="up" unicode="&#xe812;" d="M427 575q-5-11-16-11h-125v-696q0-8-5-13t-13-5h-107q-8 0-13 5t-5 13v696h-125q-12 0-16 11t3 19l195 215q5 5 13 5 7 0 13-5l198-215q7-9 3-19z" horiz-adv-x="428.6" />
<glyph glyph-name="cancel" unicode="&#xe813;" d="M452 194q18-18 18-43t-18-43q-18-16-43-16t-43 16l-132 152-132-152q-18-16-43-16t-43 16q-16 18-16 43t16 43l138 156-138 158q-16 18-16 43t16 43q18 16 43 16t43-16l132-152 132 152q18 16 43 16t43-16q18-18 18-43t-18-43l-138-158z" horiz-adv-x="470" />
<glyph glyph-name="right-open" unicode="&#xe814;" d="M98 626l226-236q16-16 16-40 0-22-16-38l-226-236q-16-16-40-16t-40 16q-36 36 0 80l186 194-186 196q-36 44 0 80 16 16 41 16t39-16z" horiz-adv-x="340" />
<glyph glyph-name="left-open" unicode="&#xe815;" d="M242 626q14 16 39 16t41-16q38-36 0-80l-186-196 186-194q38-44 0-80-16-16-40-16t-40 16l-226 236q-16 16-16 38 0 24 16 40 206 214 226 236z" horiz-adv-x="341" />
<glyph glyph-name="up-open" unicode="&#xe816;" d="M564 280q16-16 16-41t-16-41q-38-38-78 0l-196 188-196-188q-40-38-78 0-16 16-16 41t16 41l234 224q16 16 40 16t40-16z" horiz-adv-x="580" />
<glyph glyph-name="down-open-mini" unicode="&#xe817;" d="M405 470q22 26 48 0 26-22 0-48l-196-192q-22-22-48 0l-196 192q-26 26 0 48 24 24 50 0l170-156z" horiz-adv-x="466" />
<glyph glyph-name="down-open" unicode="&#xe818;" d="M564 422l-234-224q-18-18-40-18t-40 18l-234 224q-16 16-16 41t16 41q38 38 78 0l196-188 196 188q40 38 78 0 16-16 16-41t-16-41z" horiz-adv-x="580" />
<glyph glyph-name="left-open-mini" unicode="&#xe819;" d="M252 180q26-26 0-48-26-26-48 0l-192 194q-24 24 0 50l192 194q22 26 48 0 26-22 0-48l-156-172z" horiz-adv-x="265" />
<glyph glyph-name="right-open-mini" unicode="&#xe81a;" d="M13 180l158 170-158 172q-26 26 0 48 26 26 48 0l192-194q24-26 0-50l-192-194q-22-26-48 0-26 22 0 48z" horiz-adv-x="265" />
<glyph glyph-name="up-open-mini" unicode="&#xe81b;" d="M62 230q-26-22-50 0-24 24 0 50l196 190q26 26 48 0l196-190q24-26 0-50-24-22-50 0l-170 158z" horiz-adv-x="464" />
<glyph glyph-name="down-open-big" unicode="&#xe81c;" d="M63 570l370-356 372 356q22 26 48 0 26-22 0-48l-396-392q-22-22-48 0l-396 392q-26 26 0 48 24 24 50 0z" horiz-adv-x="866" />
<glyph glyph-name="left-open-big" unicode="&#xe81d;" d="M452-20q26-26 0-48-26-26-48 0l-392 394q-24 24 0 50l392 394q22 26 48 0 26-22 0-48l-358-372z" horiz-adv-x="465" />
<glyph glyph-name="right-open-big" unicode="&#xe81e;" d="M13-20l358 370-358 372q-26 26 0 48 26 26 48 0l392-394q24-26 0-50l-392-394q-22-26-48 0-26 22 0 48z" horiz-adv-x="465" />
<glyph glyph-name="up-open-big" unicode="&#xe81f;" d="M804 130l-372 358-370-358q-26-22-50 0-24 24 0 50l396 390q26 26 48 0l396-390q24-26 0-50-26-22-48 0z" horiz-adv-x="864" />
<glyph glyph-name="pencil" unicode="&#xe820;" d="M203-7l50 51-131 131-51-51v-60h72v-71h60z m291 518q0 12-12 12-5 0-9-4l-303-302q-4-4-4-10 0-12 13-12 5 0 9 4l303 302q3 4 3 10z m-30 107l232-232-464-465h-232v233z m381-54q0-29-20-50l-93-93-232 233 93 92q20 21 50 21 29 0 51-21l131-131q20-22 20-51z" horiz-adv-x="857.1" />
<glyph glyph-name="comment-empty" unicode="&#xe821;" d="M500 636q-114 0-213-39t-157-105-59-142q0-62 40-119t113-98l48-28-15-54q-13-50-39-96 85 36 154 96l24 21 31-3q39-5 73-5 114 0 213 39t157 105 59 142-59 142-157 105-213 39z m500-286q0-97-67-179t-182-130-251-48q-39 0-81 4-110-97-257-135-27-8-63-12h-3q-8 0-15 6t-9 15v1q-2 2 0 6t1 6 2 5l4 5t4 5 4 5q4 5 17 19t20 22 17 22 18 28 15 33 15 42q-88 50-138 123t-51 157q0 97 67 179t182 130 251 48 251-48 182-130 67-179z" horiz-adv-x="1000" />
<glyph glyph-name="folder-open-empty" unicode="&#xe822;" d="M994 330q0 20-30 20h-607q-22 0-48-12t-39-29l-164-203q-11-13-11-22 0-20 30-20h607q22 0 48 13t40 29l164 203q10 12 10 21z m-637 91h429v90q0 22-16 38t-38 15h-321q-23 0-38 16t-16 38v36q0 22-15 38t-38 15h-179q-22 0-38-15t-16-38v-476l143 175q25 30 65 49t78 19z m708-91q0-34-25-66l-165-203q-24-30-65-49t-78-19h-607q-51 0-88 37t-37 88v536q0 51 37 88t88 37h179q51 0 88-37t37-88v-18h303q51 0 88-37t37-88v-90h107q30 0 56-13t37-40q8-17 8-38z" horiz-adv-x="1071.4" />
<glyph glyph-name="heart-empty" unicode="&#xe823;" d="M929 517q0 46-12 80t-31 55-46 33-52 18-55 4-62-14-62-36-48-40-34-34q-10-13-27-13t-27 13q-14 15-34 34t-48 40-62 36-62 14-55-4-52-18-46-33-31-55-12-80q0-93 105-198l324-312 324 312q105 105 105 198z m71 0q0-123-128-251l-347-335q-10-10-25-10t-25 10l-348 336q-5 5-15 15t-31 36-38 55-30 67-13 77q0 123 71 192t196 70q34 0 70-12t67-33 54-38 42-38q20 20 42 38t54 38 67 33 70 12q125 0 196-70t71-192z" horiz-adv-x="1000" />
<glyph glyph-name="clock" unicode="&#xe824;" d="M500 546v-250q0-7-5-12t-13-5h-178q-8 0-13 5t-5 12v36q0 8 5 13t13 5h125v196q0 8 5 13t12 5h36q8 0 13-5t5-13z m232-196q0 83-41 152t-110 111-152 41-153-41-110-111-41-152 41-152 110-111 153-41 152 41 110 111 41 152z m125 0q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z" horiz-adv-x="857.1" />
<glyph glyph-name="heart" unicode="&#xe825;" d="M500-79q-14 0-25 10l-348 336q-5 5-15 15t-31 36-38 55-30 67-13 77q0 123 71 192t196 70q34 0 70-12t67-33 54-38 42-38q20 20 42 38t54 38 67 33 70 12q125 0 196-70t71-192q0-123-128-251l-347-335q-10-10-25-10z" horiz-adv-x="1000" />
<glyph glyph-name="angle-down" unicode="&#xe826;" d="M600 439q0-7-6-13l-260-260q-5-5-13-5t-12 5l-260 260q-6 6-6 13t6 13l27 28q6 6 13 6t13-6l219-219 220 219q5 6 13 6t12-6l28-28q6-5 6-13z" horiz-adv-x="642.9" />
<glyph glyph-name="search" unicode="&#xe827;" d="M772 78q30-34 6-62l-46-46q-36-32-68 0l-190 190q-74-42-156-42-128 0-223 95t-95 223 90 219 218 91 224-95 96-223q0-88-46-162z m-678 358q0-88 68-156t156-68 151 63 63 153q0 88-68 155t-156 67-151-63-63-151z" horiz-adv-x="789" />
<glyph glyph-name="reply" unicode="&#xe828;" d="M900 10q-86 152-208 197t-330 45l0-218-362 334 362 322 0-192q90 0 168-27t131-70 96-95 69-104 44-95 24-69z" horiz-adv-x="900" />
<glyph glyph-name="info" unicode="&#xe829;" d="M352 850q48 0 74-27t26-69q0-50-39-88t-95-38q-48 0-74 26t-24 72q0 46 35 85t97 39z m-206-1000q-100 0-54 178l60 254q14 56 0 56-12 0-54-18t-72-38l-26 44q90 78 189 126t151 48q78 0 36-162l-70-266q-16-64 6-64 44 0 118 60l30-40q-84-86-175-132t-139-46z" horiz-adv-x="460" />
<glyph glyph-name="th-large-outline-1" unicode="&#xe82a;" d="M365 872q43 0 73-31t31-74l0-260q0-44-31-74t-73-30l-261 0q-44 0-74 30t-30 74l0 260q0 43 31 74t73 31l261 0z m0-365l0 260-261 0 0-260 261 0z m573 365q42 0 73-31t30-74l0-260q0-44-30-74t-73-30l-260 0q-44 0-75 30t-30 74l0 260q0 43 31 74t74 31l260 0z m0-365l0 260-260 0 0-260 260 0z m-573-209q43 0 73-30t31-74l0-260q0-44-31-74t-73-31l-261 0q-43 0-73 31t-31 74l0 260q0 44 30 74t74 30l261 0z m0-364l0 260-261 0 0-260 261 0z m573 364q42 0 73-30t30-74l0-260q0-44-30-74t-73-31l-260 0q-43 0-74 31t-31 74l0 260q0 43 30 73t75 31l260 0z m0-364l0 260-260 0 0-260 260 0z" horiz-adv-x="1041" />
<glyph glyph-name="fivehundredpx" unicode="&#xe82b;" d="M0 236l119 0q5-40 30-64t64-24q48 0 77 33t28 81q0 48-28 79t-75 31q-38 0-65-24t-51-25q-53 0-80 2 9 52 29 161t28 164l330 0 0-98-243 0q-14-71-24-134l3 0q17 21 51 32t65 11q113 0 160-103 24 60 72 94t111 34q49 0 91-19t66-42 63-66q3-3 5-5t4-4l4-5q35 40 50 56t46 40 62 35 70 9q90 0 145-60t55-152q0-93-55-156t-147-63q-116 0-226 131-7-7-39-38t-42-40-37-25-52-23-58-6q-63 0-111 33t-74 92q-62-128-203-128-95 0-156 48t-62 138z m515 30q0-42 26-68t67-26q75 0 155 95-34 35-48 49t-47 33-64 19q-39 0-64-31t-25-71z m389 0q27-29 46-45t49-33 61-16q43 0 68 28t24 70q0 42-25 70t-68 28q-25 0-49-11t-36-22-38-36-32-33z" horiz-adv-x="1262" />
</font>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 16 KiB

BIN
css/font/fontello.ttf Normal file

Binary file not shown.

BIN
css/font/fontello.woff Normal file

Binary file not shown.

BIN
css/font/fontello.woff2 Normal file

Binary file not shown.

101
css/fontello.css vendored Normal file
View File

@@ -0,0 +1,101 @@
@font-face {
font-family: 'fontello';
src: url('../css/font/fontello.eot?64692809');
src: url('../css/font/fontello.eot?64692809#iefix') format('embedded-opentype'),
url('../css/font/fontello.woff2?64692809') format('woff2'),
url('../css/font/fontello.woff?64692809') format('woff'),
url('../css/font/fontello.ttf?64692809') format('truetype'),
url('../css/font/fontello.svg?64692809#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('../css/font/fontello.svg?1533309#fontello') format('svg');
}
}
*/
[class^="kk-icon-"]:before, [class*=" kk-icon-"]:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.kk-icon-social_google:before { content: '\e800'; } /* '' */
.kk-icon-down:before { content: '\e801'; } /* '' */
.kk-icon-social_youtube:before { content: '\e802'; } /* '' */
.kk-icon-social_instagram:before { content: '\e803'; } /* '' */
.kk-icon-social_linkedin:before { content: '\e804'; } /* '' */
.kk-icon-social_ftwitter:before { content: '\e805'; } /* '' */
.kk-icon-social_tumblr:before { content: '\e806'; } /* '' */
.kk-icon-social_pinterest:before { content: '\e807'; } /* '' */
.kk-icon-social_vimeo:before { content: '\e808'; } /* '' */
.kk-icon-social_facebook:before { content: '\e809'; } /* '' */
.kk-icon-social_skype:before { content: '\e80a'; } /* '' */
.kk-icon-social_flickr:before { content: '\e80b'; } /* '' */
.kk-icon-right:before { content: '\e80c'; } /* '' */
.kk-icon-left:before { content: '\e80d'; } /* '' */
.kk-icon-dribbble:before { content: '\e80e'; } /* '' */
.kk-icon-paypal:before { content: '\e80f'; } /* '' */
.kk-icon-picasa:before { content: '\e810'; } /* '' */
.kk-icon-social_soundcloud:before { content: '\e811'; } /* '' */
.kk-icon-up:before { content: '\e812'; } /* '' */
.kk-icon-cancel:before { content: '\e813'; } /* '' */
.kk-icon-right-open:before { content: '\e814'; } /* '' */
.kk-icon-left-open:before { content: '\e815'; } /* '' */
.kk-icon-up-open:before { content: '\e816'; } /* '' */
.kk-icon-down-open-mini:before { content: '\e817'; } /* '' */
.kk-icon-down-open:before { content: '\e818'; } /* '' */
.kk-icon-left-open-mini:before { content: '\e819'; } /* '' */
.kk-icon-right-open-mini:before { content: '\e81a'; } /* '' */
.kk-icon-up-open-mini:before { content: '\e81b'; } /* '' */
.kk-icon-down-open-big:before { content: '\e81c'; } /* '' */
.kk-icon-left-open-big:before { content: '\e81d'; } /* '' */
.kk-icon-right-open-big:before { content: '\e81e'; } /* '' */
.kk-icon-up-open-big:before { content: '\e81f'; } /* '' */
.kk-icon-pencil:before { content: '\e820'; } /* '' */
.kk-icon-comment-empty:before { content: '\e821'; } /* '' */
.kk-icon-folder-open-empty:before { content: '\e822'; } /* '' */
.kk-icon-heart-empty:before { content: '\e823'; } /* '' */
.kk-icon-clock:before { content: '\e824'; } /* '' */
.kk-icon-heart:before { content: '\e825'; } /* '' */
.kk-icon-angle-down:before { content: '\e826'; } /* '' */
.kk-icon-search:before { content: '\e827'; } /* '' */
.kk-icon-reply:before { content: '\e828'; } /* '' */
.kk-icon-info:before { content: '\e829'; } /* '' */
.kk-icon-th-large-outline:before { content: '\e82a'; } /* '' */
.kk-icon-social_fivehundredpx:before { content: '\e82b'; } /* '' */

1
css/layout.css Normal file
View File

@@ -0,0 +1 @@


508
css/lightbox.css Normal file
View File

@@ -0,0 +1,508 @@
/* Magnific Popup CSS */
.mfp-bg {
top: 0;
width: 100%;
height: 100%;
z-index: 1042;
overflow: hidden;
position: fixed;
background: #111111;
opacity: 0.9;
filter: alpha(opacity=80); }
.mfp-kk-open {
left: 0;
}
.mfp-kk-close {
right: 0;
}
.mfp-wrap {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1043;
position: fixed;
outline: none !important;
-webkit-backface-visibility: hidden; }
.mfp-container {
text-align: center;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
padding: 0 8px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.mfp-container:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle; }
.mfp-align-top .mfp-container:before {
display: none; }
.mfp-content {
position: relative;
display: inline-block;
vertical-align: middle;
margin: 0 auto;
text-align: left;
z-index: 1045; }
.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
width: 100%;
cursor: auto; }
.mfp-ajax-cur {
cursor: progress; }
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
cursor: -moz-zoom-out;
cursor: -webkit-zoom-out;
cursor: zoom-out; }
.mfp-zoom {
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in; }
.mfp-auto-cursor .mfp-content {
cursor: auto; }
.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none; }
.mfp-loading.mfp-figure {
display: none; }
.mfp-hide {
display: none !important; }
.mfp-preloader {
color: #cccccc;
position: absolute;
top: 50%;
width: auto;
text-align: center;
margin-top: -0.8em;
left: 8px;
right: 8px;
z-index: 1044; }
.mfp-preloader a {
color: #cccccc; }
.mfp-preloader a:hover {
color: white; }
.mfp-s-ready .mfp-preloader {
display: none; }
.mfp-s-error .mfp-content {
display: none; }
button.mfp-close, button.mfp-arrow {
overflow: visible;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
display: block;
outline: none;
padding: 0;
z-index: 1046;
-webkit-box-shadow: none;
box-shadow: none; }
button::-moz-focus-inner {
padding: 0;
border: 0; }
.mfp-close {
width: 44px;
height: 44px;
line-height: 44px;
position: absolute;
right: 0;
top: 0;
text-decoration: none;
text-align: center;
opacity: 0.65;
filter: alpha(opacity=65);
padding: 0 0 18px 10px;
color: white;
font-style: normal;
font-size: 28px;
font-family: Arial, Baskerville, monospace; }
.mfp-close:hover, .mfp-close:focus {
opacity: 1;
filter: alpha(opacity=100); }
.mfp-close:active {
top: 1px; }
.mfp-close-btn-in .mfp-close {
color: #333333; }
.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
color: white;
right: -6px;
text-align: right;
padding-right: 6px;
width: 100%; }
.mfp-counter {
position: absolute;
top: 0;
right: 0;
color: #f3f3f3;
font-size: 14px;
font-weight: 600;
line-height: 18px; }
.mfp-arrow {
position: absolute;
opacity: 0.65;
filter: alpha(opacity=65);
margin: 0;
top: 50%;
margin-top: -55px;
padding: 0;
width: 90px;
height: 110px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
.mfp-arrow:active {
margin-top: -54px; }
.mfp-arrow:hover, .mfp-arrow:focus {
opacity: 1;
filter: alpha(opacity=100); }
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
content: '';
display: block;
width: 0;
height: 0;
position: absolute;
left: 0;
top: 0;
margin-top: 35px;
margin-left: 35px;
border: medium inset transparent; }
.mfp-arrow:after, .mfp-arrow .mfp-a {
border-top-width: 13px;
border-bottom-width: 13px;
top: 8px; }
.mfp-arrow:before, .mfp-arrow .mfp-b {
border-top-width: 21px;
border-bottom-width: 21px;
opacity: 0.7; }
.mfp-arrow-left {
left: 0; }
.mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
border-right: 17px solid white;
margin-left: 31px; }
.mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
margin-left: 25px;
border-right: 27px solid #3f3f3f; }
.mfp-arrow-right {
right: 0; }
.mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
border-left: 17px solid white;
margin-left: 39px; }
.mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
border-left: 27px solid #3f3f3f; }
.mfp-iframe-holder {
padding-top: 40px;
padding-bottom: 40px; }
.mfp-iframe-holder .mfp-content {
line-height: 0;
width: 100%;
max-width: 900px; }
.mfp-iframe-holder .mfp-close {
top: -40px; }
.mfp-iframe-scaler {
width: 100%;
height: 0;
overflow: hidden;
padding-top: 56.25%; }
.mfp-iframe-scaler iframe {
position: absolute;
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: black; }
/* Main image in popup */
img.mfp-img {
width: auto;
max-width: 100%;
height: auto;
display: block;
line-height: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 40px 0 40px;
margin: 0 auto; }
/* The shadow behind the image */
.mfp-figure {
line-height: 0; }
.mfp-figure:after {
content: '';
position: absolute;
left: 0;
top: 40px;
bottom: 40px;
display: block;
right: 0;
width: auto;
height: auto;
z-index: -1;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #444444; }
.mfp-figure small {
color: #bdbdbd;
display: block;
font-size: 12px;
line-height: 14px; }
.mfp-figure figure {
margin: 0; }
.mfp-bottom-bar {
margin-top: -36px;
position: absolute;
top: 100%;
left: 0;
width: 100%;
cursor: auto; }
.mfp-title {
text-align: left;
font-size: 16px;
font-weight: 400;
line-height: 1.2em;
color: #fff;
word-wrap: break-word;
padding-right: 36px; }
.mfp-image-holder .mfp-content {
max-width: 90%; }
.mfp-gallery .mfp-image-holder .mfp-figure {
cursor: pointer; }
/* overlay at start */
.mfp-fade.mfp-bg {
opacity: 0;
-webkit-transition: width 0.4s ease-out, opacity 0.4s ease-out;
-moz-transition: width 0.4s ease-out, opacity 0.4s ease-out;
-o-transition: width 0.4s ease-out, opacity 0.4s ease-out;
transition: width 0.4s ease-out, opacity 0.4s ease-out;
width: 0;
}
/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready {
opacity: 0.9;
width: 100%;
}
/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
opacity: 0;
width: 0;
}
/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
opacity: 0;
transform: translate3d(-50px, 0, 0);
-ms-transform:: translate3d(-50px, 0, 0);
-webkit-transform: translate3d(-50px, 0, 0);
-webkit-transition: transform 0.15s ease-out, opacity 0.15s ease-out;
-moz-transition: all 0.15s ease-out, opacity 0.15s ease-out;;
-o-transition: all 0.15s ease-out, opacity 0.15s ease-out;;
transition: all 0.15s ease-out, opacity 0.15s ease-out;;
}
/* content animate in */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
opacity: 1;
transform: translate3d(0, 0, 0);
-ms-transform:: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
}
/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
opacity: 0;
transform: translate3d(60px, 0, 0);
-ms-transform:: translate3d(60px, 0, 0);
-webkit-transform: translate3d(60px, 0, 0);
}
.mfp-figure, .mpf-iframe {
position: relative;
}
.mfp-open .mfp-figure, .mfp-open .mfp-iframe,
.mfp-open-bd .mfp-figure, .mfp-open-bd .mfp-iframe {
-webkit-animation-duration: 0.4s;
-moz-animation-duration: 0.4s;
-ms-animation-duration: 0.4s;
-o-animation-duration: 0.4s;
animation-duration: 0.4s;
-webkit-animation-fill-mode: both;
-moz-animation-fill-mode: both;
-ms-animation-fill-mode: both;
-o-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
}
.mfp-open .mfp-figure, .mfp-open .mfp-iframe {
-webkit-animation-name: imgfadeIn;
-moz-animation-name: imgfadeIn;
-o-animation-name: imgfadeIn;
animation-name: imgfadeIn;
}
.mfp-open-bd .mfp-figure, .mfp-open-bd .mfp-iframe {
-webkit-animation-name: imgfadeInB;
-moz-animation-name: imgfadeInB;
-o-animation-name: imgfadeInB;
animation-name: imgfadeInB;
}
.mfp-iframe-scaler .mfp-counter {
position: absolute;
top: auto;
}
.mfp-iframe-scaler .mfp-title {
position: absolute;
}
@-webkit-keyframes imgfadeIn {
0% {opacity: 0; transform: translate3d(50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@-moz-keyframes imgfadeIn {
0% {opacity: 0; transform: translate3d(50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@-o-keyframes imgfadeIn {
0% {opacity: 0; transform: translate3d(50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@keyframes imgfadeIn {
0% {opacity: 0; transform: translate3d(50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@-webkit-keyframes imgfadeInB {
0% {opacity: 0; transform: translate3d(-50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@-moz-keyframes imgfadeInB {
0% {opacity: 0; transform: translate3d(-50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@-o-keyframes imgfadeInB {
0% {opacity: 0; transform: translate3d(-50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@keyframes imgfadeInB {
0% {opacity: 0; transform: translate3d(-50px,0,0);}
100% {opacity: 1; transform: translate3d(0,0,0);}
}
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
/**
* Remove all paddings around the image on small screen
*/
.mfp-img-mobile .mfp-image-holder {
padding-left: 0;
padding-right: 0; }
.mfp-img-mobile img.mfp-img {
padding: 0; }
.mfp-img-mobile .mfp-figure:after {
top: 0;
bottom: 0; }
.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; }
.mfp-img-mobile .mfp-bottom-bar {
background: rgba(0, 0, 0, 0.6);
bottom: 0;
margin: 0;
top: auto;
padding: 3px 5px;
position: fixed;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.mfp-img-mobile .mfp-bottom-bar:empty {
padding: 0; }
.mfp-img-mobile .mfp-counter {
right: 5px;
top: 3px; }
.mfp-img-mobile .mfp-close {
top: 0;
right: 0;
width: 35px;
height: 35px;
line-height: 35px;
background: rgba(0, 0, 0, 0.6);
position: fixed;
text-align: center;
padding: 0; } }
@media all and (max-width: 900px) {
.mfp-arrow {
-webkit-transform: scale(0.75);
transform: scale(0.75); }
.mfp-arrow-left {
-webkit-transform-origin: 0;
transform-origin: 0; }
.mfp-arrow-right {
-webkit-transform-origin: 100%;
transform-origin: 100%; }
.mfp-container {
padding-left: 6px;
padding-right: 6px; } }
.mfp-ie7 .mfp-img {
padding: 0; }
.mfp-ie7 .mfp-bottom-bar {
width: 600px;
left: 50%;
margin-left: -300px;
margin-top: 5px;
padding-bottom: 5px; }
.mfp-ie7 .mfp-container {
padding: 0; }
.mfp-ie7 .mfp-content {
padding-top: 44px; }
.mfp-ie7 .mfp-close {
top: 0;
right: 0;
padding-top: 0; }

203
css/main.css.php Normal file
View File

@@ -0,0 +1,203 @@
<?php
global $wp_query;
// Background image
$postid = kk_postid();
$bg_type_selector = get_post_meta($postid, '_custom_bg_type_value', true);
$bg_image = get_post_meta($postid, '_bg_image_value', true);
if (function_exists('rwmb_meta')) {
$bg_title = rwmb_meta( 'kk_title_bg', 'type=image_advanced', $postid );
} else {
$bg_title = false;
}
if( $bg_title !== false ) {
$title_image = array_shift($bg_title);
}
if( empty($bg_image ) ) {
$bg_image = get_option( 'toppic_theme_default_background_image');
$bg_repeat = get_option( 'toppic_theme_default_background_repeat');
$bg_pos = get_option( 'toppic_theme_default_background_position');
$bg_size = get_option( 'toppic_theme_default_background_size');
} else {
$bg_repeat = get_post_meta($postid, '_custom_bg_repeat_value', true);
$bg_pos = get_post_meta($postid, '_custom_bg_position_value', true);
$bg_size = get_post_meta($postid, '_custom_bg_size_value', true);
}
?>
<style type='text/css' id='kk-custom-style'>
<?php
if( $bg_image ) { ?>
body {
background-attachment: fixed;
background-clip: border-box;
background-image: url("<?php echo esc_url($bg_image) ?>");
background-origin: padding-box;
background-position: <?php echo esc_html($bg_pos) ?>;
background-repeat: <?php echo esc_html($bg_repeat) ?>;
<?php if($bg_size == 'full' || $bg_size == 'Full') { ?>
background-size: cover;
<?php } ?>
}
<?php }
if (isset($title_image)) { ?>
.kk-parallax-wrapper .kk-parallax-bg {
background-image: url('<?php echo esc_url ( $title_image['full_url'] ) ?>');
}
<?php } ?>
.main-nav .sub-menu li a:hover,
.kk_menu_default .main-nav .current-menu-parent .current-menu-item > a,
.kk_menu_default .main-nav .menu-item-has-children .current-menu-parent > a,
.kk_menu_default_hidden .main-nav .current-menu-parent .current-menu-item > a,
.kk_menu_default_hidden .main-nav .menu-item-has-children .current-menu-parent > a,
.kk_menu_left_boxed .main-nav .current-menu-parent .current-menu-item > a,
.kk_menu_left_boxed .main-nav .menu-item-has-children .current-menu-parent > a,
ul#thumb-list li:hover,
ul#thumb-list li.current-thumb,
.pagination .current,
input[type="reset"]:hover,
.blog-entry .moretag:hover,
.bg-slider-ctrl span:hover,
.woocommerce .container table.shop_table th,
.woocommerce-page .container table.shop_table th {
background-color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
color: <?php echo get_option( 'toppic_theme_color_scheme_links' )?>;
}
.woocommerce #content input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button .button:hover,
.woocommerce input.button:hover,
.woocommerce-page #content input.button:hover,
.woocommerce-page #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce ul.products li.product a.added_to_cart:hover,
.woocommerce-page ul.products li.product a.added_to_cart:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.pagination .current,
.pagination a:hover,
.blog-entry .more-link:hover,
.single .post-tags a:hover,
.moretag:hover,
.main-nav ul li a:hover,
.main-nav .current-menu-parent > a,
blockquote,
.linkto:hover .gallery-title,
.linkto:hover .portfolio-title,
input.submit:hover,
input[type="submit"]:hover,
.kk_vc .wpb_accordion .wpb_accordion_wrapper .wpb_accordion_header.ui-state-active a,
.kk_vc .vc_tta.vc_general .vc_tta-panel.vc_active a,
.more-link:hover {
border-color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
}
.blog-title a:hover,
.blog-meta a:hover,
.format-standard
.blog-thumb a:hover,
.format-image
.blog-thumb a:hover,
.flickr_badge_image a:hover,
.portfolio-thumb a:hover,
.widget-img a:hover,
.sub-footer a:hover, a:hover,
.current-menu-item,
.blog-entry a,
.post-entry a,
.home-teaser a,
.social li a:hover,
.kk-content-fullwidth .kk-parallax-wrapper .blog-meta a:hover {
color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
}
.single .post-tags a:hover,
.tipsy-inner,
.kk-loader,
#filter-trigger,
#filter ul {
background-color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
}
.kk-preloader:before,
.kk-content-fullwidth.kk-parallax-title.kk-parallax-title-fullheight .kk-parallax-wrapper .is-loading.kk-down:after {
border-top-color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
border-left-color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
}
.over-more,
.over-more-title {
background: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
color: <?php echo get_option( 'toppic_theme_color_scheme_links' )?>;
}
::selection {
background-color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
color: <?php echo get_option( 'toppic_theme_color_scheme_links' )?>;
}
::-moz-selection {
background-color: <?php echo get_option( 'toppic_theme_color_scheme' )?>;
color: <?php echo get_option( 'toppic_theme_color_scheme_links' )?>;
}
.menu-wrapper,
.main-nav .sub-menu,
.kk_menu_classic .menu-wrapper,
.kk_menu_classic .main-nav .sub-menu,
.dark-skin.kk_menu_classic .menu-wrapper,
.dark-skin.kk_menu_classic .main-nav .sub-menu,
.kk_menu_default_hidden .menu-helper,
.kk_menu_left_boxed .menu-wrapper,
.kk_menu_left_boxed .main-nav .sub-menu,
.kk_menu_left_boxed.kk-grid-active .menu-wrapper,
.kk_menu_left_boxed.kk-grid-active .main-nav .sub-menu {
background-color: <?php echo kk_menuColor() ?>;
}
.main-nav li a,
.kk_menu_default_hidden .kk-search i,
.kk_menu_default_hidden.kk-fs-g .kk-info-trigger,
.kk_menu_default_hidden.kk-template-fullscreen .kk-thumbs-trigger,
.kk_menu_classic .menu-wrapper,
.dark-skin.kk_menu_classic .menu-wrapper {
color: <?php echo get_option( 'toppic_theme_menu_links_color' )?>;
}
.kk_menu_left_boxed .kk-mobile-trigger span,
.kk_menu_left_boxed .kk-mobile-trigger span:before,
.kk_menu_left_boxed .kk-mobile-trigger span:after,
.kk_menu_default .kk-mobile-trigger span,
.kk_menu_default .kk-mobile-trigger span:before,
.kk_menu_default .kk-mobile-trigger span:after,
.kk_menu_default_hidden .kk-mobile-trigger span,
.kk_menu_default_hidden .kk-mobile-trigger span:before,
.kk_menu_default_hidden .kk-mobile-trigger span:after,
.kk_menu_default_hidden .kk-menu-trigger span,
.kk_menu_default_hidden .kk-menu-trigger span:before,
.kk_menu_default_hidden .kk-menu-trigger span:after,
.kk-menu-open .kk-menu-trigger span:before,
.kk-menu-open .kk-menu-trigger span:after,
.kk_menu_fullscreen.kk-menu-open .kk-menu-trigger span:before,
.kk_menu_fullscreen.kk-menu-open .kk-menu-trigger span:after {
background-color: <?php echo get_option( 'toppic_theme_menu_links_color' )?>;
}
/* custom css */
<?php echo stripslashes(get_option("toppic_theme_custom_css"))?>
</style>

175
css/meta-style.css Normal file
View File

@@ -0,0 +1,175 @@
/*
Styles for meta boxes
Benue theme by Kotofey
*/
.rwmb-label {
margin: 1em 0;
}
.rwmb-input {
margin: 1em 0;
}
.rwmb-label label {
font-weight: 600;
}
/* .rwmb-field.projimg_wrapper,
#kktfwp-homepage-settings,
.kktfwp-filter-wrapper,
.kktfwp-columns-wrapper,
.kktfwp-gaps-wrapper,
.kktfwp-video-wrapper,
.kktfwp-visibility-wrapper,
.kktfwp-ppp,
.kktfwp-offset,
.kktfwp-load-more,
.kktfwp-portfolio-style-wrapper {
display: none;
} */
div[id^="kktfwp"] .rwmb-tabs-left .rwmb-tab-nav {
width: 160px;
background-color: #f7f7f7;
}
div[id^="kktfwp"] .rwmb-tabs-left .rwmb-tab-nav li {
border-left: 4px solid transparent;
border-bottom: 1px solid #e5e5e5;
}
div[id^="kktfwp"] .rwmb-tabs-left .rwmb-tab-nav li[class*="active"] {
border-left-color: #0073aa;
border-top-color: transparent;
font-weight: 500;
}
div[id^="kktfwp"] .rwmb-tabs-left .rwmb-tab-nav li[data-panel="portfolio"] {
display: none;
}
div[id^="kktfwp"] .rwmb-tabs-left .rwmb-tab-nav a {
padding: 24px 12px;
color: #444;
transition: background-color .2s linear;
}
div[id^="kktfwp"] .rwmb-tabs-left .rwmb-tab-nav a:hover {
background-color: #fff;
}
div[id^="kktfwp"] .rwmb-tabs-left .rwmb-tab-nav i {
vertical-align: bottom;
}
div[id^="kktfwp"] .rwmb-group-wrapper .rwmb-input:last-child {
margin-bottom: 0;
}
div[id^="kktfwp"] .rwmb-range {
margin: 8px 0;
padding: 3px 5px;
border-radius: 3px;
border: 1px solid transparent;
-webkit-appearance: none;
width: 100%;
max-width: 240px;
}
div[id^="kktfwp"] .rwmb-range:focus {
outline: none;
}
div[id^="kktfwp"] .rwmb-range::-webkit-slider-runnable-track {
cursor: pointer;
height: 8px;
background: transparent;
border: 0;
}
div[id^="kktfwp"] .rwmb-range::-webkit-slider-thumb {
cursor: pointer;
border: 1px solid transparent;
width: 26px;
height: 22px;
margin-top: -10px;
border-radius: 3px;
background: #f7f7f7;
-webkit-appearance: none;
box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
div[id^="kktfwp"] .rwmb-range:focus::-webkit-slider-runnable-track {
background: transparent;
}
div[id^="kktfwp"] .rwmb-range::-moz-range-track {
cursor: pointer;
height: 8px;
cursor: pointer;
background: transparent;
border: 1px solid #D9D9D9;
}
div[id^="kktfwp"] .rwmb-range::-moz-range-thumb {
cursor: pointer;
width: 26px;
height: 22px;
border: 1px solid #D9D9D9;
border-radius: 3px;
background: #f7f7f7;
box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
div[id^="kktfwp"] .rwmb-range::-ms-track {
cursor: pointer;
height: 8px;
background: transparent;
border-color: transparent;
border-width: 28px 0;
color: transparent;
}
div[id^="kktfwp"] .rwmb-range::-ms-fill-lower {
background: transparent;
border: 1px solid #D9D9D9;
box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
div[id^="kktfwp"] .rwmb-range::-ms-fill-upper {
background: transparent;
border: 1px solid #D9D9D9;
box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
div[id^="kktfwp"] .rwmb-range::-ms-thumb {
cursor: pointer;
width: 26px;
height: 22px;
border: 1px solid #D9D9D9;
border-radius: 3px;
background: #f7f7f7;
box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
div[id^="kktfwp"] .rwmb-range:focus::-ms-fill-lower {
background: transparent;
}
div[id^="kktfwp"] .rwmb-range:focus::-ms-fill-upper {
background: transparent;
}
.media-modal .attachment-details .setting.vc-image-filter-setting {
display: none;
}
.media-modal .media-sidebar .attachment-details .setting.vc-image-filter-setting {
display: block;
}
.customize-control-title {
color: #000;
}
.customize-control {
margin-bottom: 16px;
}
input {
border: 1px solid #ddd;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
color: #32373c;
}
.rwmb-input .description {
margin-top: 10px;
}
.edit-post-layout__metaboxes:not(:empty) .editor-meta-boxes-area {
max-width: 100% !important;
}
/*# sourceMappingURL=meta-style.css.map */

218
css/options.css Normal file
View File

@@ -0,0 +1,218 @@
.colorpicker {
width: 356px;
height: 176px;
overflow: hidden;
position: absolute;
background: url(../admin/i/colorpicker/colorpicker_background.png);
font-family: Arial, Helvetica, sans-serif;
display: none;
z-index:9999!important;
}
.colorpicker_color {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: #f00;
overflow: hidden;
cursor: crosshair;
}
.colorpicker_color div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url(../admin/i/colorpicker/colorpicker_overlay.png);
}
.colorpicker_color div div {
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url(../admin/i/colorpicker/colorpicker_select.gif);
margin: -5px 0 0 -5px;
}
#option_wrapper {
background: none repeat scroll 0 0 #232323;
color: #e0e0e0;
right: -200px;
padding: 0 0 15px;
position: fixed;
top: 85px;
opacity:0.9;
width: 200px;
z-index: 9999 !important;
}
#settings-button {
cursor: pointer;
right: 200px;
position: absolute;
float:right;
top: 10px;
z-index: 9999!important;
}
#headerBG, #footerBG, #contentBG , #headersBG , #metaBG, #titleBG, #borderBG, #imagesBG, #textcol {
cursor: pointer;
height: 25px;
position: relative;
width: 50px;
z-index: 99999;
border:1px solid #555555;
float: left;
margin-right: 10px;
}
.colorpicker_hue {
position: absolute;
top: 13px;
left: 171px;
width: 35px;
height: 150px;
cursor: n-resize;
}
.colorpicker_hue div {
position: absolute;
width: 35px;
height: 9px;
overflow: hidden;
background: url(../admin/i/colorpicker/colorpicker_indic.gif) left top;
margin: -4px 0 0 0;
left: 0px;
}
.colorpicker_new_color {
position: absolute;
width: 60px;
height: 30px;
left: 213px;
top: 13px;
background: #f00;
}
.colorpicker_current_color {
position: absolute;
width: 60px;
height: 30px;
left: 283px;
top: 13px;
background: #f00;
}
.colorpicker input {
background-color: transparent;
border: 1px solid transparent;
position: absolute;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #898989;
top: 4px;
right: 11px;
text-align: right;
margin: 0;
padding: 0;
height: 12px;
width:40px!important;
height:14px!important;
}
.colorpicker_hex {
position: absolute;
width: 72px;
height: 22px;
background: url(../admin/i/colorpicker/colorpicker_hex.png) top;
left: 212px;
top: 142px;
}
.colorpicker_hex input {
right: 6px;
}
.colorpicker_field {
height: 22px;
width: 62px;
background-position: top;
position: absolute;
}
.colorpicker_field span {
position: absolute;
width: 12px;
height: 22px;
overflow: hidden;
top: 0;
right: 0;
cursor: n-resize;
}
.colorpicker_rgb_r {
background-image: url(../admin/i/colorpicker/colorpicker_rgb_r.png);
top: 52px;
left: 212px;
}
.colorpicker_rgb_g {
background-image: url(../admin/i/colorpicker/colorpicker_rgb_g.png);
top: 82px;
left: 212px;
}
.colorpicker_rgb_b {
background-image: url(../admin/i/colorpicker/colorpicker_rgb_b.png);
top: 112px;
left: 212px;
}
.colorpicker_hsb_h {
background-image: url(../admin/i/colorpicker/colorpicker_hsb_h.png);
top: 52px;
left: 282px;
}
.colorpicker_hsb_s {
background-image: url(../admin/i/colorpicker/colorpicker_hsb_s.png);
top: 82px;
left: 282px;
}
.colorpicker_hsb_b {
background-image: url(../admin/i/colorpicker/colorpicker_hsb_b.png);
top: 112px;
left: 282px;
}
.patterns {
cursor: pointer;
float: left;
height: 25px;
margin: 5px;
width: 25px;
}
.colorpicker_submit {
position: absolute;
width: 22px;
height: 22px;
background: url(../admin/i/colorpicker/colorpicker_submit.png) top;
left: 322px;
top: 142px;
overflow: hidden;
}
.colorpicker_focus {
background-position: center;
}
.colorpicker_hex.colorpicker_focus {
background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
background-position: bottom;
}
.colorpicker_slider {
background-position: bottom;
}
.colorSelector {
position: relative;
width: 27px;
height: 27px;
background: url(../admin/i/colorpicker/select.png);
float:left;
}
.colorSelector div {
position: absolute;
top: 4px;
left: 3px;
width: 21px;
height: 19px;
background: url(../admin/i/colorpicker/select.png) center;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 869 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

53
css/reset original.css Normal file
View File

@@ -0,0 +1,53 @@
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none},q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
.clearfix:after, .clear:after {
content: '';
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
html[xmlns] .clearfix {
clear:both;
}
* html .clearfix {
height: 1%;
}
*, *:before, *:after {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.admin-bar .fullscreen-top-fixed {
padding-top: 32px;
}
input::-webkit-input-placeholder {
font-weight: 300;
color: #7B7B7B;
transition: line-height 0.3s ease;
}
input:focus::-webkit-input-placeholder {
line-height: 100px;
transition: line-height 0.5s ease;
}
input::-moz-placeholder {
font-weight: 300;
color: #7B7B7B;
}
input:-ms-input-placeholder {
font-weight: 300;
color: #7B7B7B;
transition: line-height 0.5s ease;
}
input:focus:-ms-input-placeholder {
line-height: 100px;
transition: line-height 0.5s ease;
}

61
css/reset.css Normal file
View File

@@ -0,0 +1,61 @@
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none},q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
/**/
.clearfix:after, .clear:after {
content: '';
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
html[xmlns] .clearfix {
clear:both;
}
* html .clearfix {
height: 1%;
}
/* Origine: border-box */
*, *:before, *:after {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
/*
*, *:before, *:after {
box-sizing: content-box;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
}
*/
.admin-bar .fullscreen-top-fixed {
padding-top: 32px;
}
input::-webkit-input-placeholder {
font-weight: 300;
color: #7B7B7B;
transition: line-height 0.3s ease;
}
input:focus::-webkit-input-placeholder {
line-height: 100px;
transition: line-height 0.5s ease;
}
input::-moz-placeholder {
font-weight: 300;
color: #7B7B7B;
}
input:-ms-input-placeholder {
font-weight: 300;
color: #7B7B7B;
transition: line-height 0.5s ease;
}
input:focus:-ms-input-placeholder {
line-height: 100px;
transition: line-height 0.5s ease;
}

766
css/responsive.css Normal file
View File

@@ -0,0 +1,766 @@
/* Responsive styles ========================================================= */
@media screen and (max-width: 1440px) {
.kk-content-boxed.kk_menu_default .content {
width: 900px;
}
.kk-content-fullwidth.kk_menu_default .content-inner-wrapper {
width: 960px;
}
.kk_menu_left_boxed .content {
margin: 0 0 0 300px;
width: 900px;
}
.kk-content-boxed.kk_menu_default .content.kk-is-homecaption,
.kk-content-boxed.kk_menu_default_hidden .content.kk-is-homecaption {
width: 100%;
}
.kk_menu_left_boxed .content.kk-is-homecaption {
margin: 0;
padding: 0 0 0 300px;
width: 100%;
}
}
@media screen and (max-width: 1366px) {
.kk-content-boxed.kk_menu_default .content {
width: 940px;
}
.kk-content-boxed.kk_menu_default_hidden .content {
width: 890px;
}
.kk_menu_left_boxed .content {
margin: 0 0 0 280px;
width: 960px;
}
.kk_menu_fullscreen.kk-content-boxed .fullscreen-top-wrapper,
.kk_menu_fullscreen.kk-content-boxed .content,
.kk_menu_classic.kk-content-boxed .fullscreen-top-wrapper,
.kk_menu_classic.kk-content-boxed .content {
width: 900px;
}
.mfp-image-holder .mfp-content {
max-width: 80%;
}
.kk-content-fullwidth.kk_menu_default .content-inner-wrapper {
width: 93%;
max-width: 940px;
}
.kk_menu_default .fullmasonry ul li {
width: 33.333%;
}
.fullmasonry ul li {
width: 25%;
}
}
@media screen and (max-width: 1280px) {
.kk_menu_fullscreen.kk-content-fullwidth .fullscreen-top-wrapper,
.kk-content-fullwidth .content-inner-wrapper,
.kk_menu_slide_right.kk-content-fullwidth .content-inner-wrapper,
.kk_menu_fullscreen.kk-content-fullwidth .content-inner-wrapper {
width: 100%;
padding-left: 35px;
padding-right: 35px;
}
.kk-content-boxed.kk_menu_default .content {
width: 860px;
}
.kk_menu_left_boxed .content {
width: 920px;
}
.mfp-image-holder .mfp-content {
max-width: 100%;
}
.kk_menu_default.kk-content-boxed #four-col-p .portfolio-title {
max-width: 55%;
}
.mfp-custom-arrow {
display: none;
}
}
@media screen and (max-width: 1024px) {
.kk-content-boxed.kk_menu_default_hidden .content {
width: 800px;
}
.kk_menu_left_boxed .content {
width: 725px;
margin: 0 0 0 270px
}
.kk_menu_default.kk-content-boxed .content.kk-is-homecaption {
padding: 0;
position: absolute;
}
input, textarea, select {
width: auto;
}
.kk_menu_default .menu-wrapper {
padding: 20px 30px;
position: relative;
width: 800px;
margin: 0 auto;
height: 80px;
}
.kk-content-fullwidth .content {
padding: 40px 0 25px 0px;
}
.kk_menu_default.kk-template-fullscreen .menu-wrapper,
.kk_menu_default.kk-grid-active .menu-wrapper,
.kk_menu_default.kk-content-fullwidth .menu-wrapper {
width: 100%;
}
.kk_menu_default .logo {
padding: 0;
display: inline-block;
vertical-align: top;
float: left;
}
.kk_menu_default .menu-wrapper .logo img {
max-height: 40px;
width: auto;
}
.kk_menu_default .menu-wrapper .main-nav {
display: inline-block;
position: relative;
padding-left: 0;
float: right;
vertical-align: top;
}
.kk_menu_default .menu-wrapper .main-nav ul,
.kk_menu_default .menu-wrapper .footer,
.kk_menu_default_hidden .kk-mobile-trigger,
.kk_menu_left_boxed .kk-mobile-trigger {
display: none;
}
.kk_menu_default .mobile-menu {
display: inline;
}
.kk-mobile-trigger {
display: block;
right: 27px;
}
.kk-content-boxed.kk_menu_default .content {
left: 0;
width: 800px;
margin: 0 auto;
}
.kk_menu_default .royalSlider_fullscreen {
left: 0;
}
.kk-content-boxed.kk_menu_default .portfolio-wrapper #four-col-p li,
.kk-content-boxed.kk_menu_default .gallery-wrapper #four-col-p li {
width: 32.2%;
}
.kk_menu_left_boxed .portfolio-wrapper #three-col-p li,
.kk_menu_left_boxed .gallery-wrapper #three-col-p li,
.kk_menu_left_boxed .portfolio-wrapper #four-col-p li,
.kk_menu_left_boxed .gallery-wrapper #four-col-p li {
width: 48.8%;
}
.kk_menu_default.kk-template-fullscreen .royalSlider_fullscreen {
top: 80px;
}
.kk_menu_default .kk-icons-wrapper {
left: auto;
z-index: 105;
right: 70px;
top: 23px;
}
.kk-mobile-trigger {
}
.kk_menu_default.kk-fs-g .kk-info-trigger,
.kk_menu_default .kk-thumbs-trigger {
background-color: transparent;
border: none;
font-size: 19px;
padding: 5px 0;
}
.kk_menu_default.kk-fs-g .kk-info-trigger:hover,
.kk_menu_default .kk-thumbs-trigger:hover,
.kk_menu_default .kk-thumbs-trigger.activeThumb {
background-color: transparent;
color: #fff;
border-color: transparent;
}
.fullmasonry {
padding-left: 0;
}
.kk_menu_default.kk-grid-active .kk-icons-wrapper,
.kk_menu_default.page-template-template-homepage-grid .kk-icons-wrapper,
.kk_menu_default_hidden.page-template-template-homepage-grid .kk-icons-wrapper {
position: absolute;
}
.info-fs-form .content-inner-wrapper {
width: 100%;
padding: 0 70px;
}
.kk_menu_slide_right .main-nav li a,
.kk_menu_fullscreen .main-nav li a {
font-size: 24px;
padding: 10px 30px;
}
}
@media screen and (max-width: 768px) {
.kk-content-boxed.kk_menu_default_hidden .content {
width: 698px;
}
.kk-content-boxed.kk_menu_default_hidden .inner-content,
.kk-content-boxed.kk_menu_default_hidden .sidebar {
float: none!important;
width: 100%;
}
.kk_menu_left_boxed .content {
margin: 0;
width: 100%;
top: 0;
}
.kk_menu_fullscreen.kk-content-boxed .fullscreen-top-wrapper,
.kk_menu_fullscreen.kk-content-boxed .content,
.kk_menu_classic.kk-content-boxed .fullscreen-top-wrapper,
.kk_menu_classic.kk-content-boxed .content {
width: 100%;
}
.portfolio-wrapper #four-col-p li,
.gallery-wrapper #four-col-p li,
.kk_menu_default_hidden .portfolio-wrapper #three-col-p li,
.kk_menu_default_hidden .gallery-wrapper #three-col-p li {
width: 48.2%;
}
.kk_menu_default .portfolio-wrapper #four-col-p li,
.kk_menu_default .gallery-wrapper #four-col-p li {
width: 32.2%;
}
.kk_menu_default_hidden .fullmasonry ul li {
width: 33.333%;
}
.kk_menu_default .menu-wrapper,
.kk-content-boxed.kk_menu_default .content {
width: 100%;
}
.kk_menu_left_boxed .menu-wrapper {
padding: 20px 30px;
position: relative;
width: 100%;
margin: 0 auto;
height: 80px;
left: 0;
top: 0;
}
.kk_menu_left_boxed.kk-grid-active .menu-wrapper,
.kk_menu_left_boxed.kk-template-fullscreen .menu-wrapper,
.kk_menu_left_boxed .menu-wrapper,
.kk_menu_left_boxed .main-nav .sub-menu {
background: #222;
}
.kk_menu_left_boxed .logo {
padding: 0;
display: inline-block;
vertical-align: top;
float: left;
width: auto;
}
.kk_menu_left_boxed .logo a img {
max-height: 40px;
width: auto;
}
.kk_menu_left_boxed .menu-wrapper .main-nav {
display: inline-block;
position: relative;
padding: 0;
float: right;
vertical-align: top;
}
.kk_menu_left_boxed .menu-wrapper .footer,
.kk_menu_left_boxed .menu-wrapper .main-nav ul {
display: none;
}
.kk_menu_left_boxed .mobile-menu,
.kk_menu_left_boxed .kk-mobile-trigger {
display: block;
}
.kk_menu_left_boxed .kk-icons-wrapper {
left: auto;
z-index: 105;
right: 70px;
top: 23px;
}
.kk_menu_left_boxed.kk-fs-g .kk-info-trigger, .kk_menu_left_boxed .kk-thumbs-trigger {
background-color: transparent;
border: none;
font-size: 20px;
padding: 5px 0;
}
.kk_menu_left_boxed.kk-template-fullscreen .royalSlider_fullscreen,
.kk_menu_left_boxed .royalSlider_fullscreen {
top: 80px;
}
.kk_menu_left_boxed .fullmasonry ul li {
width: 33.333%;
}
.kk_menu_slide_right.kk-menu-open .royalSlider_fullscreen,
.kk_menu_slide_right.kk-content-fullwidth.kk-menu-open .content,
.kk_menu_slide_right.kk-menu-open .video-bg,
.kk_menu_slide_right.kk-menu-open #kenburns,
.kk_menu_slide_right.kk-menu-open .fullmasonry,
.kk-menu-open .creative-top-wrapper-bg,
.kk_menu_slide_right.kk-menu-open .kk-bg-overlay,
.kk_menu_slide_right.kk-menu-open .kk-homepage-o,
.kk_menu_slide_right.kk-menu-open .kk-fallback-img {
-webkit-transform: translate3d(-100%, 0, 0);
-ms-transform: translate(-100%, 0);
transform: translate3d(-100%, 0, 0);
}
.kk_menu_slide_right .menu-wrapper {
width: 100%;
}
.kk_menu_slide_right .post-content {
display: none;
}
.kk_menu_slide_right .main-nav li a,
.kk_menu_fullscreen .main-nav li a {
font-size: 30px;
padding: 14px 30px;
}
.kk_menu_left_boxed.kk-fs-g .kk-info-trigger:hover,
.kk_menu_left_boxed .kk-thumbs-trigger:hover,
.kk_menu_left_boxed .kk-thumbs-trigger.activeThumb {
background-color: transparent;
color: #fff;
border-color: transparent;
}
}
@media screen and (max-width: 766px) {
.kk_menu_fullscreen.kk-content-fullwidth .fullscreen-top-wrapper,
.kk-content-fullwidth .content-inner-wrapper,
.kk_menu_slide_right.kk-content-fullwidth .content-inner-wrapper,
.kk_menu_fullscreen.kk-content-fullwidth .content-inner-wrapper {
width: 100%;
padding-left: 10px;
padding-right: 10px;
}
.kk-content-fullwidth .kk-parallax-wrapper .kk-parallax-title-wrapper h1 {
font-size: 40px;
}
.kk_menu_fullscreen.kk-content-fullwidth .fullscreen-top-wrapper {
padding: 20px 10px 10px 10px;
}
.kk_menu_fullscreen .fullscreen-top-wrapper {
padding: 20px 10px 10px 10px;
}
.kk_menu_default .menu-wrapper,
.kk_menu_left_boxed .menu-wrapper {
width: 100%;
margin: 0;
padding: 20px 10px;
}
.kk_menu_left_boxed .content.kk-is-homecaption {
margin: 0 auto;
padding: 0;
}
.gallery-wrapper[data-layout="2-column"] li,
.gallery-wrapper[data-layout="3-column"] li,
.gallery-wrapper[data-layout="4-column"] li {
width: 48.2%;
}
.kk-content-fullwidth.kk_menu_default_hidden .content {
padding: 0 0 0 30px;
}
.portfolio-wrapper #three-col-p li,
.gallery-wrapper #three-col-p li,
.kk_menu_default .portfolio-wrapper #four-col-p li,
.kk_menu_default .gallery-wrapper #four-col-p li {
width: 48.2%;
}
.kk-content-boxed .content-inner-wrapper {
padding: 0 10px 0 10px;
}
#multi li {
width: 32.2%;
}
.effect-zoom img {
width: 100%;
}
.blog-meta {
line-height: 2em;
}
.inner-content,
.sidebar {
float: none;
width: 100%;
}
.single-portfolio .sidebar {
display: none;
}
.post-content {
display: none;
}
.page-title h1,
.post-title h1,
.kk-woo-shop .page-title,
.single-product .kk-woo-shop h1.product_title {
font-size: 42px;
}
.page-title,
.post-title,
.kk-woo-shop .page-title,
.single-product .kk-woo-shop h1.product_title {
text-align: center;
}
.divider {
margin: 0 auto 50px;
}
.kk_vc .vc_row-fluid .wpb_column {
margin-bottom: 30px;
}
.kk-search-close,
.kk-info-close {
top: 5px;
right: 5px;
}
blockquote {
margin: 0 0px 20px 0px;
}
.info-fs-form .content-inner-wrapper {
padding: 0 25px;
}
.mfp-custom-arrow {
padding: 0;
font-size: 32px;
margin-top: -22px;
}
.fullmasonry ul li {
width: 33.333%;
}
.kk_menu_default_hidden .mobile-menu {
display: block;
opacity: 1;
width: 190px;
background-color: #383838;
color: #FFF;
border-color: #444;
}
.kk_menu_default_hidden .menu-wrapper .main-nav ul {
display: none;
}
.kk_menu_default_hidden .menu-wrapper {
-webkit-transform: translate3d(-90%, 0, 0);
transform: translate3d(-90%, 0, 0);
}
.kk_menu_default_hidden .menu-helper {
width: 30px;
}
.kk_menu_default_hidden .kk-menu-trigger span,
.kk_menu_default_hidden .kk-menu-trigger span:before,
.kk_menu_default_hidden .kk-menu-trigger span:after {
width: 18px;
height: 2px;
}
.kk_menu_default_hidden .kk-menu-trigger span:after {
top: 6px;
}
.kk_menu_default_hidden .kk-menu-trigger span:before {
top: -6px;
}
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span,
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span:before,
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span:after {
width: 18px;
}
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span:after {
-webkit-transform: translate3d(0, -6px, 0) rotate(-225deg);
-ms-transform: translate3d(0, -6px, 0) rotate(-225deg);
transform: translate3d(0, -6px, 0) rotate(-225deg);
}
.kk_menu_default_hidden.kk-menu-open .kk-menu-trigger span:before {
-webkit-transform: translate3d(0, 6px, 0) rotate(45deg);
-ms-transform: translate3d(0, 6px, 0) rotate(45deg);
transform: translate3d(0, 6px, 0) rotate(45deg);
}
.kk_menu_default_hidden .kk-search {
font-size: 18px;
left: 1px;
}
.kk_menu_default_hidden.kk-fs-g .kk-info-trigger,
.kk_menu_default_hidden.kk-template-fullscreen .kk-thumbs-trigger {
font-size: 16px;
}
.icons-wrapper {
left: 0;
top: 5px;
}
.kk_menu_default_hidden .icons-wrapper .kk-menu-trigger,
.kk_menu_default_hidden .kk-search,
.kk_menu_default_hidden.kk-fs-g .kk-info-trigger {
margin-bottom: 6px;
}
.search-fs-form .searchform {
width: 85%;
}
.search-fs-form .searchform input[type="text"] {
font-size: 14px;
font-weight: 600;
}
.kk_menu_default_hidden .royalSlider_fullscreen,
.kk_menu_default_hidden.kk-menu-open .royalSlider_fullscreen {
left: 30px;
}
.kk-content-boxed.kk_menu_default_hidden .content {
-webkit-transform: translate3d(30px, 0, 0);
transform: translate3d(30px, 0, 0);
}
.kk-content-boxed.kk_menu_default_hidden .content {
width: 100%;
margin-left: -17px;
}
.kk_menu_default_hidden .fullmasonry,
.kk_menu_default_hidden.kk-menu-open .fullmasonry {
padding-left: 30px;
}
.kk-thumbs-on .rsKK .rsThumbs {
z-index: 95;
}
.kk_menu_slide_right .social {
float: none;
width: 100%;
display: block;
max-width: 100%;
}
.kk_menu_slide_right .footer,
.kk_menu_slide_right.kk-content-fullwidth.kk-is-borders .footer {
text-align: center;
padding: 0 10px 10px 10px;
}
.kk_menu_slide_right .main-nav li a,
.kk_menu_fullscreen .main-nav li a {
font-size: 16px;
padding: 3px 15px;
}
.kk_menu_slide_right .creative-top-wrapper,
.kk_menu_slide_right .creative-top-wrapper-fixed,
.kk_menu_slide_right.kk-content-fullwidth.kk-is-borders .creative-top-wrapper,
.kk_menu_slide_right.kk-content-fullwidth.kk-is-borders .creative-top-wrapper-fixed {
padding: 15px 10px 15px 10px;
}
.kk_menu_slide_right .creative-top-wrapper .logo img,
.kk_menu_fullscreen .logo img {
max-height: 35px;
width: auto;
}
.kk_menu_default .kk-icons-wrapper,
.kk_menu_left_boxed .kk-icons-wrapper {
right: 50px;
}
.kk-mobile-trigger {
display: block;
right: 7px;
}
body.kk-is-borders {
margin-top: 0;
}
.kk_menu_slide_right.kk-content-fullwidth.kk-is-borders .kk-borders {
display: none;
}
.kk_menu_slide_right .main-nav .sub-menu li.dl-back a,
.kk_menu_fullscreen .main-nav .sub-menu li.dl-back a {
font-size: 12px;
}
.kk_menu_slide_right.kk-content-fullwidth.kk-is-borders .royalSlider_fullscreen,
.kk_menu_slide_right.kk-content-fullwidth.kk-is-borders .fullmasonry .gallery-full-masonry {
padding: 0;
}
}
@media screen and (max-width: 440px) {
.gallery-wrapper[data-layout="2-column"] li,
.gallery-wrapper[data-layout="3-column"] li,
.gallery-wrapper[data-layout="4-column"] li,
.portfolio-wrapper #three-col-p li,
.gallery-wrapper #three-col-p li,
.portfolio-wrapper #four-col-p li,
.gallery-wrapper #four-col-p li,
.kk_menu_default_hidden .portfolio-wrapper #three-col-p li,
.kk_menu_default_hidden .gallery-wrapper #three-col-p li,
.kk_menu_left_boxed .portfolio-wrapper #three-col-p li,
.kk_menu_left_boxed .gallery-wrapper #three-col-p li,
.kk_menu_left_boxed .portfolio-wrapper #four-col-p li,
.kk_menu_left_boxed .gallery-wrapper #four-col-p li {
width: 100%;
}
.portfolio-wrapper #three-col-p li,
.gallery-wrapper #three-col-p li,
.portfolio-wrapper #four-col-p li,
.gallery-wrapper #four-col-p li {
margin-bottom: 30px;
}
.portfolio-title,
.kk-likes-portfolio {
float: none;
max-width: 100%;
text-align: center;
}
.kk-search-close span,
.kk-search-close span:before,
.kk-search-close span:after,
.kk-info-close span,
.kk-info-close span:before,
.kk-info-close span:after {
width: 18px;
}
.blog-content .blog-title,
.quote-text {
font-size: 20px;
line-height: 1.5em;
}
.fullmasonry ul li,
.kk_menu_default_hidden .fullmasonry ul li,
.kk_menu_left_boxed .fullmasonry ul li {
width: 50%;
}
}

294
css/royalslider.css Normal file
View File

@@ -0,0 +1,294 @@
/* v1.0.5 */
/* Core RS CSS file. 95% of time you shouldn't change anything here. */
.royalSlider {
width: 100%;
height: 400px;
position: relative;
direction: ltr;
}
.royalSlider > * {
float: left;
}
.rsWebkit3d .rsSlide {
-webkit-transform: none;
}
.royalSlider img {
width: 100%;
height: auto;
display: block;
}
.royalSlider {
overflow: hidden;
}
.royalSlider > img {
visibility: hidden;
/* or display:none depending on your needs... */
}
.royalSlider_fullscreen {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0; /* height of thumbs (if not required set to 0) */
height: auto; /* optionally add !important for WP version */
width: auto;
overflow: hidden;
-webkit-backface-visibility: hidden;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.rsImg {
display: block;
}
.rsWebkit3d .rsSlide,
.rsWebkit3d .rsContainer,
.rsWebkit3d .rsThumbs,
.rsWebkit3d .rsPreloader,
.rsWebkit3d img,
.rsWebkit3d .rsOverflow,
.rsWebkit3d .rsBtnCenterer,
.rsWebkit3d .rsAbsoluteEl,
.rsWebkit3d .rsABlock,
.rsWebkit3d .rsLink {
-webkit-backface-visibility: hidden;
}
.rsFade.rsWebkit3d .rsSlide,
.rsFade.rsWebkit3d img,
.rsFade.rsWebkit3d .rsContainer {
-webkit-transform: none;
}
.rsOverflow {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
float: left;
-webkit-tap-highlight-color:rgba(0,0,0,0);
}
.rsVisibleNearbyWrap {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
left: 0;
top: 0;
-webkit-tap-highlight-color:rgba(0,0,0,0);
}
.rsVisibleNearbyWrap .rsOverflow {
position: absolute;
left: 0;
top: 0;
}
.rsContainer {
position: relative;
width: 100%;
height: 100%;
-webkit-tap-highlight-color:rgba(0,0,0,0);
}
.rsArrow,
.rsThumbsArrow {
cursor: pointer;
}
.rsThumb {
float: left;
position: fixed;
left: 300;
bottom: 0;
}
.rsArrow,
.rsNav,
.rsThumbsArrow,
.rsArrowIcn {
opacity: 1;
-webkit-transition: opacity 0.3s linear, left 0.3s ease, right 0.3s ease;
-moz-transition: opacity 0.3s linear, left 0.3s ease, right 0.3s ease;
-o-transition: opacity 0.3s linear, left 0.3s ease, right 0.3s ease;
transition: opacity 0.3s linear, left 0.3s ease, right 0.3s ease;
}
.rsHidden {
opacity: 0;
visibility: hidden;
-webkit-transition:visibility 0s linear 0.3s,opacity 0.3s linear;
-moz-transition:visibility 0s linear 0.3s,opacity 0.3s linear;
-o-transition:visibility 0s linear 0.3s,opacity 0.3s linear;
transition:visibility 0s linear 0.3s,opacity 0.3s linear;
}
.rsGCaption {
width: 100%;
float: left;
text-align: center;
}
/* Fullscreen options, very important ^^ */
.royalSlider.rsFullscreen {
position: fixed !important;
height: auto !important;
width: auto !important;
margin: 0 !important;
padding: 0 !important;
z-index: 2147483647 !important;
top: 0 !important;
left: 0 !important;
bottom: 0 !important;
right: 0 !important;
}
.royalSlider .rsSlide.rsFakePreloader {
opacity: 1 !important;
-webkit-transition: 0s;
-moz-transition: 0s;
-o-transition: 0s;
transition: 0s;
display: none;
}
.rsSlide {
position: absolute;
left: 0;
top: 0;
display: block;
overflow: hidden;
height: 100%;
width: 100%;
}
.royalSlider.rsAutoHeight,
.rsAutoHeight .rsSlide {
height: auto;
}
.rsContent {
width: 100%;
height: 100%;
position: relative;
}
.rsPreloader {
position:absolute;
z-index: 0;
}
.rsNav {
-moz-user-select: -moz-none;
-webkit-user-select: none;
user-select: none;
}
.rsNavItem {
-webkit-tap-highlight-color:rgba(0,0,0,0.25);
}
.rsThumbs {
cursor: pointer;
position: relative;
overflow: hidden;
float: left;
z-index: 22;
}
.rsTabs {
float: left;
background: none !important;
}
.rsTabs,
.rsThumbs {
-webkit-tap-highlight-color:rgba(0,0,0,0);
-webkit-tap-highlight-color:rgba(0,0,0,0);
}
.rsVideoContainer {
/*left: 0;
top: 0;
position: absolute;*/
/*width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
float: left;*/
width: auto;
height: auto;
line-height: 0;
position: relative;
}
.rsVideoFrameHolder {
position: absolute;
left: 0;
top: 0;
background: #141414;
opacity: 0;
-webkit-transition: .3s;
}
.rsVideoFrameHolder.rsVideoActive {
opacity: 1;
}
.rsVideoContainer iframe,
.rsVideoContainer video,
.rsVideoContainer embed,
.rsVideoContainer .rsVideoObj {
position: absolute;
z-index: 50;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
/* ios controls over video bug, shifting video */
.rsVideoContainer.rsIOSVideo iframe,
.rsVideoContainer.rsIOSVideo video,
.rsVideoContainer.rsIOSVideo embed {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding-right: 44px;
}
.rsABlock {
left: 0;
top: 0;
position: absolute;
z-index: 15;
}
img.rsImg {
max-width: none;
}
.grab-cursor {
cursor:url(../images/grab.png) 8 8, move;
}
.grabbing-cursor{
cursor:url(../images/grabbing.png) 8 8, move;
}
.rsNoDrag {
cursor: auto;
}
.rsLink {
left:0;
top:0;
position:absolute;
width:100%;
height:100%;
display:block;
z-index: 20;
background: url(blank.gif);
}

480
css/rs-default.css Normal file
View File

@@ -0,0 +1,480 @@
/******************************
*
* RoyalSlider Default Skin
*
* 1. Arrows
* 2. Bullets
* 3. Thumbnails
* 4. Tabs
* 5. Fullscreen button
* 6. Play/close video button
* 7. Preloader
* 8. Caption
*
* Sprite: 'rs-default.png'
* Feel free to edit anything
* If you don't some part - just delete it
*
******************************/
/* Background */
.rsDefault,
.rsDefault .rsOverflow,
.rsDefault .rsSlide,
.rsDefault .rsVideoFrameHolder,
.rsDefault .rsThumbs {
background: #151515;
color: #FFF;
}
/***************
*
* 1. Arrows
*
****************/
.rsDefault .rsArrow {
height: 44px;
width: 44px;
position: absolute;
display: block;
cursor: pointer;
z-index: 21;
}
.rsDefault.rsVer .rsArrow {
width: 100%;
height: 44px;
}
.rsDefault.rsVer .rsArrowLeft { top: 0; left: 0; }
.rsDefault.rsVer .rsArrowRight { bottom: 0; left: 0; }
.rsDefault.rsHor .rsArrowLeft { left: -25px; top: 50%; margin-top: -22px; }
.rsDefault.rsHor .rsArrowRight { right: -25px; top: 50%; margin-top: -22px; }
.rsDefault .rsArrowIcn {
width: 32px;
height: 32px;
top: 50%;
left: 50%;
margin-top:-16px;
margin-left: -16px;
position: absolute;
cursor: pointer;
background: url('../images/rs-default.png');
background-color: #000;
background-color: rgba(0,0,0,0.75);
*background-color: #000;
border-radius: 2px;
}
.rsDefault .rsArrowIcn:hover {
background-color: rgba(0,0,0,0.9);
}
.rsDefault.rsHor .rsArrowLeft .rsArrowIcn { background-position: -64px -32px; }
.rsDefault.rsHor .rsArrowRight .rsArrowIcn { background-position: -64px -64px; }
.rsDefault.rsVer .rsArrowLeft .rsArrowIcn { background-position: -96px -32px; }
.rsDefault.rsVer .rsArrowRight .rsArrowIcn { background-position: -96px -64px; }
.rsDefault .rsArrowDisabled .rsArrowIcn { opacity: .2; filter: alpha(opacity=20); *display: none; }
/***************
*
* 2. Bullets
*
****************/
.rsDefault .rsBullets {
position: absolute;
z-index: 35;
left: 0;
bottom: 0;
width: 100%;
height: auto;
margin: 0 auto;
background: #000;
background: rgba(0,0,0,0.75);
text-align: center;
line-height: 8px;
overflow: hidden;
}
.rsDefault .rsBullet {
width: 8px;
height: 8px;
display: inline-block;
*display:inline;
*zoom:1;
padding: 6px 5px 6px;
}
.rsDefault .rsBullet span {
display: block;
width: 8px;
height: 8px;
border-radius: 50%;
background: #777;
background: rgba(255,255,255,0.5);
}
.rsDefault .rsBullet.rsNavSelected span {
background-color: #FFF;
}
/***************
*
* 3. Thumbnails
*
****************/
.rsDefault .rsThumbsHor {
width: 100%;
height: 72px;
}
.rsDefault .rsThumbsVer {
width: 96px;
height: 100%;
position: absolute;
top: 0;
right: 0;
}
.rsDefault.rsWithThumbsHor .rsThumbsContainer {
position: relative;
height: 100%;
}
.rsDefault.rsWithThumbsVer .rsThumbsContainer {
position: relative;
width: 100%;
}
.rsDefault .rsThumb {
float: left;
overflow: hidden;
width: 96px;
height: 72px;
}
.rsDefault .rsThumb img {
width: 100%;
height: 100%;
}
.rsDefault .rsThumb.rsNavSelected {
background: #02874a;
}
.rsDefault .rsThumb.rsNavSelected img {
opacity: 0.3;
filter: alpha(opacity=30);
}
.rsDefault .rsTmb {
display: block;
}
/* Thumbnails with text */
.rsDefault .rsTmb h5 {
font-size: 16px;
margin: 0;
padding: 0;
line-height: 20px;
color: #FFF;
}
.rsDefault .rsTmb span {
color: #DDD;
margin: 0;
padding: 0;
font-size: 13px;
line-height: 18px;
}
/* Thumbnails arrow icons */
.rsDefault .rsThumbsArrow {
height: 100%;
width: 20px;
position: absolute;
display: block;
cursor: pointer;
z-index: 21;
background: #000;
background: rgba(0,0,0,0.75);
}
.rsDefault .rsThumbsArrow:hover {
background: rgba(0,0,0,0.9);
}
.rsDefault.rsWithThumbsVer .rsThumbsArrow {
width: 100%;
height: 20px;
}
.rsDefault.rsWithThumbsVer .rsThumbsArrowLeft { top: 0; left: 0; }
.rsDefault.rsWithThumbsVer .rsThumbsArrowRight { bottom: 0; left: 0; }
.rsDefault.rsWithThumbsHor .rsThumbsArrowLeft { left: 0; top: 0; }
.rsDefault.rsWithThumbsHor .rsThumbsArrowRight { right: 0; top:0; }
.rsDefault .rsThumbsArrowIcn {
width: 16px;
height: 16px;
top: 50%;
left: 50%;
margin-top:-8px;
margin-left: -8px;
position: absolute;
cursor: pointer;
background: url('rs-default.png');
}
.rsDefault.rsWithThumbsHor .rsThumbsArrowLeft .rsThumbsArrowIcn { background-position: -128px -32px; }
.rsDefault.rsWithThumbsHor .rsThumbsArrowRight .rsThumbsArrowIcn { background-position: -128px -48px; }
.rsDefault.rsWithThumbsVer .rsThumbsArrowLeft .rsThumbsArrowIcn { background-position: -144px -32px; }
.rsDefault.rsWithThumbsVer .rsThumbsArrowRight .rsThumbsArrowIcn { background-position: -144px -48px; }
.rsDefault .rsThumbsArrowDisabled { display: none !important; }
/* Thumbnails resizing on smaller screens */
@media screen and (min-width: 0px) and (max-width: 800px) {
.rsDefault .rsThumb {
width: 59px;
height: 44px;
}
.rsDefault .rsThumbsHor {
height: 44px;
}
.rsDefault .rsThumbsVer {
width: 59px;
}
}
/***************
*
* 4. Tabs
*
****************/
.rsDefault .rsTabs {
width: 100%;
height: auto;
margin: 0 auto;
text-align:center;
overflow: hidden; padding-top: 12px; position: relative;
}
.rsDefault .rsTab {
display: inline-block;
cursor: pointer;
text-align: center;
height: auto;
width: auto;
color: #333;
padding: 5px 13px 6px;
min-width: 72px;
border: 1px solid #D9D9DD;
border-right: 1px solid #f5f5f5;
text-decoration: none;
background-color: #FFF;
background-image: -webkit-linear-gradient(top, #fefefe, #f4f4f4);
background-image: -moz-linear-gradient(top, #fefefe, #f4f4f4);
background-image: linear-gradient(to bottom, #fefefe, #f4f4f4);
-webkit-box-shadow: inset 1px 0 0 #fff;
box-shadow: inset 1px 0 0 #fff;
*display:inline;
*zoom:1;
}
.rsDefault .rsTab:first-child {
-webkit-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.rsDefault .rsTab:last-child {
-webkit-border-top-right-radius: 4px;
border-top-right-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
border-right: 1px solid #cfcfcf;
}
.rsDefault .rsTab:active {
border: 1px solid #D9D9DD;
background-color: #f4f4f4;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;
}
.rsDefault .rsTab.rsNavSelected {
color: #FFF;
border: 1px solid #999;
text-shadow: 1px 1px #838383;
box-shadow: 0 1px 9px rgba(102, 102, 102, 0.65) inset;
background: #ACACAC;
background-image: -webkit-linear-gradient(top, #ACACAC, #BBB);
background-image: -moz-llinear-gradient(top, #ACACAC, #BBB);
background-image: linear-gradient(to bottom, #ACACAC, #BBB);
}
/***************
*
* 5. Fullscreen button
*
****************/
.rsDefault .rsFullscreenBtn {
right: 0;
top: 0;
width: 44px;
height: 44px;
z-index: 22;
display: block;
position: absolute;
cursor: pointer;
}
.rsDefault .rsFullscreenIcn {
display: block;
margin: 6px;
width: 32px;
height: 32px;
background: url('rs-default.png') 0 0;
background-color: #000;
background-color: rgba(0,0,0,0.75);
*background-color: #000;
border-radius: 2px;
}
.rsDefault .rsFullscreenIcn:hover {
background-color: rgba(0,0,0,0.9);
}
.rsDefault.rsFullscreen .rsFullscreenIcn {
background-position: -32px 0;
}
/***************
*
* 6. Play/close video button
*
****************/
.rsDefault .rsPlayBtn {
-webkit-tap-highlight-color:rgba(0,0,0,0.3);
width:64px;
height:64px;
margin-left:-32px;
margin-top:-32px;
cursor: pointer;
}
.rsDefault .rsPlayBtnIcon {
width:64px;
display:block;
height:64px;
-webkit-border-radius: 4px;
border-radius: 4px;
-webkit-transition: .3s;
-moz-transition: .3s;
transition: .3s;
background:url(rs-default.png) no-repeat 0 -32px;
background-color: #000;
background-color: rgba(0,0,0,0.75);
*background-color: #000;
}
.rsDefault .rsPlayBtn:hover .rsPlayBtnIcon {
background-color: rgba(0,0,0,0.9);
}
.rsDefault .rsBtnCenterer {
position:absolute;
left:50%;
top:50%;
}
.rsDefault .rsCloseVideoBtn {
right: 0;
top: 0;
width: 44px;
height: 44px;
z-index: 500;
position: absolute;
cursor: pointer;
-webkit-backface-visibility: hidden;
-webkit-transform: translateZ(0);
}
.rsDefault .rsCloseVideoBtn.rsiOSBtn {
top: -38px;
right: -6px;
}
.rsDefault .rsCloseVideoIcn {
margin: 6px;
width: 32px;
height: 32px;
background: url('rs-default.png') -64px 0;
background-color: #000;
background-color: rgba(0,0,0,0.75);
*background-color: #000;
}
.rsDefault .rsCloseVideoIcn:hover {
background-color: rgba(0,0,0,0.9);
}
/***************
*
* 7. Preloader
*
****************/
.rsPreloader {
width:20px;
height:20px;
background-image:url(../images/loader.gif);
left:50%;
top:50%;
margin-left:-10px;
margin-top:-10px;
}
/***************
*
* 8. Global caption
*
****************/
.rsDefault .rsGCaption {
position: absolute;
float: none;
bottom: 6px;
left: 6px;
text-align: left;
background: rgb(0, 0, 0);
background: rgba(0, 0, 0, 0.75);
color: #FFF;
padding: 2px 8px;
width: auto;
font-size: 12px;
border-radius: 2px;
}

View File

@@ -0,0 +1,411 @@
// The following features have been deprecated and will be removed in the next MAJOR version release
@mixin inline-block {
display: inline-block;
@warn "The inline-block mixin is deprecated and will be removed in the next major version release";
}
@mixin button ($style: simple, $base-color: #4294f0, $text-size: inherit, $padding: 7px 18px) {
@if type-of($style) == string and type-of($base-color) == color {
@include buttonstyle($style, $base-color, $text-size, $padding);
}
@if type-of($style) == string and type-of($base-color) == number {
$padding: $text-size;
$text-size: $base-color;
$base-color: #4294f0;
@if $padding == inherit {
$padding: 7px 18px;
}
@include buttonstyle($style, $base-color, $text-size, $padding);
}
@if type-of($style) == color and type-of($base-color) == color {
$base-color: $style;
$style: simple;
@include buttonstyle($style, $base-color, $text-size, $padding);
}
@if type-of($style) == color and type-of($base-color) == number {
$padding: $text-size;
$text-size: $base-color;
$base-color: $style;
$style: simple;
@if $padding == inherit {
$padding: 7px 18px;
}
@include buttonstyle($style, $base-color, $text-size, $padding);
}
@if type-of($style) == number {
$padding: $base-color;
$text-size: $style;
$base-color: #4294f0;
$style: simple;
@if $padding == #4294f0 {
$padding: 7px 18px;
}
@include buttonstyle($style, $base-color, $text-size, $padding);
}
&:disabled {
cursor: not-allowed;
opacity: 0.5;
}
@warn "The button mixin is deprecated and will be removed in the next major version release";
}
// Selector Style Button
@mixin buttonstyle($type, $b-color, $t-size, $pad) {
// Grayscale button
@if $type == simple and $b-color == grayscale($b-color) {
@include simple($b-color, true, $t-size, $pad);
}
@if $type == shiny and $b-color == grayscale($b-color) {
@include shiny($b-color, true, $t-size, $pad);
}
@if $type == pill and $b-color == grayscale($b-color) {
@include pill($b-color, true, $t-size, $pad);
}
@if $type == flat and $b-color == grayscale($b-color) {
@include flat($b-color, true, $t-size, $pad);
}
// Colored button
@if $type == simple {
@include simple($b-color, false, $t-size, $pad);
}
@else if $type == shiny {
@include shiny($b-color, false, $t-size, $pad);
}
@else if $type == pill {
@include pill($b-color, false, $t-size, $pad);
}
@else if $type == flat {
@include flat($b-color, false, $t-size, $pad);
}
}
// Simple Button
@mixin simple($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
$color: hsl(0, 0, 100%);
$border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
$inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
$stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
$text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
@if is-light($base-color) {
$color: hsl(0, 0, 20%);
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
}
@if $grayscale == true {
$border: grayscale($border);
$inset-shadow: grayscale($inset-shadow);
$stop-gradient: grayscale($stop-gradient);
$text-shadow: grayscale($text-shadow);
}
border: 1px solid $border;
border-radius: 3px;
box-shadow: inset 0 1px 0 0 $inset-shadow;
color: $color;
display: inline-block;
font-size: $textsize;
font-weight: bold;
@include linear-gradient ($base-color, $stop-gradient);
padding: $padding;
text-decoration: none;
text-shadow: 0 1px 0 $text-shadow;
background-clip: padding-box;
&:hover:not(:disabled) {
$base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
$inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
$stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
@if $grayscale == true {
$base-color-hover: grayscale($base-color-hover);
$inset-shadow-hover: grayscale($inset-shadow-hover);
$stop-gradient-hover: grayscale($stop-gradient-hover);
}
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
cursor: pointer;
}
&:active:not(:disabled),
&:focus:not(:disabled) {
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
@if $grayscale == true {
$border-active: grayscale($border-active);
$inset-shadow-active: grayscale($inset-shadow-active);
}
border: 1px solid $border-active;
box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active;
}
}
// Shiny Button
@mixin shiny($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
$color: hsl(0, 0, 100%);
$border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
$border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
$fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46);
$inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12);
$second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33);
$text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
$third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
@if is-light($base-color) {
$color: hsl(0, 0, 20%);
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
}
@if $grayscale == true {
$border: grayscale($border);
$border-bottom: grayscale($border-bottom);
$fourth-stop: grayscale($fourth-stop);
$inset-shadow: grayscale($inset-shadow);
$second-stop: grayscale($second-stop);
$text-shadow: grayscale($text-shadow);
$third-stop: grayscale($third-stop);
}
@include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
border: 1px solid $border;
border-bottom: 1px solid $border-bottom;
border-radius: 5px;
box-shadow: inset 0 1px 0 0 $inset-shadow;
color: $color;
display: inline-block;
font-size: $textsize;
font-weight: bold;
padding: $padding;
text-align: center;
text-decoration: none;
text-shadow: 0 -1px 1px $text-shadow;
&:hover:not(:disabled) {
$first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
$second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
$third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
$fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63);
@if $grayscale == true {
$first-stop-hover: grayscale($first-stop-hover);
$second-stop-hover: grayscale($second-stop-hover);
$third-stop-hover: grayscale($third-stop-hover);
$fourth-stop-hover: grayscale($fourth-stop-hover);
}
@include linear-gradient(top, $first-stop-hover 0%,
$second-stop-hover 50%,
$third-stop-hover 50%,
$fourth-stop-hover 100%);
cursor: pointer;
}
&:active:not(:disabled),
&:focus:not(:disabled) {
$inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
@if $grayscale == true {
$inset-shadow-active: grayscale($inset-shadow-active);
}
box-shadow: inset 0 0 20px 0 $inset-shadow-active;
}
}
// Pill Button
@mixin pill($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
$color: hsl(0, 0, 100%);
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
$border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%);
$inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%);
$stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
$text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
@if is-light($base-color) {
$color: hsl(0, 0, 20%);
$text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
}
@if $grayscale == true {
$border-bottom: grayscale($border-bottom);
$border-sides: grayscale($border-sides);
$border-top: grayscale($border-top);
$inset-shadow: grayscale($inset-shadow);
$stop-gradient: grayscale($stop-gradient);
$text-shadow: grayscale($text-shadow);
}
border: 1px solid $border-top;
border-color: $border-top $border-sides $border-bottom;
border-radius: 16px;
box-shadow: inset 0 1px 0 0 $inset-shadow;
color: $color;
display: inline-block;
font-size: $textsize;
font-weight: normal;
line-height: 1;
@include linear-gradient ($base-color, $stop-gradient);
padding: $padding;
text-align: center;
text-decoration: none;
text-shadow: 0 -1px 1px $text-shadow;
background-clip: padding-box;
&:hover:not(:disabled) {
$base-color-hover: adjust-color($base-color, $lightness: -4.5%);
$border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
$border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
$border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%);
$inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%);
$stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%);
$text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%);
@if $grayscale == true {
$base-color-hover: grayscale($base-color-hover);
$border-bottom: grayscale($border-bottom);
$border-sides: grayscale($border-sides);
$border-top: grayscale($border-top);
$inset-shadow-hover: grayscale($inset-shadow-hover);
$stop-gradient-hover: grayscale($stop-gradient-hover);
$text-shadow-hover: grayscale($text-shadow-hover);
}
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
background-clip: padding-box;
border: 1px solid $border-top;
border-color: $border-top $border-sides $border-bottom;
box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
cursor: pointer;
text-shadow: 0 -1px 1px $text-shadow-hover;
}
&:active:not(:disabled),
&:focus:not(:disabled) {
$active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
$border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
$border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
$inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%);
$text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%);
@if $grayscale == true {
$active-color: grayscale($active-color);
$border-active: grayscale($border-active);
$border-bottom-active: grayscale($border-bottom-active);
$inset-shadow-active: grayscale($inset-shadow-active);
$text-shadow-active: grayscale($text-shadow-active);
}
background: $active-color;
border: 1px solid $border-active;
border-bottom: 1px solid $border-bottom-active;
box-shadow: inset 0 0 6px 3px $inset-shadow-active;
text-shadow: 0 -1px 1px $text-shadow-active;
}
}
// Flat Button
@mixin flat($base-color, $grayscale: false, $textsize: inherit, $padding: 7px 18px) {
$color: hsl(0, 0, 100%);
@if is-light($base-color) {
$color: hsl(0, 0, 20%);
}
background-color: $base-color;
border-radius: 3px;
border: 0;
color: $color;
display: inline-block;
font-size: $textsize;
font-weight: bold;
padding: $padding;
text-decoration: none;
background-clip: padding-box;
&:hover:not(:disabled){
$base-color-hover: adjust-color($base-color, $saturation: 4%, $lightness: 5%);
@if $grayscale == true {
$base-color-hover: grayscale($base-color-hover);
}
background-color: $base-color-hover;
cursor: pointer;
}
&:active:not(:disabled),
&:focus:not(:disabled) {
$base-color-active: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
@if $grayscale == true {
$base-color-active: grayscale($base-color-active);
}
background-color: $base-color-active;
cursor: pointer;
}
}
// Flexible grid
@function flex-grid($columns, $container-columns: $fg-max-columns) {
$width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
$container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
@return percentage($width / $container-width);
@warn "The flex-grid function is deprecated and will be removed in the next major version release";
}
// Flexible gutter
@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
$container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
@return percentage($gutter / $container-width);
@warn "The flex-gutter function is deprecated and will be removed in the next major version release";
}
@function grid-width($n) {
@return $n * $gw-column + ($n - 1) * $gw-gutter;
@warn "The grid-width function is deprecated and will be removed in the next major version release";
}
@function golden-ratio($value, $increment) {
@return modular-scale($increment, $value, $ratio: $golden);
@warn "The golden-ratio function is deprecated and will be removed in the next major version release. Please use the modular-scale function, instead.";
}
@mixin box-sizing($box) {
@include prefixer(box-sizing, $box, webkit moz spec);
@warn "The box-sizing mixin is deprecated and will be removed in the next major version release. This property can now be used un-prefixed.";
}

87
css/sass/bourbon/_bourbon.scss vendored Normal file
View File

@@ -0,0 +1,87 @@
// Bourbon 4.2.3
// http://bourbon.io
// Copyright 2011-2015 thoughtbot, inc.
// MIT License
@import "settings/prefixer";
@import "settings/px-to-em";
@import "settings/asset-pipeline";
@import "functions/assign-inputs";
@import "functions/contains";
@import "functions/contains-falsy";
@import "functions/is-length";
@import "functions/is-light";
@import "functions/is-number";
@import "functions/is-size";
@import "functions/px-to-em";
@import "functions/px-to-rem";
@import "functions/shade";
@import "functions/strip-units";
@import "functions/tint";
@import "functions/transition-property-name";
@import "functions/unpack";
@import "functions/modular-scale";
@import "helpers/convert-units";
@import "helpers/directional-values";
@import "helpers/font-source-declaration";
@import "helpers/gradient-positions-parser";
@import "helpers/linear-angle-parser";
@import "helpers/linear-gradient-parser";
@import "helpers/linear-positions-parser";
@import "helpers/linear-side-corner-parser";
@import "helpers/radial-arg-parser";
@import "helpers/radial-positions-parser";
@import "helpers/radial-gradient-parser";
@import "helpers/render-gradients";
@import "helpers/shape-size-stripper";
@import "helpers/str-to-num";
@import "css3/animation";
@import "css3/appearance";
@import "css3/backface-visibility";
@import "css3/background";
@import "css3/background-image";
@import "css3/border-image";
@import "css3/calc";
@import "css3/columns";
@import "css3/filter";
@import "css3/flex-box";
@import "css3/font-face";
@import "css3/font-feature-settings";
@import "css3/hidpi-media-query";
@import "css3/hyphens";
@import "css3/image-rendering";
@import "css3/keyframes";
@import "css3/linear-gradient";
@import "css3/perspective";
@import "css3/placeholder";
@import "css3/radial-gradient";
@import "css3/selection";
@import "css3/text-decoration";
@import "css3/transform";
@import "css3/transition";
@import "css3/user-select";
@import "addons/border-color";
@import "addons/border-radius";
@import "addons/border-style";
@import "addons/border-width";
@import "addons/buttons";
@import "addons/clearfix";
@import "addons/ellipsis";
@import "addons/font-stacks";
@import "addons/hide-text";
@import "addons/margin";
@import "addons/padding";
@import "addons/position";
@import "addons/prefixer";
@import "addons/retina-image";
@import "addons/size";
@import "addons/text-inputs";
@import "addons/timing-functions";
@import "addons/triangle";
@import "addons/word-wrap";
@import "bourbon-deprecated-upcoming";

View File

@@ -0,0 +1,26 @@
@charset "UTF-8";
/// Provides a quick method for targeting `border-color` on specific sides of a box. Use a `null` value to “skip” a side.
///
/// @param {Arglist} $vals
/// List of arguments
///
/// @example scss - Usage
/// .element {
/// @include border-color(#a60b55 #76cd9c null #e8ae1a);
/// }
///
/// @example css - CSS Output
/// .element {
/// border-left-color: #e8ae1a;
/// border-right-color: #76cd9c;
/// border-top-color: #a60b55;
/// }
///
/// @require {mixin} directional-property
///
/// @output `border-color`
@mixin border-color($vals...) {
@include directional-property(border, color, $vals...);
}

View File

@@ -0,0 +1,48 @@
@charset "UTF-8";
/// Provides a quick method for targeting `border-radius` on both corners on the side of a box.
///
/// @param {Number} $radii
/// List of arguments
///
/// @example scss - Usage
/// .element-one {
/// @include border-top-radius(5px);
/// }
///
/// .element-two {
/// @include border-left-radius(3px);
/// }
///
/// @example css - CSS Output
/// .element-one {
/// border-top-left-radius: 5px;
/// border-top-right-radius: 5px;
/// }
///
/// .element-two {
/// border-bottom-left-radius: 3px;
/// border-top-left-radius: 3px;
/// }
///
/// @output `border-radius`
@mixin border-top-radius($radii) {
border-top-left-radius: $radii;
border-top-right-radius: $radii;
}
@mixin border-right-radius($radii) {
border-bottom-right-radius: $radii;
border-top-right-radius: $radii;
}
@mixin border-bottom-radius($radii) {
border-bottom-left-radius: $radii;
border-bottom-right-radius: $radii;
}
@mixin border-left-radius($radii) {
border-bottom-left-radius: $radii;
border-top-left-radius: $radii;
}

View File

@@ -0,0 +1,25 @@
@charset "UTF-8";
/// Provides a quick method for targeting `border-style` on specific sides of a box. Use a `null` value to “skip” a side.
///
/// @param {Arglist} $vals
/// List of arguments
///
/// @example scss - Usage
/// .element {
/// @include border-style(dashed null solid);
/// }
///
/// @example css - CSS Output
/// .element {
/// border-bottom-style: solid;
/// border-top-style: dashed;
/// }
///
/// @require {mixin} directional-property
///
/// @output `border-style`
@mixin border-style($vals...) {
@include directional-property(border, style, $vals...);
}

View File

@@ -0,0 +1,25 @@
@charset "UTF-8";
/// Provides a quick method for targeting `border-width` on specific sides of a box. Use a `null` value to “skip” a side.
///
/// @param {Arglist} $vals
/// List of arguments
///
/// @example scss - Usage
/// .element {
/// @include border-width(1em null 20px);
/// }
///
/// @example css - CSS Output
/// .element {
/// border-bottom-width: 20px;
/// border-top-width: 1em;
/// }
///
/// @require {mixin} directional-property
///
/// @output `border-width`
@mixin border-width($vals...) {
@include directional-property(border, width, $vals...);
}

64
css/sass/bourbon/addons/_buttons.scss vendored Normal file
View File

@@ -0,0 +1,64 @@
@charset "UTF-8";
/// Generates variables for all buttons. Please note that you must use interpolation on the variable: `#{$all-buttons}`.
///
/// @example scss - Usage
/// #{$all-buttons} {
/// background-color: #f00;
/// }
///
/// #{$all-buttons-focus},
/// #{$all-buttons-hover} {
/// background-color: #0f0;
/// }
///
/// #{$all-buttons-active} {
/// background-color: #00f;
/// }
///
/// @example css - CSS Output
/// button,
/// input[type="button"],
/// input[type="reset"],
/// input[type="submit"] {
/// background-color: #f00;
/// }
///
/// button:focus,
/// input[type="button"]:focus,
/// input[type="reset"]:focus,
/// input[type="submit"]:focus,
/// button:hover,
/// input[type="button"]:hover,
/// input[type="reset"]:hover,
/// input[type="submit"]:hover {
/// background-color: #0f0;
/// }
///
/// button:active,
/// input[type="button"]:active,
/// input[type="reset"]:active,
/// input[type="submit"]:active {
/// background-color: #00f;
/// }
///
/// @require assign-inputs
///
/// @type List
///
/// @todo Remove double assigned variables (Lines 5962) in v5.0.0
$buttons-list: 'button',
'input[type="button"]',
'input[type="reset"]',
'input[type="submit"]';
$all-buttons: assign-inputs($buttons-list);
$all-buttons-active: assign-inputs($buttons-list, active);
$all-buttons-focus: assign-inputs($buttons-list, focus);
$all-buttons-hover: assign-inputs($buttons-list, hover);
$all-button-inputs: $all-buttons;
$all-button-inputs-active: $all-buttons-active;
$all-button-inputs-focus: $all-buttons-focus;
$all-button-inputs-hover: $all-buttons-hover;

25
css/sass/bourbon/addons/_clearfix.scss vendored Normal file
View File

@@ -0,0 +1,25 @@
@charset "UTF-8";
/// Provides an easy way to include a clearfix for containing floats.
///
/// @link http://cssmojo.com/latest_new_clearfix_so_far/
///
/// @example scss - Usage
/// .element {
/// @include clearfix;
/// }
///
/// @example css - CSS Output
/// .element::after {
/// clear: both;
/// content: "";
/// display: table;
/// }
@mixin clearfix {
&::after {
clear: both;
content: "";
display: table;
}
}

30
css/sass/bourbon/addons/_ellipsis.scss vendored Normal file
View File

@@ -0,0 +1,30 @@
@charset "UTF-8";
/// Truncates text and adds an ellipsis to represent overflow.
///
/// @param {Number} $width [100%]
/// Max-width for the string to respect before being truncated
///
/// @example scss - Usage
/// .element {
/// @include ellipsis;
/// }
///
/// @example css - CSS Output
/// .element {
/// display: inline-block;
/// max-width: 100%;
/// overflow: hidden;
/// text-overflow: ellipsis;
/// white-space: nowrap;
/// word-wrap: normal;
/// }
@mixin ellipsis($width: 100%) {
display: inline-block;
max-width: $width;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: normal;
}

View File

@@ -0,0 +1,31 @@
@charset "UTF-8";
/// Georgia font stack.
///
/// @type List
$georgia: "Georgia", "Cambria", "Times New Roman", "Times", serif;
/// Helvetica font stack.
///
/// @type List
$helvetica: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
/// Lucida Grande font stack.
///
/// @type List
$lucida-grande: "Lucida Grande", "Tahoma", "Verdana", "Arial", sans-serif;
/// Monospace font stack.
///
/// @type List
$monospace: "Bitstream Vera Sans Mono", "Consolas", "Courier", monospace;
/// Verdana font stack.
///
/// @type List
$verdana: "Verdana", "Geneva", sans-serif;

27
css/sass/bourbon/addons/_hide-text.scss vendored Normal file
View File

@@ -0,0 +1,27 @@
/// Hides the text in an element, commonly used to show an image. Some elements will need block-level styles applied.
///
/// @link http://zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
///
/// @example scss - Usage
/// .element {
/// @include hide-text;
/// }
///
/// @example css - CSS Output
/// .element {
/// overflow: hidden;
/// text-indent: 101%;
/// white-space: nowrap;
/// }
///
/// @todo Remove height argument in v5.0.0
@mixin hide-text($height: null) {
overflow: hidden;
text-indent: 101%;
white-space: nowrap;
@if $height {
@warn "The `hide-text` mixin has changed and no longer requires a height. The height argument will no longer be accepted in v5.0.0";
}
}

26
css/sass/bourbon/addons/_margin.scss vendored Normal file
View File

@@ -0,0 +1,26 @@
@charset "UTF-8";
/// Provides a quick method for targeting `margin` on specific sides of a box. Use a `null` value to “skip” a side.
///
/// @param {Arglist} $vals
/// List of arguments
///
/// @example scss - Usage
/// .element {
/// @include margin(null 10px 3em 20vh);
/// }
///
/// @example css - CSS Output
/// .element {
/// margin-bottom: 3em;
/// margin-left: 20vh;
/// margin-right: 10px;
/// }
///
/// @require {mixin} directional-property
///
/// @output `margin`
@mixin margin($vals...) {
@include directional-property(margin, false, $vals...);
}

26
css/sass/bourbon/addons/_padding.scss vendored Normal file
View File

@@ -0,0 +1,26 @@
@charset "UTF-8";
/// Provides a quick method for targeting `padding` on specific sides of a box. Use a `null` value to “skip” a side.
///
/// @param {Arglist} $vals
/// List of arguments
///
/// @example scss - Usage
/// .element {
/// @include padding(12vh null 10px 5%);
/// }
///
/// @example css - CSS Output
/// .element {
/// padding-bottom: 10px;
/// padding-left: 5%;
/// padding-top: 12vh;
/// }
///
/// @require {mixin} directional-property
///
/// @output `padding`
@mixin padding($vals...) {
@include directional-property(padding, false, $vals...);
}

48
css/sass/bourbon/addons/_position.scss vendored Normal file
View File

@@ -0,0 +1,48 @@
@charset "UTF-8";
/// Provides a quick method for setting an elements position. Use a `null` value to “skip” a side.
///
/// @param {Position} $position [relative]
/// A CSS position value
///
/// @param {Arglist} $coordinates [null null null null]
/// List of values that correspond to the 4-value syntax for the edges of a box
///
/// @example scss - Usage
/// .element {
/// @include position(absolute, 0 null null 10em);
/// }
///
/// @example css - CSS Output
/// .element {
/// left: 10em;
/// position: absolute;
/// top: 0;
/// }
///
/// @require {function} is-length
/// @require {function} unpack
@mixin position($position: relative, $coordinates: null null null null) {
@if type-of($position) == list {
$coordinates: $position;
$position: relative;
}
$coordinates: unpack($coordinates);
$offsets: (
top: nth($coordinates, 1),
right: nth($coordinates, 2),
bottom: nth($coordinates, 3),
left: nth($coordinates, 4)
);
position: $position;
@each $offset, $value in $offsets {
@if is-length($value) {
#{$offset}: $value;
}
}
}

66
css/sass/bourbon/addons/_prefixer.scss vendored Normal file
View File

@@ -0,0 +1,66 @@
@charset "UTF-8";
/// A mixin for generating vendor prefixes on non-standardized properties.
///
/// @param {String} $property
/// Property to prefix
///
/// @param {*} $value
/// Value to use
///
/// @param {List} $prefixes
/// Prefixes to define
///
/// @example scss - Usage
/// .element {
/// @include prefixer(border-radius, 10px, webkit ms spec);
/// }
///
/// @example css - CSS Output
/// .element {
/// -webkit-border-radius: 10px;
/// -moz-border-radius: 10px;
/// border-radius: 10px;
/// }
///
/// @require {variable} $prefix-for-webkit
/// @require {variable} $prefix-for-mozilla
/// @require {variable} $prefix-for-microsoft
/// @require {variable} $prefix-for-opera
/// @require {variable} $prefix-for-spec
@mixin prefixer($property, $value, $prefixes) {
@each $prefix in $prefixes {
@if $prefix == webkit {
@if $prefix-for-webkit {
-webkit-#{$property}: $value;
}
} @else if $prefix == moz {
@if $prefix-for-mozilla {
-moz-#{$property}: $value;
}
} @else if $prefix == ms {
@if $prefix-for-microsoft {
-ms-#{$property}: $value;
}
} @else if $prefix == o {
@if $prefix-for-opera {
-o-#{$property}: $value;
}
} @else if $prefix == spec {
@if $prefix-for-spec {
#{$property}: $value;
}
} @else {
@warn "Unrecognized prefix: #{$prefix}";
}
}
}
@mixin disable-prefix-for-all() {
$prefix-for-webkit: false !global;
$prefix-for-mozilla: false !global;
$prefix-for-microsoft: false !global;
$prefix-for-opera: false !global;
$prefix-for-spec: false !global;
}

View File

@@ -0,0 +1,25 @@
@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) {
@if $asset-pipeline {
background-image: image-url("#{$filename}.#{$extension}");
} @else {
background-image: url("#{$filename}.#{$extension}");
}
@include hidpi {
@if $asset-pipeline {
@if $retina-filename {
background-image: image-url("#{$retina-filename}.#{$extension}");
} @else {
background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}");
}
} @else {
@if $retina-filename {
background-image: url("#{$retina-filename}.#{$extension}");
} @else {
background-image: url("#{$filename}#{$retina-suffix}.#{$extension}");
}
}
background-size: $background-size;
}
}

51
css/sass/bourbon/addons/_size.scss vendored Normal file
View File

@@ -0,0 +1,51 @@
@charset "UTF-8";
/// Sets the `width` and `height` of the element.
///
/// @param {List} $size
/// A list of at most 2 size values.
///
/// If there is only a single value in `$size` it is used for both width and height. All units are supported.
///
/// @example scss - Usage
/// .first-element {
/// @include size(2em);
/// }
///
/// .second-element {
/// @include size(auto 10em);
/// }
///
/// @example css - CSS Output
/// .first-element {
/// width: 2em;
/// height: 2em;
/// }
///
/// .second-element {
/// width: auto;
/// height: 10em;
/// }
///
/// @todo Refactor in 5.0.0 to use a comma-separated argument
@mixin size($value) {
$width: nth($value, 1);
$height: $width;
@if length($value) > 1 {
$height: nth($value, 2);
}
@if is-size($height) {
height: $height;
} @else {
@warn "`#{$height}` is not a valid length for the `$height` parameter in the `size` mixin.";
}
@if is-size($width) {
width: $width;
} @else {
@warn "`#{$width}` is not a valid length for the `$width` parameter in the `size` mixin.";
}
}

View File

@@ -0,0 +1,112 @@
@charset "UTF-8";
/// Generates variables for all text-based inputs. Please note that you must use interpolation on the variable: `#{$all-text-inputs}`.
///
/// @example scss - Usage
/// #{$all-text-inputs} {
/// border: 1px solid #f00;
/// }
///
/// #{$all-text-inputs-focus},
/// #{$all-text-inputs-hover} {
/// border: 1px solid #0f0;
/// }
///
/// #{$all-text-inputs-active} {
/// border: 1px solid #00f;
/// }
///
/// @example css - CSS Output
/// input[type="color"],
/// input[type="date"],
/// input[type="datetime"],
/// input[type="datetime-local"],
/// input[type="email"],
/// input[type="month"],
/// input[type="number"],
/// input[type="password"],
/// input[type="search"],
/// input[type="tel"],
/// input[type="text"],
/// input[type="time"],
/// input[type="url"],
/// input[type="week"],
/// textarea {
/// border: 1px solid #f00;
/// }
///
/// input[type="color"]:focus,
/// input[type="date"]:focus,
/// input[type="datetime"]:focus,
/// input[type="datetime-local"]:focus,
/// input[type="email"]:focus,
/// input[type="month"]:focus,
/// input[type="number"]:focus,
/// input[type="password"]:focus,
/// input[type="search"]:focus,
/// input[type="tel"]:focus,
/// input[type="text"]:focus,
/// input[type="time"]:focus,
/// input[type="url"]:focus,
/// input[type="week"]:focus,
/// textarea:focus,
/// input[type="color"]:hover,
/// input[type="date"]:hover,
/// input[type="datetime"]:hover,
/// input[type="datetime-local"]:hover,
/// input[type="email"]:hover,
/// input[type="month"]:hover,
/// input[type="number"]:hover,
/// input[type="password"]:hover,
/// input[type="search"]:hover,
/// input[type="tel"]:hover,
/// input[type="text"]:hover,
/// input[type="time"]:hover,
/// input[type="url"]:hover,
/// input[type="week"]:hover,
/// textarea:hover {
/// border: 1px solid #0f0;
/// }
///
/// input[type="color"]:active,
/// input[type="date"]:active,
/// input[type="datetime"]:active,
/// input[type="datetime-local"]:active,
/// input[type="email"]:active,
/// input[type="month"]:active,
/// input[type="number"]:active,
/// input[type="password"]:active,
/// input[type="search"]:active,
/// input[type="tel"]:active,
/// input[type="text"]:active,
/// input[type="time"]:active,
/// input[type="url"]:active,
/// input[type="week"]:active,
/// textarea:active {
/// border: 1px solid #00f;
/// }
///
/// @require assign-inputs
///
/// @type List
$text-inputs-list: 'input[type="color"]',
'input[type="date"]',
'input[type="datetime"]',
'input[type="datetime-local"]',
'input[type="email"]',
'input[type="month"]',
'input[type="number"]',
'input[type="password"]',
'input[type="search"]',
'input[type="tel"]',
'input[type="text"]',
'input[type="time"]',
'input[type="url"]',
'input[type="week"]',
'textarea';
$all-text-inputs: assign-inputs($text-inputs-list);
$all-text-inputs-active: assign-inputs($text-inputs-list, active);
$all-text-inputs-focus: assign-inputs($text-inputs-list, focus);
$all-text-inputs-hover: assign-inputs($text-inputs-list, hover);

View File

@@ -0,0 +1,34 @@
@charset "UTF-8";
/// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
///
/// Timing functions are the same as demoed here: http://jqueryui.com/resources/demos/effect/easing.html
///
/// @type cubic-bezier
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
$ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
$ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
$ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
$ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);
$ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045);
$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
$ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
$ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
$ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
$ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
$ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
$ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275);
$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
$ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
$ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
$ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
$ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
$ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550);

63
css/sass/bourbon/addons/_triangle.scss vendored Normal file
View File

@@ -0,0 +1,63 @@
@mixin triangle($size, $color, $direction) {
$width: nth($size, 1);
$height: nth($size, length($size));
$foreground-color: nth($color, 1);
$background-color: if(length($color) == 2, nth($color, 2), transparent);
height: 0;
width: 0;
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
$width: $width / 2;
$height: if(length($size) > 1, $height, $height/2);
@if $direction == up {
border-bottom: $height solid $foreground-color;
border-left: $width solid $background-color;
border-right: $width solid $background-color;
} @else if $direction == right {
border-bottom: $width solid $background-color;
border-left: $height solid $foreground-color;
border-top: $width solid $background-color;
} @else if $direction == down {
border-left: $width solid $background-color;
border-right: $width solid $background-color;
border-top: $height solid $foreground-color;
} @else if $direction == left {
border-bottom: $width solid $background-color;
border-right: $height solid $foreground-color;
border-top: $width solid $background-color;
}
} @else if ($direction == up-right) or ($direction == up-left) {
border-top: $height solid $foreground-color;
@if $direction == up-right {
border-left: $width solid $background-color;
} @else if $direction == up-left {
border-right: $width solid $background-color;
}
} @else if ($direction == down-right) or ($direction == down-left) {
border-bottom: $height solid $foreground-color;
@if $direction == down-right {
border-left: $width solid $background-color;
} @else if $direction == down-left {
border-right: $width solid $background-color;
}
} @else if ($direction == inset-up) {
border-color: $background-color $background-color $foreground-color;
border-style: solid;
border-width: $height $width;
} @else if ($direction == inset-down) {
border-color: $foreground-color $background-color $background-color;
border-style: solid;
border-width: $height $width;
} @else if ($direction == inset-right) {
border-color: $background-color $background-color $background-color $foreground-color;
border-style: solid;
border-width: $width $height;
} @else if ($direction == inset-left) {
border-color: $background-color $foreground-color $background-color $background-color;
border-style: solid;
border-width: $width $height;
}
}

29
css/sass/bourbon/addons/_word-wrap.scss vendored Normal file
View File

@@ -0,0 +1,29 @@
@charset "UTF-8";
/// Provides an easy way to change the `word-wrap` property.
///
/// @param {String} $wrap [break-word]
/// Value for the `word-break` property.
///
/// @example scss - Usage
/// .wrapper {
/// @include word-wrap(break-word);
/// }
///
/// @example css - CSS Output
/// .wrapper {
/// overflow-wrap: break-word;
/// word-break: break-all;
/// word-wrap: break-word;
/// }
@mixin word-wrap($wrap: break-word) {
overflow-wrap: $wrap;
word-wrap: $wrap;
@if $wrap == break-word {
word-break: break-all;
} @else {
word-break: $wrap;
}
}

43
css/sass/bourbon/css3/_animation.scss vendored Normal file
View File

@@ -0,0 +1,43 @@
// http://www.w3.org/TR/css3-animations/#the-animation-name-property-
// Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
@mixin animation($animations...) {
@include prefixer(animation, $animations, webkit moz spec);
}
@mixin animation-name($names...) {
@include prefixer(animation-name, $names, webkit moz spec);
}
@mixin animation-duration($times...) {
@include prefixer(animation-duration, $times, webkit moz spec);
}
@mixin animation-timing-function($motions...) {
// ease | linear | ease-in | ease-out | ease-in-out
@include prefixer(animation-timing-function, $motions, webkit moz spec);
}
@mixin animation-iteration-count($values...) {
// infinite | <number>
@include prefixer(animation-iteration-count, $values, webkit moz spec);
}
@mixin animation-direction($directions...) {
// normal | alternate
@include prefixer(animation-direction, $directions, webkit moz spec);
}
@mixin animation-play-state($states...) {
// running | paused
@include prefixer(animation-play-state, $states, webkit moz spec);
}
@mixin animation-delay($times...) {
@include prefixer(animation-delay, $times, webkit moz spec);
}
@mixin animation-fill-mode($modes...) {
// none | forwards | backwards | both
@include prefixer(animation-fill-mode, $modes, webkit moz spec);
}

View File

@@ -0,0 +1,3 @@
@mixin appearance($value) {
@include prefixer(appearance, $value, webkit moz ms o spec);
}

View File

@@ -0,0 +1,3 @@
@mixin backface-visibility($visibility) {
@include prefixer(backface-visibility, $visibility, webkit spec);
}

View File

@@ -0,0 +1,42 @@
//************************************************************************//
// Background-image property for adding multiple background images with
// gradients, or for stringing multiple gradients together.
//************************************************************************//
@mixin background-image($images...) {
$webkit-images: ();
$spec-images: ();
@each $image in $images {
$webkit-image: ();
$spec-image: ();
@if (type-of($image) == string) {
$url-str: str-slice($image, 0, 3);
$gradient-type: str-slice($image, 0, 6);
@if $url-str == "url" {
$webkit-image: $image;
$spec-image: $image;
}
@else if $gradient-type == "linear" {
$gradients: _linear-gradient-parser($image);
$webkit-image: map-get($gradients, webkit-image);
$spec-image: map-get($gradients, spec-image);
}
@else if $gradient-type == "radial" {
$gradients: _radial-gradient-parser($image);
$webkit-image: map-get($gradients, webkit-image);
$spec-image: map-get($gradients, spec-image);
}
}
$webkit-images: append($webkit-images, $webkit-image, comma);
$spec-images: append($spec-images, $spec-image, comma);
}
background-image: $webkit-images;
background-image: $spec-images;
}

55
css/sass/bourbon/css3/_background.scss vendored Normal file
View File

@@ -0,0 +1,55 @@
//************************************************************************//
// Background property for adding multiple backgrounds using shorthand
// notation.
//************************************************************************//
@mixin background($backgrounds...) {
$webkit-backgrounds: ();
$spec-backgrounds: ();
@each $background in $backgrounds {
$webkit-background: ();
$spec-background: ();
$background-type: type-of($background);
@if $background-type == string or $background-type == list {
$background-str: if($background-type == list, nth($background, 1), $background);
$url-str: str-slice($background-str, 0, 3);
$gradient-type: str-slice($background-str, 0, 6);
@if $url-str == "url" {
$webkit-background: $background;
$spec-background: $background;
}
@else if $gradient-type == "linear" {
$gradients: _linear-gradient-parser("#{$background}");
$webkit-background: map-get($gradients, webkit-image);
$spec-background: map-get($gradients, spec-image);
}
@else if $gradient-type == "radial" {
$gradients: _radial-gradient-parser("#{$background}");
$webkit-background: map-get($gradients, webkit-image);
$spec-background: map-get($gradients, spec-image);
}
@else {
$webkit-background: $background;
$spec-background: $background;
}
}
@else {
$webkit-background: $background;
$spec-background: $background;
}
$webkit-backgrounds: append($webkit-backgrounds, $webkit-background, comma);
$spec-backgrounds: append($spec-backgrounds, $spec-background, comma);
}
background: $webkit-backgrounds;
background: $spec-backgrounds;
}

View File

@@ -0,0 +1,59 @@
@mixin border-image($borders...) {
$webkit-borders: ();
$spec-borders: ();
@each $border in $borders {
$webkit-border: ();
$spec-border: ();
$border-type: type-of($border);
@if $border-type == string or list {
$border-str: if($border-type == list, nth($border, 1), $border);
$url-str: str-slice($border-str, 0, 3);
$gradient-type: str-slice($border-str, 0, 6);
@if $url-str == "url" {
$webkit-border: $border;
$spec-border: $border;
}
@else if $gradient-type == "linear" {
$gradients: _linear-gradient-parser("#{$border}");
$webkit-border: map-get($gradients, webkit-image);
$spec-border: map-get($gradients, spec-image);
}
@else if $gradient-type == "radial" {
$gradients: _radial-gradient-parser("#{$border}");
$webkit-border: map-get($gradients, webkit-image);
$spec-border: map-get($gradients, spec-image);
}
@else {
$webkit-border: $border;
$spec-border: $border;
}
}
@else {
$webkit-border: $border;
$spec-border: $border;
}
$webkit-borders: append($webkit-borders, $webkit-border, comma);
$spec-borders: append($spec-borders, $spec-border, comma);
}
-webkit-border-image: $webkit-borders;
border-image: $spec-borders;
border-style: solid;
}
//Examples:
// @include border-image(url("image.png"));
// @include border-image(url("image.png") 20 stretch);
// @include border-image(linear-gradient(45deg, orange, yellow));
// @include border-image(linear-gradient(45deg, orange, yellow) stretch);
// @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round);
// @include border-image(radial-gradient(top, cover, orange, yellow, orange));

4
css/sass/bourbon/css3/_calc.scss vendored Normal file
View File

@@ -0,0 +1,4 @@
@mixin calc($property, $value) {
#{$property}: -webkit-calc(#{$value});
#{$property}: calc(#{$value});
}

47
css/sass/bourbon/css3/_columns.scss vendored Normal file
View File

@@ -0,0 +1,47 @@
@mixin columns($arg: auto) {
// <column-count> || <column-width>
@include prefixer(columns, $arg, webkit moz spec);
}
@mixin column-count($int: auto) {
// auto || integer
@include prefixer(column-count, $int, webkit moz spec);
}
@mixin column-gap($length: normal) {
// normal || length
@include prefixer(column-gap, $length, webkit moz spec);
}
@mixin column-fill($arg: auto) {
// auto || length
@include prefixer(column-fill, $arg, webkit moz spec);
}
@mixin column-rule($arg) {
// <border-width> || <border-style> || <color>
@include prefixer(column-rule, $arg, webkit moz spec);
}
@mixin column-rule-color($color) {
@include prefixer(column-rule-color, $color, webkit moz spec);
}
@mixin column-rule-style($style: none) {
// none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid
@include prefixer(column-rule-style, $style, webkit moz spec);
}
@mixin column-rule-width ($width: none) {
@include prefixer(column-rule-width, $width, webkit moz spec);
}
@mixin column-span($arg: none) {
// none || all
@include prefixer(column-span, $arg, webkit moz spec);
}
@mixin column-width($length: auto) {
// auto || length
@include prefixer(column-width, $length, webkit moz spec);
}

4
css/sass/bourbon/css3/_filter.scss vendored Normal file
View File

@@ -0,0 +1,4 @@
@mixin filter($function: none) {
// <filter-function> [<filter-function]* | none
@include prefixer(filter, $function, webkit spec);
}

287
css/sass/bourbon/css3/_flex-box.scss vendored Normal file
View File

@@ -0,0 +1,287 @@
// CSS3 Flexible Box Model and property defaults
// Custom shorthand notation for flexbox
@mixin box($orient: inline-axis, $pack: start, $align: stretch) {
@include display-box;
@include box-orient($orient);
@include box-pack($pack);
@include box-align($align);
}
@mixin display-box {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox; // IE 10
display: box;
}
@mixin box-orient($orient: inline-axis) {
// horizontal|vertical|inline-axis|block-axis|inherit
@include prefixer(box-orient, $orient, webkit moz spec);
}
@mixin box-pack($pack: start) {
// start|end|center|justify
@include prefixer(box-pack, $pack, webkit moz spec);
-ms-flex-pack: $pack; // IE 10
}
@mixin box-align($align: stretch) {
// start|end|center|baseline|stretch
@include prefixer(box-align, $align, webkit moz spec);
-ms-flex-align: $align; // IE 10
}
@mixin box-direction($direction: normal) {
// normal|reverse|inherit
@include prefixer(box-direction, $direction, webkit moz spec);
-ms-flex-direction: $direction; // IE 10
}
@mixin box-lines($lines: single) {
// single|multiple
@include prefixer(box-lines, $lines, webkit moz spec);
}
@mixin box-ordinal-group($int: 1) {
@include prefixer(box-ordinal-group, $int, webkit moz spec);
-ms-flex-order: $int; // IE 10
}
@mixin box-flex($value: 0) {
@include prefixer(box-flex, $value, webkit moz spec);
-ms-flex: $value; // IE 10
}
@mixin box-flex-group($int: 1) {
@include prefixer(box-flex-group, $int, webkit moz spec);
}
// CSS3 Flexible Box Model and property defaults
// Unified attributes for 2009, 2011, and 2012 flavours.
// 2009 - display (box | inline-box)
// 2011 - display (flexbox | inline-flexbox)
// 2012 - display (flex | inline-flex)
@mixin display($value) {
// flex | inline-flex
@if $value == "flex" {
// 2009
display: -webkit-box;
display: -moz-box;
display: box;
// 2012
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox; // 2011 (IE 10)
display: flex;
} @else if $value == "inline-flex" {
display: -webkit-inline-box;
display: -moz-inline-box;
display: inline-box;
display: -webkit-inline-flex;
display: -moz-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
} @else {
display: $value;
}
}
// 2009 - box-flex (integer)
// 2011 - flex (decimal | width decimal)
// 2012 - flex (integer integer width)
@mixin flex($value) {
// Grab flex-grow for older browsers.
$flex-grow: nth($value, 1);
// 2009
@include prefixer(box-flex, $flex-grow, webkit moz spec);
// 2011 (IE 10), 2012
@include prefixer(flex, $value, webkit moz ms spec);
}
// 2009 - box-orient ( horizontal | vertical | inline-axis | block-axis)
// - box-direction (normal | reverse)
// 2011 - flex-direction (row | row-reverse | column | column-reverse)
// 2012 - flex-direction (row | row-reverse | column | column-reverse)
@mixin flex-direction($value: row) {
// Alt values.
$value-2009: $value;
$value-2011: $value;
$direction: normal;
@if $value == row {
$value-2009: horizontal;
} @else if $value == "row-reverse" {
$value-2009: horizontal;
$direction: reverse;
} @else if $value == column {
$value-2009: vertical;
} @else if $value == "column-reverse" {
$value-2009: vertical;
$direction: reverse;
}
// 2009
@include prefixer(box-orient, $value-2009, webkit moz spec);
@include prefixer(box-direction, $direction, webkit moz spec);
// 2012
@include prefixer(flex-direction, $value, webkit moz spec);
// 2011 (IE 10)
-ms-flex-direction: $value;
}
// 2009 - box-lines (single | multiple)
// 2011 - flex-wrap (nowrap | wrap | wrap-reverse)
// 2012 - flex-wrap (nowrap | wrap | wrap-reverse)
@mixin flex-wrap($value: nowrap) {
// Alt values
$alt-value: $value;
@if $value == nowrap {
$alt-value: single;
} @else if $value == wrap {
$alt-value: multiple;
} @else if $value == "wrap-reverse" {
$alt-value: multiple;
}
@include prefixer(box-lines, $alt-value, webkit moz spec);
@include prefixer(flex-wrap, $value, webkit moz ms spec);
}
// 2009 - TODO: parse values into flex-direction/flex-wrap
// 2011 - TODO: parse values into flex-direction/flex-wrap
// 2012 - flex-flow (flex-direction || flex-wrap)
@mixin flex-flow($value) {
@include prefixer(flex-flow, $value, webkit moz spec);
}
// 2009 - box-ordinal-group (integer)
// 2011 - flex-order (integer)
// 2012 - order (integer)
@mixin order($int: 0) {
// 2009
@include prefixer(box-ordinal-group, $int, webkit moz spec);
// 2012
@include prefixer(order, $int, webkit moz spec);
// 2011 (IE 10)
-ms-flex-order: $int;
}
// 2012 - flex-grow (number)
@mixin flex-grow($number: 0) {
@include prefixer(flex-grow, $number, webkit moz spec);
-ms-flex-positive: $number;
}
// 2012 - flex-shrink (number)
@mixin flex-shrink($number: 1) {
@include prefixer(flex-shrink, $number, webkit moz spec);
-ms-flex-negative: $number;
}
// 2012 - flex-basis (number)
@mixin flex-basis($width: auto) {
@include prefixer(flex-basis, $width, webkit moz spec);
-ms-flex-preferred-size: $width;
}
// 2009 - box-pack (start | end | center | justify)
// 2011 - flex-pack (start | end | center | justify)
// 2012 - justify-content (flex-start | flex-end | center | space-between | space-around)
@mixin justify-content($value: flex-start) {
// Alt values.
$alt-value: $value;
@if $value == "flex-start" {
$alt-value: start;
} @else if $value == "flex-end" {
$alt-value: end;
} @else if $value == "space-between" {
$alt-value: justify;
} @else if $value == "space-around" {
$alt-value: distribute;
}
// 2009
@include prefixer(box-pack, $alt-value, webkit moz spec);
// 2012
@include prefixer(justify-content, $value, webkit moz ms o spec);
// 2011 (IE 10)
-ms-flex-pack: $alt-value;
}
// 2009 - box-align (start | end | center | baseline | stretch)
// 2011 - flex-align (start | end | center | baseline | stretch)
// 2012 - align-items (flex-start | flex-end | center | baseline | stretch)
@mixin align-items($value: stretch) {
$alt-value: $value;
@if $value == "flex-start" {
$alt-value: start;
} @else if $value == "flex-end" {
$alt-value: end;
}
// 2009
@include prefixer(box-align, $alt-value, webkit moz spec);
// 2012
@include prefixer(align-items, $value, webkit moz ms o spec);
// 2011 (IE 10)
-ms-flex-align: $alt-value;
}
// 2011 - flex-item-align (auto | start | end | center | baseline | stretch)
// 2012 - align-self (auto | flex-start | flex-end | center | baseline | stretch)
@mixin align-self($value: auto) {
$value-2011: $value;
@if $value == "flex-start" {
$value-2011: start;
} @else if $value == "flex-end" {
$value-2011: end;
}
// 2012
@include prefixer(align-self, $value, webkit moz spec);
// 2011 (IE 10)
-ms-flex-item-align: $value-2011;
}
// 2011 - flex-line-pack (start | end | center | justify | distribute | stretch)
// 2012 - align-content (flex-start | flex-end | center | space-between | space-around | stretch)
@mixin align-content($value: stretch) {
$value-2011: $value;
@if $value == "flex-start" {
$value-2011: start;
} @else if $value == "flex-end" {
$value-2011: end;
} @else if $value == "space-between" {
$value-2011: justify;
} @else if $value == "space-around" {
$value-2011: distribute;
}
// 2012
@include prefixer(align-content, $value, webkit moz spec);
// 2011 (IE 10)
-ms-flex-line-pack: $value-2011;
}

24
css/sass/bourbon/css3/_font-face.scss vendored Normal file
View File

@@ -0,0 +1,24 @@
@mixin font-face(
$font-family,
$file-path,
$weight: normal,
$style: normal,
$asset-pipeline: $asset-pipeline,
$file-formats: eot woff2 woff ttf svg) {
$font-url-prefix: font-url-prefixer($asset-pipeline);
@font-face {
font-family: $font-family;
font-style: $style;
font-weight: $weight;
src: font-source-declaration(
$font-family,
$file-path,
$asset-pipeline,
$file-formats,
$font-url-prefix
);
}
}

View File

@@ -0,0 +1,4 @@
@mixin font-feature-settings($settings...) {
@if length($settings) == 0 { $settings: none; }
@include prefixer(font-feature-settings, $settings, webkit moz ms spec);
}

View File

@@ -0,0 +1,10 @@
// HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
@mixin hidpi($ratio: 1.3) {
@media only screen and (-webkit-min-device-pixel-ratio: $ratio),
only screen and (min--moz-device-pixel-ratio: $ratio),
only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
only screen and (min-resolution: round($ratio * 96dpi)),
only screen and (min-resolution: $ratio * 1dppx) {
@content;
}
}

4
css/sass/bourbon/css3/_hyphens.scss vendored Normal file
View File

@@ -0,0 +1,4 @@
@mixin hyphens($hyphenation: none) {
// none | manual | auto
@include prefixer(hyphens, $hyphenation, webkit moz ms spec);
}

View File

@@ -0,0 +1,14 @@
@mixin image-rendering ($mode:auto) {
@if ($mode == crisp-edges) {
-ms-interpolation-mode: nearest-neighbor; // IE8+
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
}
@else {
image-rendering: $mode;
}
}

36
css/sass/bourbon/css3/_keyframes.scss vendored Normal file
View File

@@ -0,0 +1,36 @@
// Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
@mixin keyframes($name) {
$original-prefix-for-webkit: $prefix-for-webkit;
$original-prefix-for-mozilla: $prefix-for-mozilla;
$original-prefix-for-microsoft: $prefix-for-microsoft;
$original-prefix-for-opera: $prefix-for-opera;
$original-prefix-for-spec: $prefix-for-spec;
@if $original-prefix-for-webkit {
@include disable-prefix-for-all();
$prefix-for-webkit: true !global;
@-webkit-keyframes #{$name} {
@content;
}
}
@if $original-prefix-for-mozilla {
@include disable-prefix-for-all();
$prefix-for-mozilla: true !global;
@-moz-keyframes #{$name} {
@content;
}
}
$prefix-for-webkit: $original-prefix-for-webkit !global;
$prefix-for-mozilla: $original-prefix-for-mozilla !global;
$prefix-for-microsoft: $original-prefix-for-microsoft !global;
$prefix-for-opera: $original-prefix-for-opera !global;
$prefix-for-spec: $original-prefix-for-spec !global;
@if $original-prefix-for-spec {
@keyframes #{$name} {
@content;
}
}
}

View File

@@ -0,0 +1,38 @@
@mixin linear-gradient($pos, $g1, $g2: null,
$g3: null, $g4: null,
$g5: null, $g6: null,
$g7: null, $g8: null,
$g9: null, $g10: null,
$fallback: null) {
// Detect what type of value exists in $pos
$pos-type: type-of(nth($pos, 1));
$pos-spec: null;
$pos-degree: null;
// If $pos is missing from mixin, reassign vars and add default position
@if ($pos-type == color) or (nth($pos, 1) == "transparent") {
$g10: $g9; $g9: $g8; $g8: $g7; $g7: $g6; $g6: $g5;
$g5: $g4; $g4: $g3; $g3: $g2; $g2: $g1; $g1: $pos;
$pos: null;
}
@if $pos {
$positions: _linear-positions-parser($pos);
$pos-degree: nth($positions, 1);
$pos-spec: nth($positions, 2);
}
$full: $g1, $g2, $g3, $g4, $g5, $g6, $g7, $g8, $g9, $g10;
// Set $g1 as the default fallback color
$fallback-color: nth($g1, 1);
// If $fallback is a color use that color as the fallback color
@if (type-of($fallback) == color) or ($fallback == "transparent") {
$fallback-color: $fallback;
}
background-color: $fallback-color;
background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome
background-image: unquote("linear-gradient(#{$pos-spec}#{$full})");
}

Some files were not shown because too many files have changed in this diff Show More