Skip to content

BricksBuilder - compact mode by poziomapl

Details

Authorpoziomapl

LicenseNo License

Categorybricksbuilder

Created

Updated

Size11 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Compact mode for Bricks Builder editor

Notes

Userstyle doesn't have notes.

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
/* ==UserStyle==
@name         BricksBuilder - compact mode
@description  Compact mode for Bricks Builder
@namespace    pozioma.pl
@version      0.1
@author       natandomnik <natan@pozioma.pl> (https://github.com/eight04)
@homepageURL  http://pozioma.cpl/
@supportURL   http://example.pl/kontakt
@license      unlicense
@preprocessor stylus

==/UserStyle== */

  [data-builder-mode=dark] {

    --builder-structure-input-height: 24px;
    --builder-border-radius-structure: 0px;
    --builder-labels-size: 11.5px;  
    
    --builder-border-light: hsla(0, 0%, 100%, .05);
    --builder-id-bg: #332427;
    --builder-id-text: #f01e48;
    --builder-id-hover:  #f06682;
  --builder-canvas-scrollbar-track: var(--builder-gray-2) !important;
    --builder-canvas-scrollbar-thumb: var(--builder-gray-5) !important;
    --builder-canvas-scrollbar-thumb_hover: var(--builder-gray-8) !important;

}


textarea::-webkit-scrollbar {
    /* background: red !important; */
    background: var(--builder-gray-5) !important;
    width: 10px !important;
}

iframe::-webkit-scrollbar {
    /* background: red !important; */
    width: 10px !important;
}

textarea::-webkit-scrollbar-thumb {
    background: var(--builder-gray-6) !important;
    border-radius: 0px !important;
}

textarea::-webkit-scrollbar-track {
    /* background: red !important; */
    background: var(--builder-gray-4) !important;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--builder-gray-8) !important;
}


#bricks-toolbar li {
    height: 34px;
    width: 34px;
}

#bricks-toolbar {
    font-size: 14px;
    height: 34px;
}

#bricks-preview {
    top: 34px !important;
    height: calc(100vh - 34px) !important;
}

body #bricks-structure {
    top: 34px;
}

.bricks-panel {
    top:34px;
    height: calc(100vh - 34px) !important;
}



#bricks-structure[data-has-shortcuts-sidebar="true"]{
    grid-template-columns: calc(100% - 34px) 34px;
    padding-bottom: 0px;
}

body.brxc-has-panel-shortcuts #bricks-panel-element[data-active="true"] {
    grid-template-columns: 34px calc(100% - 34px);
}


body.brxc-has-panel-shortcuts #bricks-panel-element > .brxce-panel-shortcut__wrapper li {
    padding: 12.5px;
}

input#bricks-panel-search {
    border: 0px !important;
    padding: 0px 10px !important;
    margin: 0px !important;
}

#bricks-panel-view {
    padding: 4px;
}

#bricks-structure #bricks-panel-header {
    margin: 10px 0px;
    padding: 5px 10px;
    border-bottom: 1px solid var(--builder-border-color);
}

#bricks-panel-elements .sortable-wrapper {
    grid-template-columns: repeat(3,1fr);
}

.bricks-panel-controls label {
    line-height: 13px;
    font-size: var(--builder-labels-size);
}

.bricks-panel-controls .control {
    margin: 6px var(--builder-spacing) 0;
}

.bricks-panel-controls .control-inline>[data-control=number], .bricks-panel-controls .control-inline>div {
    flex-grow: 1;
}

.bricks-panel-controls .control-group-title {
    letter-spacing: .5px;
    line-height: 28px;
}

#bricks-structure .bricks-structure-list {
    margin-left: 7px;
}



#bricks-structure .toggle {
    height: calc(var(--builder-input-height) / 1.5);
    left: -10px;
    width: 10px;
}

.bricks-panel input {
    height: calc(var(--builder-input-height) / 1.35);
    line-height: calc(var(--builder-input-height)/1.35);
    padding: 0 12px 0 8px;
}

[data-control=select] .input {
    height: calc(var(--builder-input-height)/1.35);
    line-height: calc(var(--builder-input-height)/1.35);
}

.control-visual svg {
    height: 16px !important;
    opacity: 1;
    width: 16px !important;
}

#bricks-structure .structure-item input {
    font-size: var(--builder-labels-size);
}

#bricks-structure .structure-item {
    border-radius: var(--builder-border-radius);
    margin-bottom: 3px;
    line-height: calc(var(--builder-structure-input-height) + 2px);
}


#bricks-structure .element.active .element:before {
    left: -8px;
}

#bricks-structure .element.active:before {
    bottom: 15px;
    transform: translateX(-9px);
    top: 12px;
}


#bricks-structure .structure-item .actions {
    position: absolute;
    right: 0;
}

#bricks-structure .structure-item .actions .action {
    line-height: var(--builder-structure-input-height);
}

#bricks-structure .structure-item .element-states {
    gap: 2px;
    width: 10px;
}

#bricks-structure .structure-item .element-states svg {
    height: 7px;
    opacity: 0.5;
}

#bricks-panel-elements .sortable-wrapper {
    gap: 0px;
    margin: 0px;
    padding: 0px;
}

.bricks-add-element {
    background-color: var(--builder-gray-2);
    border-radius: var(--builder-border-radius-structure);
    border-width: 0.5px;
    border-radius: 0px;
    border-color: var(--builder-border-light);
}

