Opal-Estate-Pro/assets/scss/cmb2/partials/_main_wrap.scss

679 lines
9.9 KiB
SCSS
Raw Normal View History

2019-09-10 06:27:33 +02:00
/*--------------------------------------------------------------
* Main Wrap
--------------------------------------------------------------*/
.cmb2-wrap {
margin: 0;
input,
textarea {
font-size: $font-size;
max-width: 100%;
padding: 5px;
}
input[type=text] {
&.cmb2-oembed {
width: 100%;
}
}
textarea {
width: 500px;
&.cmb2-textarea-code {
font-family: $font-mono;
line-height: 16px;
}
}
input {
&.cmb2-text-small,
&.cmb2-timepicker {
width: 100px;
// margin-right: 15px
}
&.cmb2-text-money {
width: 90px;
// margin-right: 15px
}
&.cmb2-text-medium {
width: 230px;
// margin-right: 15px
}
&.cmb2-upload-file {
width: 65%;
}
&.ed_button {
padding: 2px 4px;
}
&:not([type="hidden"]) {
+ input,
+ .button-secondary,
+ select {
margin-left: 20px;
}
}
}
ul {
margin: 0;
}
li {
font-size: $font-size;
line-height: 16px;
margin: 1px 0 5px 0;
}
// .cmb-field-list .cmb-field-list {
// padding-top:5px;
// margin: 0;
// }
select {
font-size: $font-size;
margin-top: 3px;
}
input:focus,
textarea:focus {
background: $light-yellow;
}
input[type="radio"] {
margin: 0 5px 0 0;
padding: 0
}
input[type="checkbox"] {
margin: 0 5px 0 0;
padding: 0;
}
.button-secondary {
color: #555;
border-color: #cccccc;
background: #f7f7f7;
box-shadow: 0 1px 0 #cccccc;
display: inline-block;
text-decoration: none;
font-size: 13px;
line-height: 26px;
height: 28px;
margin: 0;
padding: 0 10px 1px;
cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-appearance: none;
border-radius: 3px;
white-space: nowrap;
box-sizing: border-box;
&:hover{
background: #fafafa;
border-color: #999;
color: #23282d;
}
}
.mceLayout {
border: 1px solid $light-gray !important;
}
.mceIframeContainer {
background: $white;
}
.meta_mce {
width: 97%;
textarea {
width: 100%;
}
}
.field-row-2{
margin: 0 -15px;
&::after{
content: "";
display: block;
clear: both;
}
.cmb-row{
display: block;
float: left;
width: 100%;
padding-left: 15px;
padding-right: 15px;
@media screen and (min-width:768px) {
width: 50%;
}
}
}
// Color picker
.wp-color-result,
.wp-picker-input-wrap {
vertical-align: middle;
}
.wp-color-result,
.wp-picker-container {
margin: 0 10px 0 0;
}
.cmb-row {
margin: 0;
&:after {
content: '';
clear: both;
display: block;
width: 100%;
}
&.cmb-repeat .cmb2-metabox-description {
padding-top: 0;
padding-bottom: 1em;
}
}
}
.cmb2-metabox {
clear: both;
margin: 0;
> .cmb-row:first-of-type >,
.cmb-field-list > .cmb-row:first-of-type > {
.cmb-td,
.cmb-th {
border: 0;
}
}
}
.cmb-add-row {
margin: 1.8em 0 0;
}
.cmb-nested .cmb-td,
.cmb-repeatable-group .cmb-th,
.cmb-repeatable-group:first-of-type {
border: 0;
}
.cmb-row:last-of-type,
.cmb2-wrap .cmb-row:last-of-type,
.cmb-repeatable-group:last-of-type {
border-bottom: 0;
}
.cmb-repeatable-grouping {
border: 1px solid $light-gray;
padding: 0 1em;
&.cmb-row {
margin: 0 0 0.8em;
}
+ .cmb-repeatable-grouping {
}
}
$headings-color: #0a1938;
.cmb-th {
color: $headings-color;
float: left;
font-weight: 500;
line-height: 1.2;
padding: 20px 10px 20px 0;
vertical-align: top;
width: 200px;
@media (max-width: $mobile-break) {
@include fullth;
}
}
.cmb-td {
line-height: 1.3;
max-width: 100%;
padding: 15px 10px;
vertical-align: middle;
}
.cmb-type-title {
.cmb-td {
padding: 0;
}
}
.cmb-th label {
display: block;
padding: 5px 0;
}
.cmb-th + .cmb-td {
float: left;
}
.cmb-td .cmb-td {
padding-bottom: 1em;
}
.cmb-remove-row {
text-align: right;
}
.empty-row.hidden {
display: none;
}
// Repeatable fields styles
.cmb-repeat-table {
background-color: $almostwhite;
border: 1px solid darken($light-gray, 3%);
.cmb-row.cmb-repeat-row {
position: relative;
counter-increment: el;
margin: 0;
padding: 10px 10px 10px 50px;
border-bottom: none !important; // Sometime, we need !important :).
& + .cmb-repeat-row {
border-top: solid 1px $light-gray;
}
&.ui-sortable-helper {
outline: dashed 2px $light-gray !important; // Sometime, we need !important :).
}
&:before {
content: counter(el);
display: block;
top: 0;
left: 0;
position: absolute;
width: 35px;
height: 100%;
line-height: 35px;
cursor: move;
color: $gray;
text-align: center;
border-right: solid 1px $light-gray;
}
.cmb-td {
margin: 0;
padding: 0;
}
}
+ .cmb-add-row {
margin: 0;
&:before {
content: '';
width: 1px;
height: 1.6em;
display: block;
margin-left: 17px;
background-color: darken($light-gray, 5%);
}
}
.cmb-remove-row {
top: 7px;
right: 7px;
position: absolute;
width: auto;
margin-left: 0;
padding: 0 !important; // Sometime, we need !important :).
display: none;
> .cmb-remove-row-button {
font-size: 20px;
text-indent: -1000px;
overflow: hidden;
position: relative;
height: auto;
line-height: 1;
padding: 0 10px 0;
&:before {
@include pseudo-dashicons("\f335");
}
}
}
.cmb-repeat-row:hover .cmb-remove-row {
display: block;
}
}
.cmb-repeatable-group {
.cmb-th {
padding: 5px;
}
.cmb-group-title {
background-color: $light-gray;
padding: 8px 12px 8px 2.2em;
margin: 0 -1em;
min-height: 1.5em;
font-size: 14px;
line-height: 1.4;
h4 {
border: 0;
margin: 0;
font-size: 1.2em;
font-weight: 500;
padding: 0.5em 0.75em;
}
.cmb-th {
display: block;
width: 100%;
}
}
.cmb-group-description .cmb-th {
@include fullth;
}
.cmb-shift-rows {
font-size: 1em;
margin-right: 1em;
text-decoration: none;
.dashicons {
font-size: 1.5em;
height: 1.5em;
line-height: 1.2em;
width: 1em;
&.dashicons-arrow-down-alt2 {
line-height: 1.3em;
}
}
}
.cmb2-upload-button {
float: right;
}
}
p.cmb2-metabox-description {
color: $gray;
font-style: italic;
margin: 0;
padding-top: .5em;
}
span.cmb2-metabox-description {
color: $gray;
font-style: italic;
}
.cmb2-metabox-title {
margin: 0 0 5px 0;
padding: 5px 0 0 0;
font-size: 14px;
}
.cmb-inline ul {
padding: 4px 0 0 0;
}
.cmb-inline li {
display: inline-block;
padding-right: 18px;
}
.cmb-type-textarea-code pre {
margin: 0;
}
.cmb2-media-status {
.img-status {
clear: none;
display: inline-block;
vertical-align: middle;
margin-right: 10px;
width: auto;
img {
max-width: 350px;
height: auto;
}
}
.img-status img,
.embed-status {
background: $lightchecker;
border: 5px solid $white;
outline: 1px solid $light-gray;
box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.3 ), inset 0 0 0 1px rgba( 0, 0, 0, 0.05 );
background-image: linear-gradient(45deg, $darkchecker 25%, transparent 25%, transparent 75%, $darkchecker 75%, $darkchecker), linear-gradient(45deg, $darkchecker 25%, transparent 25%, transparent 75%, $darkchecker 75%, $darkchecker);
background-position: 0 0, 10px 10px;
background-size: 20px 20px;
border-radius: 2px;
-moz-border-radius: 2px;
margin: 15px 0 0 0;
}
.embed-status {
float: left;
max-width: 800px;
}
.img-status, .embed-status {
position: relative;
.cmb2-remove-file-button {
background: url(../images/ico-delete.png);
height: 16px;
left: -5px;
position: absolute;
text-indent: -9999px;
top: -5px;
width: 16px;
}
}
.img-status {
.cmb2-remove-file-button {
top: 10px;
}
}
.img-status img, .file-status > span {
cursor: pointer;
}
&.cmb-attach-list {
.img-status img, .file-status > span {
cursor: move;
}
}
}
.cmb-type-file-list .cmb2-media-status .img-status {
clear: none;
vertical-align: middle;
width: auto;
margin-right: 10px;
margin-bottom: 10px;
margin-top: 0;
}
.cmb-attach-list li {
clear: both;
display: inline-block;
width: 100%;
margin-top: 5px;
margin-bottom: 10px;
img {
float: left;
margin-right: 10px;
}
}
.cmb2-remove-wrapper {
margin: 0;
}
.child-cmb2 .cmb-th {
text-align: left;
}
.cmb2-indented-hierarchy {
padding-left: 1.5em;
}
@media (max-width: $mobile-break) {
.cmb-th,
.cmb-td,
.cmb-th + .cmb-td {
display: block;
float: none;
width: 100%;
}
}
.opalestate-submission-form {
position: relative;
.cmb-td{
width: 100%;
padding: 15px 0;
}
.cmb-th{
width: 100%;
padding-bottom: 0;
padding-top: 15px;
label{
margin: 0;
padding: 0;
}
}
span.cmb2-metabox-description{
padding-top: .5em;
display: block;
}
.cmb2-wrap{
input.cmb2-text-medium, input.cmb2-text-small{
width: 100%;
}
}
.opalestate-tab-content{
&::after{
content: '';
display: block;
clear: both;
}
}
.submission-next-btn{
@media screen and (min-width:768px){
float: right;
}
}
.btn-submit-cmb{
position: absolute;
bottom: 0px;
right: 0px;
padding: 19px 25px 17px 20px;
@media screen and (max-width:767px){
position: relative;
bottom: 0;
right: 0;
margin-top: 15px;
}
&::before{
content: "\f138";
font-family: Fontawesome;
margin-right: 18px;
padding-right: 20px;
}
&::after{
content: "";
width: 52px;
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: transparent;
-webkit-box-shadow: 3px 0px 7px 0px rgba(0, 0, 0, 0.15);
box-shadow: 3px 0px 7px 0px rgba(0, 0, 0, 0.15);
}
}
.submission-back-btn,.submission-next-btn,.submission-next-btn{
margin-top: 15px;
}
.cmb-repeatable-group{
.cmb-group-title{
font-size: 15px;
}
}
.cmb2-metabox{
button.dashicons-before.dashicons-no-alt.cmb-remove-group-row{
top: .4em;
}
}
.cmb-type-group{
.field-row-2{
.cmb-row{
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
}
.cmb-row{
padding-top: 15px;
padding-bottom: 15px;
margin-bottom: 15px;
&.postbox{
padding-top: 0;
border-bottom: 1px solid #e9e9e9;
}
}
.cmb-th{
width: 100%;
padding: 0;
float: none;
& + .cmb-td{
width: 100%;
float: none;
padding: 15px 0;
}
}
}
}