$gray: #5e5e5e;
$blue: #005899;
$darkblue: darken($blue, 20%);

$buttonmargin: 10px;

$navitems: 9;
$navitem_space: 3%;

%clearfix {
    &:after {
        content: "";
        display: table;
        clear: both;
    }
}

@import "class-option-font.css";


@import url(http://fonts.googleapis.com/css?family=Roboto:300,300italic,500,500italic);
@import url(http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);

@font-face {
  font-family: 'digitalmind';
  src: url('../fonts/digitalmind/font/digitalmind.eot?85951759');
  src: url('../fonts/digitalmind/font/digitalmind.eot?85951759#iefix') format('embedded-opentype'),
       url('../fonts/digitalmind/font/digitalmind.woff?85951759') format('woff'),
       url('../fonts/digitalmind/font/digitalmind.ttf?85951759') format('truetype'),
       url('../fonts/digitalmind/font/digitalmind.svg?85951759#digitalmind') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "digitalmind";
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
}

.icon-left:before { content: '\e800'; }
.icon-right:before { content: '\e801'; }
.icon-branch:before { content: '\e802'; }

#wpcontent, #wpfooter {
    margin-left: 160px;
    background: #fff;
    min-height: 100%;
    position: relative;
    top: 0;
}

#wpfooter{
    margin-right: 0px;
}

.wrap{
    font-family: Roboto;
    font-weight: 300 !important;
    margin: 20px auto;
    width: 90%;
    color: $gray !important;

    h1,
    h2,
    h3,
    h4,
    h5,
    h2 .nav-tab,
    .form-table th{
        font-weight: 300;
    }

    h1{
        position: relative;
        margin-left: 100px;
        line-height: 2;
        font-weight: 300;
        color: $blue;
        font-size: 40px;

        &:before{
            content:'\e800';
            font-family: "digitalmind";
            font-style: normal;
            font-weight: normal;
            speak: none;
            display: inline-block;
            text-decoration: inherit;
            width: 1em;
            margin-right: .2em;
            text-align: center;
            font-variant: normal;
            text-transform: none;
            line-height: 1em;
            margin-left: .2em;
            position: absolute;
            right: 100%;
            top: 0;
            font-size: 200%;
        }

        &:after{
            content:'\e801';
            font-family: "digitalmind";
            font-style: normal;
            font-weight: normal;
            speak: none;
            display: inline-block;
            text-decoration: inherit;
            width: 1em;
            margin-right: .2em;
            text-align: center;
            font-variant: normal;
            text-transform: none;
            line-height: 1em;
            margin-left: .2em;
            position: absolute;
            right: 100%;
            top: 0;
            font-size: 200%;
            color: $gray;
        }

        span{
            font-weight: 500;
            color: $gray;
        }
    }

    .form-table th{
        font-size: 18px;
        font-weight: 500;
    }
}

.wp-core-ui {
    .button,
    .button-primary{
            position: relative;
            top: 0 !important;
            background: $blue !important;
            box-shadow: 0px 3px 0px 0px darken($blue, 20%);
            padding: 8px 22px;
            font-size: 18px !important;
            line-height: 100%;
            text-shadow: 0 1px rgba(white, 0.3);
            color: #fff;
            display:inline-block;
            vertical-align: middle;
            text-align: center;
            cursor: pointer;
            font-weight: 300;
            transition: background 0.1s ease-in-out;
            border-radius: 2px !important;
            border: 0px solid transparent;
            height:auto;
            margin: $buttonmargin 3px;

        &:visited{
            @extend .button;
        }

        &:hover, &:focus,
        &:visited:hover, &:visited:focus{
            background: darken($blue, 5%) !important;
            color: #fff;
            box-shadow: 0px 3px 0px 0px darken($blue, 20%);
        }

        &:active, &:visited:active{
            margin-top: $buttonmargin + 2px;
            box-shadow: 0px 1px 0px 0px darken($blue, 20%);
            color: #fff;
        }
    }
}