.brxc-overlay__wrapper.sidebar .brxc-overlay__inner {
    height: calc(100vh - 34px);
}

.dynamic-tag-picker-button {
    height: calc(var(--builder-input-height) / 1.3);
    line-height: calc(var(--builder-input-height) / 1.3);
    top: 2px;
}

.brxc-overlay__wrapper.sidebar {
    top: 34px;
}

#bricks-structure .structure-item .title {
    align-items: center;
    background-color: transparent;
    display: flex;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-right: 7px;
}

#bricks-panel-elements-categories .category-title {
    letter-spacing: 0.2px;
    line-height: calc(var(--builder-input-height) + 4px);
    border: 0.5px solid var(--builder-border-color);
    background: var(--builder-bg-2);
}


.bricks-panel-controls .control-group.open .control-group-title {
    background-color: var(--builder-bg-2);
}

#bricks-panel-element-classes .active-class {
    flex-flow: wrap;
padding: 2px 6px 6px 6px;
    gap: 3px;
}

.active-class>*:not(input) {
    display: flex !important;
}

#bricks-panel-element-classes .active-class input {
    width: 100%;
}


#bricks-structure .panel-content>.bricks-structure-list {
    height: 100%;
    margin: 0;
    padding: 0px 10px;
}



.brxc-tag-btn-wrapper button.brxc-tag-btn {
    font-size: 8px;
    padding: 0px 6px !important;
    background-color: var(--builder-gray-3);
    color: var(--builder-gray-f);
    opacity: 0.75;
    position: relative;
    top: -1.5px;
}

#bricks-panel-element-classes .bricks-control-popup {
    left: 12px;
    right: 12px;
}

#bricks-panel-element-classes .active-class .actions {
    gap: 3px;
}


.control-visual .bricks-svg-wrapper {
    height: calc(var(--builder-input-height) / 1.5);
}

#bricks-panel #bricks-panel-header .actions {
    gap: 3px;
    margin-bottom: 10px;
}

.bricks-panel-controls .has-setting .indicator {
    width: 6px;
    height: 6px;
}

.element.active > .structure-item.brxc-active-class > .title .brxc-tag-btn-wrapper button.brxc-tag-btn {
    background-color: var(--builder-bg-accent);
    color: var(--builder-color-accent);
    opacity: 1;
}

#bricks-panel #bricks-panel-header input {
    height: auto;
    line-height: var(--builder-input-height);
    font-size: 18px;
    letter-spacing: 0px;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 75ms ease;
    padding: 10px 0px;
    border-bottom: 1px solid var(--builder-border-color);
}

#bricks-panel #bricks-panel-header input:hover {
    background: var(--builder-gray-3);
    padding-left: 5px;
}

#bricks-panel #bricks-panel-header input:focus, #bricks-panel #bricks-panel-header input:active {
    background: var(--builder-gray-3);
}

#bricks-structure .bricks-structure-list .bricks-draggable-item .structure-item.brxc-active-class {
    box-shadow: inset 0px 0px 0px 1px var(--builder-color-highlight)
}

[data-control=select] li {
    line-height: 12px;
}

#bricks-panel-header, #bricks-panel-element-classes, #bricks-panel-tabs {
    padding: 0px 12px;
}

.bricks-add-element .element-label {
    box-shadow: none;
    opacity: 0.75;    
}

#bricks-panel-tabs li {
    padding: 0px 6px;
    line-height: 28px;
}

#bricks-structure[data-has-shortcuts-sidebar="true"] .brxce-panel-shortcut__wrapper i {
    font-size: 16px;
}

#bricks-structure[data-has-shortcuts-sidebar="true"] .brxce-panel-shortcut__wrapper li {
    padding: 12px;
}

.bricks-panel-controls .control {
    margin: 0px;
    padding: 4px 12px 2px 20px;
}

.brxc-tag-btn-wrapper {
    line-height: 24px;
}

.brxc-tag-btn-wrapper ul.dropdown li {
    line-height: 12px;
}

input.brxc-input-text {
        line-height: 28px;
    font-size: 12px;
}


#classConverterPreviewCanvas ul {
    padding: 4px;
}

#classConverterPreviewCanvas li, #brxcClassBulkActionList li {
        padding: 2px 6px;
    font-size: 12px;
}

#classConverterPreviewCanvas li input {
    font-size: 12px;
}

#brxcVariableOverlay .brxc-overlay__action-btn, #brxcCSSOverlay .isotope-wrapper .brxc-overlay__action-btn {
    padding: 2px 6px !important;
    font-size: 13px;
}

#brxcVariableOverlay .brxc-overlay__action-btn-wrapper, #brxcCSSOverlay .isotope-wrapper .brxc-overlay__action-btn-wrapper {
    gap: 4px;
}

.brxc-clone-class-wrapper span.bricks-svg-wrapper.create {
    top: 5px;
}

#bricks-panel-element-classes .active-class .symbol {
    height: 16px;
    min-width: 16px;
}

/* At color structure states */
/*

#bricks-structure .element.active>.structure-item>.title i {
    color: var(--builder-id-text) !important;
}

#bricks-structure .element.active>.structure-item.brxc-active-class>.title i {
    color: var(--builder-color-accent) !important;
}

#bricks-structure .element.active>.structure-item {
    background: var(--builder-id-bg);
}

#bricks-structure .element.active>.structure-item >.title input{
...

Reviews

No reviews yet.