Skip to content

Commit

Permalink
Working and converting from tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Aug 17, 2014
1 parent 4d11c11 commit 106f91e
Show file tree
Hide file tree
Showing 16 changed files with 949 additions and 827 deletions.
670 changes: 197 additions & 473 deletions CMB2.php

Large diffs are not rendered by default.

138 changes: 69 additions & 69 deletions css/cmb2.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@
* CMB Styling
*/
/* line 5, cmb2.scss */
table.cmb2_metabox {
.cmb2_metabox {
clear: both;
}

/* line 9, cmb2.scss */
table.cmb2_metabox > tr:first-of-type > td,
table.cmb2_metabox > tr:first-of-type > th,
table.cmb2_metabox tbody > tr:first-of-type > td,
table.cmb2_metabox tbody > tr:first-of-type > th,
.post-php table.cmb2_metabox .cmb-nested-table td,
.post-new-php table.cmb2_metabox .cmb-nested-table td,
.post-php table.cmb2_metabox .repeatable-group th,
.post-new-php table.cmb2_metabox .repeatable-group th,
.post-php table.cmb2_metabox .repeatable-group:first-of-type,
.post-new-php table.cmb2_metabox .repeatable-group:first-of-type {
.cmb2_metabox > .cmb-row:first-of-type > .cmb-td,
.cmb2_metabox > .cmb-row:first-of-type > .cmb-th,
.cmb2_metabox tbody > .cmb-row:first-of-type > .cmb-td,
.cmb2_metabox tbody > .cmb-row:first-of-type > .cmb-th,
.post-php .cmb2_metabox .cmb-nested .cmb-td,
.post-new-php .cmb2_metabox .cmb-nested .cmb-td,
.post-php .cmb2_metabox .repeatable-group .cmb-th,
.post-new-php .cmb2_metabox .repeatable-group .cmb-th,
.post-php .cmb2_metabox .repeatable-group:first-of-type,
.post-new-php .cmb2_metabox .repeatable-group:first-of-type {
border: 0;
}

/* line 22, cmb2.scss */
.post-php table.cmb2_metabox td,
.post-new-php table.cmb2_metabox td,
.post-php table.cmb2_metabox th,
.post-new-php table.cmb2_metabox th,
.post-php table.cmb2_metabox .repeatable-group,
.post-new-php table.cmb2_metabox .repeatable-group,
.post-php table.cmb2_metabox .repeatable-group,
.post-new-php table.cmb2_metabox .repeatable-group {
.post-php .cmb2_metabox .cmb-td,
.post-new-php .cmb2_metabox .cmb-td,
.post-php .cmb2_metabox .cmb-th,
.post-new-php .cmb2_metabox .cmb-th,
.post-php .cmb2_metabox .repeatable-group,
.post-new-php .cmb2_metabox .repeatable-group,
.post-php .cmb2_metabox .repeatable-group,
.post-new-php .cmb2_metabox .repeatable-group {
border-top: 1px solid #E9E9E9;
}

Expand All @@ -38,7 +38,7 @@ table.cmb2_metabox tbody > tr:first-of-type > th,
}

/* line 39, cmb2.scss */
.repeatable-group th {
.repeatable-group .cmb-th {
padding: 5px;
}
/* line 43, cmb2.scss */
Expand All @@ -65,18 +65,18 @@ table.cmb2_metabox tbody > tr:first-of-type > th,
}

/* line 64, cmb2.scss */
.post-php table.cmb2_metabox th, .post-new-php table.cmb2_metabox th {
.post-php .cmb2_metabox .cmb-th, .post-new-php .cmb2_metabox .cmb-th {
text-align: right;
font-weight: bold;
}

/* line 69, cmb2.scss */
.post-php table.cmb2_metabox table th, .post-new-php table.cmb2_metabox table th {
.post-php .cmb2_metabox .child-cmb2 .cmb-th, .post-new-php .cmb2_metabox .child-cmb2 .cmb-th {
text-align: left;
}

/* line 73, cmb2.scss */
table.cmb2_metabox th label {
.cmb2_metabox .cmb-th label {
margin-top: 5px;
display: block;
}
Expand All @@ -95,65 +95,65 @@ span.cmb2_metabox_description {
}

/* line 91, cmb2.scss */
table.cmb2_metabox input, table.cmb2_metabox textarea {
.cmb2_metabox input, .cmb2_metabox textarea {
font-size: 14px;
padding: 5px;
}
/* line 96, cmb2.scss */
table.cmb2_metabox input[type=text], table.cmb2_metabox textarea {
.cmb2_metabox input[type=text], .cmb2_metabox textarea {
width: 97%;
}
/* line 100, cmb2.scss */
table.cmb2_metabox textarea.cmb2_textarea_code {
.cmb2_metabox textarea.cmb2_textarea_code {
font-family: Consolas,Monaco,monospace;
line-height: 16px;
}
/* line 105, cmb2.scss */
table.cmb2_metabox input.cmb2_text_small {
.cmb2_metabox input.cmb2_text_small {
width: 100px;
margin-right: 15px;
}
/* line 110, cmb2.scss */
table.cmb2_metabox input.cmb2_timepicker {
.cmb2_metabox input.cmb2_timepicker {
width: 100px;
margin-right: 15px;
}
/* line 115, cmb2.scss */
table.cmb2_metabox input.cmb2_text_money {
.cmb2_metabox input.cmb2_text_money {
width: 90px;
margin-right: 15px;
}
/* line 120, cmb2.scss */
table.cmb2_metabox input.cmb2_text_medium {
.cmb2_metabox input.cmb2_text_medium {
width: 230px;
margin-right: 15px;
}
/* line 125, cmb2.scss */
table.cmb2_metabox input.cmb2_upload_file {
.cmb2_metabox input.cmb2_upload_file {
width: 65%;
}
/* line 129, cmb2.scss */
table.cmb2_metabox input.ed_button {
.cmb2_metabox input.ed_button {
padding: 2px 4px;
}
/* line 133, cmb2.scss */
table.cmb2_metabox li {
.cmb2_metabox li {
font-size: 14px;
margin: 1px 0 5px 0;
line-height: 16px;
}
/* line 139, cmb2.scss */
table.cmb2_metabox ul {
.cmb2_metabox ul {
padding-top: 5px;
margin: 0;
}
/* line 144, cmb2.scss */
table.cmb2_metabox select {
.cmb2_metabox select {
font-size: 14px;
margin-top: 3px;
}
/* line 149, cmb2.scss */
table.cmb2_metabox input:focus, table.cmb2_metabox textarea:focus {
.cmb2_metabox input:focus, .cmb2_metabox textarea:focus {
background: #fffff8;
}

Expand All @@ -180,44 +180,44 @@ table.cmb2_metabox input:focus, table.cmb2_metabox textarea:focus {
}

/* line 172, cmb2.scss */
table.cmb2_metabox input[type="radio"] {
.cmb2_metabox input[type="radio"] {
margin: 0 5px 0 0;
padding: 0;
}

/* line 177, cmb2.scss */
table.cmb2_metabox input[type="checkbox"] {
.cmb2_metabox input[type="checkbox"] {
margin: 0 5px 0 0;
padding: 0;
}

/* line 182, cmb2.scss */
table.cmb2_metabox .mceLayout {
.cmb2_metabox .mceLayout {
border: 1px solid #dfdfdf !important;
}

/* line 186, cmb2.scss */
table.cmb2_metabox .mceIframeContainer {
.cmb2_metabox .mceIframeContainer {
background: white;
}

/* line 190, cmb2.scss */
table.cmb2_metabox .meta_mce {
.cmb2_metabox .meta_mce {
width: 97%;
}

/* line 194, cmb2.scss */
table.cmb2_metabox .meta_mce textarea {
.cmb2_metabox .meta_mce textarea {
width: 100%;
}

/* line 198, cmb2.scss */
table.cmb2_metabox .cmb2_media_status {
.cmb2_metabox .cmb2_media_status {
margin: 10px 0 0 0;
}

/* line 202, cmb2.scss */
table.cmb2_metabox .cmb2_media_status .img_status {
.cmb2_metabox .cmb2_media_status .img_status {
clear: none;
float: left;
display: inline-block;
Expand All @@ -226,20 +226,20 @@ table.cmb2_metabox .cmb2_media_status .img_status {
}

/* line 210, cmb2.scss */
table.cmb2_metabox .cmb-type-file_list .cmb2_media_status .img_status {
.cmb2_metabox .cmb-type-file_list .cmb2_media_status .img_status {
clear: none;
float: left;
margin-right: 10px;
width: auto;
}

/* line 217, cmb2.scss */
table.cmb2_metabox .cmb2_media_status .img_status, table.cmb2_metabox .cmb2_media_status .embed_status {
.cmb2_metabox .cmb2_media_status .img_status, .cmb2_metabox .cmb2_media_status .embed_status {
position: relative;
}

/* line 221, cmb2.scss */
table.cmb2_metabox .cmb2_media_status .img_status img, table.cmb2_metabox .cmb2_media_status .embed_status {
.cmb2_metabox .cmb2_media_status .img_status img, .cmb2_metabox .cmb2_media_status .embed_status {
border: 1px solid #DFDFDF;
background: #FAFAFA;
max-width: 350px;
Expand All @@ -249,13 +249,13 @@ table.cmb2_metabox .cmb2_media_status .img_status img, table.cmb2_metabox .cmb2_
}

/* line 230, cmb2.scss */
table.cmb2_metabox .cmb2_media_status .embed_status {
.cmb2_metabox .cmb2_media_status .embed_status {
float: left;
max-width: 800px;
}

/* line 235, cmb2.scss */
table.cmb2_metabox .cmb2_media_status .img_status .cmb2_remove_file_button, table.cmb2_metabox .cmb2_media_status .embed_status .cmb2_remove_file_button {
.cmb2_metabox .cmb2_media_status .img_status .cmb2_remove_file_button, .cmb2_metabox .cmb2_media_status .embed_status .cmb2_remove_file_button {
text-indent: -9999px;
background: url(../images/ico-delete.png);
width: 16px;
Expand All @@ -266,15 +266,15 @@ table.cmb2_metabox .cmb2_media_status .img_status .cmb2_remove_file_button, tabl
}

/* line 245, cmb2.scss */
table.cmb2_metabox .attach_list li {
.cmb2_metabox .attach_list li {
clear: both;
display: inline-block;
margin-bottom: 25px;
width: 100%;
}

/* line 252, cmb2.scss */
table.cmb2_metabox .attach_list li img {
.cmb2_metabox .attach_list li img {
float: left;
margin-right: 10px;
cursor: move;
Expand All @@ -284,64 +284,64 @@ table.cmb2_metabox .attach_list li img {
* Sidebar placement adjustments
*/
/* line 261, cmb2.scss */
.inner-sidebar table.cmb2_metabox input[type=text],
#side-sortables table.cmb2_metabox input[type=text],
table.cmb2_metabox textarea {
.inner-sidebar .cmb2_metabox input[type=text],
#side-sortables .cmb2_metabox input[type=text],
.cmb2_metabox textarea {
width: 95%;
}

/* line 267, cmb2.scss */
.inner-sidebar table.cmb2_metabox .cmb2_media_status .img_status img,
#side-sortables table.cmb2_metabox .cmb2_media_status .img_status img,
.inner-sidebar table.cmb2_metabox .cmb2_media_status .embed_status img,
#side-sortables table.cmb2_metabox .cmb2_media_status .embed_status img {
.inner-sidebar .cmb2_metabox .cmb2_media_status .img_status img,
#side-sortables .cmb2_metabox .cmb2_media_status .img_status img,
.inner-sidebar .cmb2_metabox .cmb2_media_status .embed_status img,
#side-sortables .cmb2_metabox .cmb2_media_status .embed_status img {
width: 90%;
}

/* line 274, cmb2.scss */
.inner-sidebar table.cmb2_metabox label,
#side-sortables table.cmb2_metabox label {
.inner-sidebar .cmb2_metabox label,
#side-sortables .cmb2_metabox label {
display: block;
font-weight: bold;
padding: 0 0 5px;
}

/* line 281, cmb2.scss */
.inner-sidebar table.cmb2_metabox .cmb2_list label,
#side-sortables table.cmb2_metabox .cmb2_list label {
.inner-sidebar .cmb2_metabox .cmb2_list label,
#side-sortables .cmb2_metabox .cmb2_list label {
display: inline;
font-weight: normal;
}

/* line 287, cmb2.scss */
.inner-sidebar table.cmb2_metabox .cmb2_metabox_description,
#side-sortables table.cmb2_metabox .cmb2_metabox_description {
.inner-sidebar .cmb2_metabox .cmb2_metabox_description,
#side-sortables .cmb2_metabox .cmb2_metabox_description {
display: block;
padding: 7px 0 0;
}

/* line 293, cmb2.scss */
.inner-sidebar table.cmb2_metabox .cmb2_metabox_title,
#side-sortables table.cmb2_metabox .cmb2_metabox_title {
.inner-sidebar .cmb2_metabox .cmb2_metabox_title,
#side-sortables .cmb2_metabox .cmb2_metabox_title {
font-size: 1.2em;
font-style: italic;
}

/* line 299, cmb2.scss */
.postbox table.cmb2_metabox .cmb-spinner {
.postbox .cmb2_metabox .cmb-spinner {
float: left;
}

/**
* Color picker
*/
/* line 306, cmb2.scss */
table.cmb2_metabox .wp-color-result, table.cmb2_metabox .wp-picker-input-wrap {
.cmb2_metabox .wp-color-result, .cmb2_metabox .wp-picker-input-wrap {
vertical-align: middle;
}

/* line 310, cmb2.scss */
table.cmb2_metabox .wp-color-result, table.cmb2_metabox .wp-picker-container {
.cmb2_metabox .wp-color-result, .cmb2_metabox .wp-picker-container {
margin: 0 10px 0 0;
}

Expand Down
2 changes: 1 addition & 1 deletion css/cmb2.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 106f91e

Please sign in to comment.