td.second.tf-note .description{
    font-style: normal;
    font-size: 16px;
}
.tf-note .updated p {
	margin-bottom: 4px;
}

#misc-publishing-actions label[for="post_status"]:before,
#post-body #visibility:before,
#post-body .misc-pub-revisions:before,
.curtime #timestamp:before,
span.wp-media-buttons-icon:before{
    color: #fff;
}

@media screen and (min-width: 783px) {
	.tf-select-googlefont iframe {
		width: 100%;
		height: 120px;
		background: #FFF;
		background: rgba(255, 255, 255, .7);
		margin-top: 4px;
	}

	.form-table td.tf-select-googlefont fieldset label {
		display: inline-block;
		padding-left: 20px;
		width: 200px;
	}
}

#side-sortables{
    .tf-form-table{
        display: block;

        tbody,
        tr {
            @extend .tf-form-table;
        }

        th{
            @extend .tf-form-table;
            padding: 10px 0px 0px;
        }

        td{
            @extend .tf-form-table;
            padding: 5px 0px;

            input{
                max-width: 100%;
            }
        }

    }

    .tf-radio-image{
        label{
            display: inline-block;
            margin-left: 10px;
            margin-top: 10px;

            &:first-child{
                @extend label;
            }
        }
    }
}

.titan-framework-panel-wrap {
    margin-bottom: 20px;

    .form-table{
        margin-top: 0;

        th,
        td{
            padding: 20px 20px;
        }

        tr{
            background: white;
            border-bottom: 1px solid #eee;

            &:last-of-type{
                border-color: $darkblue;
            }
        }
    }

    .wp_themeSkin {
        table td {
            padding: 0;
        }

        .mceStatusbar {
            padding: 0 0 0 8px;
        }

        .mceToolbar {
            padding: 1px;
        }
    }

    p.submit {
        background: #FFF;
        margin-top: 0;
        margin-bottom: 0;
        padding: 15px 20px;

        .form-table+&{
            padding: 15px 20px;
        }
    }

    .tf-font,
    .tf-radio,
    .tf-multicheck{
        p.description{
            margin-bottom: 8px;
        }
    }

    .tf-heading{
        th{
            padding: 0;
        }

        h3{
            background: #FFF;
            border: 1px solid lighten($blue, 50%);
            color: $gray;
            font-weight: 600;
            line-height: 1.4;
            margin: 20px 0 0;
            padding: 10px 20px;
            border-width: 0px 0px 1px;
        }
    }

    .options-container{
        h2{
            background: #F5F5F5;
            border: 1px solid #DFDFDF;
            color: $gray;
            font-weight: 600;
            line-height: 1.4;
            margin: 20px 0 0;
            padding: 10px 20px;
            margin-bottom: -6px;
        }
    }
}

.tf-select-googlefont iframe {
	background: #fafafa;
}

.tf-radio-palette{
    span {
        display: inline-block;
        height: 40px;

        span{
            width: 15px;
        }
    }

    > label{
        > span {
            padding: 2px;
            border: 1px solid #ddd;
        }
    }

    label {
        margin: 0 30px 10px 0;
        display: inline-block;

        &:first-child{
            margin-left: 0;
        }
    }

    input[type=radio] {
        vertical-align: top;
        margin-top: 17px;
    }
}

.tf-radio-image{
    label {
        white-space: nowrap;
        display: inline-block;
        margin-right: 30px;
        margin-bottom: 10px;
    }

    img {
        vertical-align: middle;
    }
}

.form-table {
    .tf-radio-image {
        input[type=radio] {
            margin-top: 0;
        }
    }

    label{
        color: $gray;

        i{
            color: $blue;
        }
    }
}

.tf-code {
    > div:first-of-type {
        border-radius: 3px;
        border: 1px solid #DDD;
        box-sizing: border-box;
        position: relative;
        font-size: 14px;
    }
}

