Plugin Directory

source: audio-playlist-for-woocommerce/trunk/vendor/htmlburger/carbon-fields/packages/metaboxes/components/container/style.scss @ 2896742

Last change on this file since 2896742 was 2896742, checked in by joanrodas, 16 months ago

1.1.0

File size: 2.5 KB
Line 
1/* ==========================================================================
2   Container
3   ========================================================================== */
4
5.carbon-box {
6        &.hide-if-js:not([hidden]) {
7                display: block;
8        }
9}
10
11#poststuff .carbon-box .inside,
12.carbon-box .inside {
13        padding: 0;
14        margin: 0;
15}
16
17.cf-container {
18        &--plain {
19                display: block;
20        }
21
22        &--tabbed {
23                display: flex;
24
25                &-horizontal {
26                        flex-direction: column;
27                }
28
29                &-vertical {
30                        flex-direction: row;
31                }
32        }
33}
34
35.cf-container__fields {
36        display: flex;
37        flex-wrap: wrap;
38        flex: 1;
39        margin: 0 -1px 0 0;
40        background-color: $color-white;
41
42        &[hidden] {
43                display: none;
44        }
45
46        .block-editor & {
47                border-left: 1px solid $wp-color-gray-light-500;
48        }
49
50        .cf-container-term-meta &,
51        .cf-container-user-meta & {
52                border-width: 0 0 1px 1px;
53                border-style: solid;
54                border-color: $wp-color-gray-light-500;
55                margin: 0;
56        }
57}
58
59.cf-container__tabs {
60        position: relative;
61        z-index: 1;
62        background-color: $wp-color-gray-light-100;
63
64        &-list {
65                display: flex;
66                flex-wrap: wrap;
67                margin: 0 0 -1px;
68
69                .cf-container__tabs-item {
70                        display: flex;
71                        align-items: center;
72                        border: 1px solid $wp-color-gray-light-500;
73                        margin: 0 ($size-base * 2) 0 0;
74                        background-color: $wp-color-gray-light-100;
75                        font-size: 13px;
76                        cursor: pointer;
77                        transition: background-color $transition-base, border-color $transition-base;
78
79                        button {
80                                background: 0;
81                                border: 0;
82                                padding: ($size-base * 2.5) ($size-base * 3);
83                                margin: 0;
84                                flex: 1;
85                                cursor: pointer;
86                                display: flex;
87                                align-items: center;
88
89                                span {
90                                        margin-right: 5px;
91                                }
92                        }
93
94                        &:hover {
95                                background-color: $color-white;
96                        }
97
98                        &--current {
99                                background-color: $color-white;
100                                border-bottom-color: $color-white;
101                        }
102                }
103
104        }
105
106        &--tabbed-horizontal {
107                padding: ($size-base * 3) ($size-base * 3) 0;
108                border-bottom: 1px solid $wp-color-gray-light-500;
109
110                .cf-container__tabs-list {
111                        display: flex;
112                        flex-direction: row;
113                }
114        }
115
116        &--tabbed-vertical {
117                width: 300px;
118                border-right: 1px solid $wp-color-gray-light-500;
119
120                .cf-container__tabs-list {
121                        display: flex;
122                        flex-direction: column;
123
124                        .cf-container__tabs-item {
125                                margin: 0;
126                                justify-content: flex-start;
127                                border: 0;
128                                border-top: 1px solid $gb-light-gray-500;
129                                border-bottom: 1px solid $gb-light-gray-500;
130
131                                &:first-of-type {
132                                        border-top: 0;
133                                }
134
135                                button {
136                                        text-align: left;
137                                        font-weight: 500;
138                                }
139                        }
140
141                        .cf-container__tabs-item + .cf-container__tabs-item {
142                                border-top: 0;
143                        }
144                }
145        }
146}
Note: See TracBrowser for help on using the repository browser.