corvée(dépendances) ajoute Carbon Fields
This commit is contained in:
parent
135cc65eed
commit
62368587e5
459 changed files with 72750 additions and 26 deletions
20
web/vendor/htmlburger/carbon-fields/packages/metaboxes/components/field/index.js
vendored
Normal file
20
web/vendor/htmlburger/carbon-fields/packages/metaboxes/components/field/index.js
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* External dependencies.
|
||||
*/
|
||||
import { compose } from '@wordpress/compose';
|
||||
|
||||
/**
|
||||
* Carbon Fields dependencies.
|
||||
*/
|
||||
import { Field, withFilters } from '@carbon-fields/core';
|
||||
|
||||
/**
|
||||
* Internal dependencies.
|
||||
*/
|
||||
import './style.scss';
|
||||
import withField from '../../hocs/with-field';
|
||||
|
||||
export default compose(
|
||||
withField,
|
||||
withFilters( 'carbon-fields.field-wrapper.metabox' )
|
||||
)( Field );
|
||||
45
web/vendor/htmlburger/carbon-fields/packages/metaboxes/components/field/style.scss
vendored
Normal file
45
web/vendor/htmlburger/carbon-fields/packages/metaboxes/components/field/style.scss
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/* ==========================================================================
|
||||
Field
|
||||
========================================================================== */
|
||||
|
||||
.cf-field {
|
||||
.cf-container & {
|
||||
flex: 1 1 100%;
|
||||
padding: $size-base * 3;
|
||||
border-width: 0 1px 0 0;
|
||||
border-style: solid;
|
||||
border-color: $wp-color-gray-light-500;
|
||||
}
|
||||
|
||||
.cf-container & + & {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.cf-field__head {
|
||||
.term-php .cf-container__fields > .cf-field:not(.cf-field--has-width) > &,
|
||||
.cf-container-user-meta .cf-container__fields > .cf-field > & {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.cf-field__label {
|
||||
.cf-container & {
|
||||
padding-bottom: 6.5px;
|
||||
font-weight: 600;
|
||||
color: $wp-color-dark-gray;
|
||||
}
|
||||
|
||||
.cf-container-term-meta &,
|
||||
.cf-container-user-meta & {
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.cf-field__help {
|
||||
display: inline-block;
|
||||
color: #666;
|
||||
margin-top: 10px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue