| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858 |
- :root {
- --ls-draggable-handle-height: 30px;
- }
- .cp__plugins {
- &-page {
- background-color: var(--ls-primary-background-color);
- margin: -2rem;
- padding: 1.5rem 2rem;
- outline: none;
- @screen xl {
- width: 1260px;
- }
- > h1 {
- margin: 0;
- padding: 0;
- font-size: 22px;
- font-weight: 600;
- }
- .admonitionblock {
- margin: 1rem 15px;
- .text-lg {
- font-size: 16px;
- }
- }
- .tabs {
- .ui__button {
- background-color: transparent;
- margin: 0 8px;
- > span {
- display: flex;
- align-items: center;
- font-size: 16px;
- font-weight: normal;
- svg {
- margin-right: 6px;
- }
- }
- &.active {
- background-color: var(--ls-tertiary-background-color);
- }
- }
- }
- .secondary-tabs {
- button {
- margin-right: 5px;
- background: transparent;
- .ti {
- margin-right: 3px;
- }
- &.active {
- background: var(--ls-secondary-background-color);
- color: var(--ls-link-text-color);
- }
- }
- }
- .control-tabs {
- .ti {
- margin-right: 4px;
- }
- .ui__dropdown-trigger {
- .ti-circle {
- visibility: hidden;
- }
- }
- }
- .ui__button {
- position: relative;
- border: none;
- &:active {
- opacity: .8;
- }
- &.contribute {
- position: absolute;
- top: -46px;
- right: 0;
- background: transparent;
- font-size: 12px;
- opacity: .8;
- display: none;
- @screen md {
- display: block;
- }
- }
- &.load-unpacked {
- opacity: .9;
- background: transparent;
- }
- &.sort-or-filter-by, &.more-do {
- padding: 0 4px;
- }
- &.picked {
- &:after {
- content: " ";
- position: absolute;
- top: -2px;
- right: 4px;
- background-color: red;
- width: 4px;
- height: 4px;
- border-radius: 50%;
- }
- }
- }
- .search-ctls {
- margin: 3px 13px;
- display: flex;
- align-items: center;
- position: relative;
- small.s1 {
- left: 6px;
- top: 6px;
- }
- small.s2 {
- right: 4px;
- top: 6px;
- user-select: none;
- cursor: pointer;
- z-index: 1;
- }
- .form-input {
- background-color: var(--ls-primary-background-color);
- padding: 5px 7px 5px 22px;
- opacity: .5;
- &:focus {
- background-color: var(--ls-secondary-background-color);
- opacity: 1;
- }
- }
- }
- }
- &-installed {
- min-height: 60vh;
- padding-top: 5px;
- }
- &-marketplace {
- min-height: 60vh;
- padding-top: 5px;
- &.has-installing {
- .ctl {
- a.btn {
- pointer-events: none;
- }
- }
- }
- }
- &-item-lists {
- @apply w-full grid grid-flow-row gap-3 pt-1;
- }
- &-item-card {
- @apply flex py-3 px-1 rounded-md;
- background-color: var(--ls-secondary-background-color);
- height: 150px;
- li {
- margin: 0;
- }
- .head {
- max-height: 50px;
- overflow: hidden;
- line-height: 24px;
- padding-right: 24px;
- }
- .desc {
- height: 60px;
- overflow: hidden;
- > p {
- @apply overflow-hidden overflow-ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- }
- .flag {
- position: absolute;
- bottom: 16px;
- left: 0;
- width: 100%;
- > p {
- color: var(--ls-primary-text-color);
- opacity: .8;
- > small {
- cursor: pointer;
- }
- }
- &.is-top {
- width: unset;
- top: 4px;
- right: 6px;
- left: unset;
- bottom: unset;
- &:hover {
- opacity: .8;
- }
- }
- }
- > .l {
- padding: 8px;
- svg, .icon {
- width: 60px;
- height: 60px;
- opacity: .8;
- &:hover {
- opacity: 1;
- }
- }
- }
- > .r {
- flex: 1;
- position: relative;
- p {
- @apply py-1 m-0;
- }
- .ctl {
- @apply flex pl-2 items-center justify-between absolute w-full;
- bottom: -8px;
- right: 7px;
- .de {
- font-size: 10px;
- padding: 5px 2px;
- padding-right: 3px;
- border-radius: 2px;
- margin-right: 5px;
- user-select: none;
- transition: none;
- opacity: .2;
- position: relative;
- z-index: var(--ls-z-index-level-1);
- .ti {
- font-size: 16px;
- }
- .menu-list {
- @apply shadow-md rounded-sm absolute hidden list-none overflow-hidden m-0 p-0;
- background-color: var(--ls-primary-background-color);
- top: 22px;
- left: 0;
- min-width: 120px;
- > li {
- margin: 0;
- padding: 5px;
- transition: background-color .2s;
- user-select: none;
- font-weight: bold;
- opacity: .9;
- &:hover {
- background-color: var(--ls-quaternary-background-color);
- &:active {
- opacity: 1;
- }
- }
- }
- }
- &.err {
- @apply text-red-500 opacity-100;
- }
- &.log {
- padding: 5px;
- }
- &.sponsors {
- .menu-list {
- min-width: auto;
- white-space: nowrap;
- > li {
- &:hover {
- background-color: unset;
- }
- }
- .ti {
- font-size: 12px;
- }
- }
- }
- svg {
- width: 15px;
- height: 15px;
- }
- &:hover {
- opacity: .9;
- .menu-list {
- display: block;
- }
- }
- }
- > .l {
- @apply flex items-center;
- margin-left: -70px;
- }
- a.btn {
- display: inline-flex;
- align-items: center;
- line-height: 1;
- padding: 4px;
- font-size: 13px;
- border-radius: 2px;
- user-select: none;
- position: relative;
- margin-left: 4px;
- svg {
- opacity: .3;
- }
- &:hover {
- svg {
- opacity: .8;
- }
- }
- &:active {
- opacity: .6;
- }
- &.disabled {
- pointer-events: none;
- cursor: default;
- color: var(--ls-primary-text-color);
- opacity: .3;
- }
- &.installing {
- small {
- position: absolute;
- transform: scale(.5) translateX(-180%);
- margin-right: 2px;
- }
- }
- }
- .ui__toggle {
- margin-left: 5px;
- }
- }
- }
- &.market {
- &.installed {
- }
- .ctl {
- padding-left: 12px;
- bottom: -5px;
- }
- }
- .updates-actions {
- opacity: 0;
- }
- &:hover {
- .updates-actions {
- opacity: 1;
- }
- }
- &.has-new-version, &.updating {
- .updates-actions {
- opacity: 1;
- }
- }
- &.market.installed {
- opacity: .5;
- &:hover {
- opacity: 1;
- }
- }
- }
- &-details {
- }
- &-waiting-updates {
- margin: -15px;
- > ul {
- li {
- user-select: none;
- justify-content: space-between;
- opacity: .9;
- sup {
- padding-left: 8px;
- font-weight: 400;
- }
- &:hover, &.checked {
- opacity: 1;
- }
- }
- }
- }
- &-settings {
- &-inner {
- position: relative;
- padding: 10px 0 20px;
- > .edit-file {
- position: absolute;
- top: 12px;
- right: 8px;
- }
- .heading-item {
- margin: 12px 12px 6px;
- font-weight: bold;
- border-bottom: 1px solid var(--ls-border-color, #738694);
- }
- .desc-item {
- padding: 12px 12px 6px;
- > h2 {
- padding-bottom: 2px;
- font-weight: 600;
- font-size: 13px;
- line-height: 1;
- display: flex;
- align-items: center;
- code {
- margin-right: 4px;
- line-height: 1.2;
- }
- }
- > .form-control {
- display: flex;
- align-items: center;
- padding: 5px 2px;
- > small {
- user-select: none;
- }
- }
- &.as-toggle {
- }
- &.as-input, &.as-enum, &.as-object {
- > .form-control {
- padding-top: 4px;
- flex-direction: column;
- align-items: flex-start;
- small {
- padding-bottom: 6px;
- width: 100%;
- }
- }
- }
- &.as-enum {
- > .form-control {
- > .wrap {
- flex-direction: column;
- width: 100%;
- margin-top: -3px;
- }
- }
- }
- &:hover {
- background: var(--ls-tertiary-background-color);
- }
- .ui__radio-list, .ui__checkbox-list {
- display: flex;
- align-items: center;
- padding-top: 3px;
- label {
- padding-right: 15px;
- user-select: none;
- }
- input {
- margin-right: 6px;
- }
- }
- .form-input {
- padding: 5px;
- width: 70%;
- }
- textarea.form-input {
- overflow-y: auto;
- resize: vertical;
- }
- .form-select {
- width: 50%;
- padding: 4px 4px 4px 7px !important;
- margin: 5px 0 0;
- }
- }
- }
- aside {
- max-height: 70vh;
- overflow: auto;
- margin-bottom: -17px;
- ul {
- img.icon {
- height: 24px;
- width: 24px;
- }
- li {
- strong {
- font-weight: 400;
- overflow: hidden;
- height: 22px;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- }
- article .panel-wrap {
- padding: 0;
- min-width: 600px;
- width: 100%;
- max-width: 760px;
- }
- }
- }
- .cp__themes {
- &-installed {
- margin: -2rem;
- outline: none;
- padding: 1rem;
- .it {
- user-select: none;
- background-color: var(--ls-secondary-background-color);
- border: 1px solid transparent;
- margin-bottom: 4px;
- cursor: pointer;
- opacity: .8;
- .name {
- font-weight: 600;
- }
- &.is-active {
- background-color: var(--ls-tertiary-background-color);
- border: 1px solid var(--ls-quaternary-background-color);
- opacity: 1;
- }
- &.is-selected {
- opacity: 1;
- }
- &:hover {
- opacity: 1;
- }
- }
- }
- }
- .lsp-iframe-sandbox, .lsp-shadow-sandbox, .lsp-ui-float {
- height: 100%;
- width: 100%;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- margin: 0;
- padding: 0;
- &-container {
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1;
- visibility: hidden;
- display: none;
- height: 0;
- width: 0;
- padding: 0;
- margin: 0;
- &.visible {
- z-index: var(--ls-z-index-level-2);
- width: 100%;
- height: 100%;
- visibility: visible;
- display: block;
- }
- &[draggable=true] {
- -webkit-user-drag: none;
- > .draggable-handle {
- display: block;
- height: var(--ls-draggable-handle-height);
- cursor: move;
- user-select: none;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- overflow: hidden;
- > .th {
- display: flex;
- align-items: center;
- height: var(--ls-draggable-handle-height);
- user-select: none;
- position: relative;
- background-color: var(--ls-secondary-background-color);
- color: var(--ls-primary-text-color);
- > .l {
- flex-basis: 80%;
- }
- > .r {
- position: absolute;
- right: 0;
- top: 0;
- }
- h3 {
- padding: 0 5px;
- white-space: nowrap;
- max-width: 60%;
- overflow: hidden;
- -webkit-line-clamp: 1;
- text-overflow: ellipsis;
- }
- a.button {
- &:hover {
- background-color: transparent;
- }
- }
- }
- }
- .lsp-iframe-sandbox,
- .lsp-shadow-sandbox,
- .ls-ui-float-content {
- height: calc(100% - var(--ls-draggable-handle-height));
- width: 100%;
- margin-top: var(--ls-draggable-handle-height);
- overflow: auto;
- }
- .ls-ui-float-content {
- user-select: text;
- }
- &.is-dragging {
- /*height: var(--ls-draggable-handle-height) !important;*/
- opacity: .7;
- > .draggable-handle {
- background-color: rgba(0, 0, 0, .1);
- height: 100%;
- z-index: 3;
- }
- }
- }
- &[resizable=true] {
- > .resizable-handle {
- position: absolute;
- bottom: -1px;
- right: -1px;
- height: 15px;
- width: 15px;
- z-index: 2;
- opacity: 0;
- cursor: nwse-resize;
- user-select: none;
- }
- &.is-resizing {
- > .resizable-handle {
- width: 90%;
- height: 80%;
- }
- }
- }
- }
- }
- .lsp-ui-float-container {
- top: 40%;
- left: 30%;
- border: 2px solid var(--ls-border-color);
- .draggable-handle {
- }
- &.visible {
- height: unset;
- }
- }
- .ui-items-container {
- &[data-type=toolbar] {
- @apply flex items-center;
- > .injected-ui-item-toolbar {
- @apply hover:opacity-100 transition-opacity;
- }
- }
- &[data-type=pagebar] {
- @apply flex items-start pl-2;
- > .injected-ui-item-pagebar {
- @apply pr-3 opacity-30 hover:opacity-100 transition-opacity;
- }
- }
- .toolbar-plugins-manager {
- &-trigger {
- .dropdown-wrapper {
- max-height: 80vh;
- overflow-y: auto;
- }
- .menu-link {
- padding: 3px 5px;
- }
- .item-wrap {
- padding-right: 28px;
- font-size: 13px;
- position: relative;
- div[data-injected-ui] .ti {
- position: relative;
- bottom: -1px;
- }
- }
- .pin {
- position: absolute;
- top: 0;
- right: 0;
- height: 100%;
- padding: 0 6px;
- &.pinned {
- color: var(--ls-link-ref-text-color);
- opacity: 90;
- }
- }
- }
- }
- }
- .lsp-frame-readme {
- margin: -2rem;
- min-height: 75vh;
- min-width: 900px;
- }
- html[data-theme='dark'] {
- .lsp-frame-readme {
- background-color: #eeeeee;
- }
- }
- .block-content {
- .lsp-hook-ui-slot {
- display: inline-flex;
- [data-injected-ui] {
- display: inline-flex;
- }
- }
- }
- body[data-page=plugins] {
- .cp__sidebar-main-content {
- max-width: 1280px !important;
- width: 80%;
- padding-left: 30px;
- padding-right: 30px;
- }
- }
|