.tf-sortable{
    li {
        cursor: move;
        background: #fafafa;
        padding: 0 0 0 15px;
        border: 1px solid #DDD;
        position: relative;
        line-height: 40px;
    }

    ul {
        margin-top: 0;
        background: rgba(0, 0, 0, 0);
        border: 1px solid #EEE;
        padding: 5px;
        display: inline-block;

        li{
            &:last-of-type {
                margin-bottom: 0;
            }

            i{
                float: right;
                background: #fcfcfc;
                display: inline-block;
                border-left: 1px solid #ddd;
                border-bottom: 1px solid #DDD;
                width: 40px;
                line-height: 40px;
                text-align: center;
                color: #777;

                &.visibility {
                    cursor: pointer;
                }

                &.last-of-type{
                    margin-left: 50px;
                }
            }

            &.invisible{
                color: #ccc;
                background: transparent;
            }
        }
    }
}

.tf-number{
    .ui-slider-handle {
        position: absolute;
        z-index: 2;
        border-radius: 3px;
        cursor: move;
        margin-left: -6px;
        pointer-events: none;
        outline: none;
        top: -5px;
        background: #EEE;
        border: 1px solid #CCC;
        height: 23px;
        width: 12px;
    }

    .ui-slider a:focus {
        outline: none;
    }

    .ui-slider-range {
        background: #eee;
        height: 100%;
    }

    .number-slider {
        position: relative;
        background: #fcfcfc;
        border: 1px solid #ddd;
        border-radius: 3px;
        width: 250px;
        height: 15px;
        margin-right: 20px;
        display: inline-block;
        vertical-align: bottom;
        margin-bottom: 6px;
    }
}

.tf-font{
    label {
        border: 1px solid #DDD;
        vertical-align: middle;
        display: inline-block;
        padding: 4px 4px 4px 13px;
        margin-right: 10px;
        background: #fcfcfc;
        margin-bottom: 10px;
    }

    select {
        margin-left: 10px;
    }

    .wp-picker-container {
        line-height: 28px;
        height: 28px;
        margin: 1px;
        z-index: 9;

        > a {
            margin: 2px 7px 2px 10px;
        }

        .wp-picker-default {
            margin: 2px 2px 2px 7px;
        }
    }

    iframe {
        width: 100%;
        height: 200px;
        background: #FCFCFC;
        border: 1px solid #DDD;
    }

    div {
        position: relative;
    }

    i{
        position: absolute;
        top: 0;
        left: 0;
        line-height: 30px !important;
        width: 30px;
        background: #EEE;
        text-align: center;
        border: 1px solid #DDD;
        cursor: pointer;

        &:hover{
            background: #333;
            color: #FFF;
            border-bottom: 1px solid #333;
            border-right: 1px solid #333;
        }
    }
}

.dashicons-visibility-faint:before {
	opacity: .2;
}

[class*=tf-] i.dashicons {
	height: auto;
}

.dashicons-admin-generic:before{
    font-family: "digitalmind" !important;
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1.5em;
    margin-left: -.2em;
    content: '\e802' !important;
    font-size: 98%;
}

.nav-item-wrapper{
  width: 100%;
  font-size: 150%;
  line-height: 2;
  @include clearfix();

  a{
    text-align: center;
    text-decoration: none;
    color: $gray;
    float: left;
    padding: 0px 10px;
  }

  .nav-item{
    position: relative;
    transition: .3s all ease;

    &:after,
    &:before{
      content:'';
      position: absolute;
      bottom: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background: $gray;
      z-index: 1;
      transform: scale(1, .05) translateY(1000%);
      transition: .3s all ease;
    }

    &:hover, &:focus{
      color: $blue;

      &:after{
        transform: scale(1, .1) translateY(-500%);
        background: $blue;
      }
    }
  }

  .nav-item-active{
    color: $blue;
    &:before{
      z-index: 2;
      background: $blue;
      transform: scale(1, .08) translateY(620%);
    }
  }
}
