Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
overflow: auto;
padding: 2rem;
}
}
}
39 changes: 11 additions & 28 deletions web/apps/labelstudio/src/pages/CreateProject/Config/Config.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
$scroll-width: 5px;

@mixin styled-scroll() {
&::-webkit-scrollbar {
width: 6px;
height: 6px;
background-color: var(--color-neutral-border-bolder);
}

&::-webkit-scrollbar-thumb {
background-color: var(--color-neutral-surface);
}
}

.panel {
display: none;
}
Expand All @@ -24,18 +12,18 @@ $scroll-width: 5px;
flex-direction: column;
}

.sidebar-menu__content > .wizard {
.sidebar-menu__content>.wizard {
height: calc(100% + 64px);
margin: -32px -40px;
margin: -32px;
}

.wizard > .configure {
.wizard>.configure {
flex: 1;
min-height: 0;
display: flex;
align-items: stretch;

> * {
>* {
flex: 50%;
}
}
Expand Down Expand Up @@ -254,8 +242,6 @@ $scroll-width: 5px;
display: flex;
flex: 1;
overflow-y: auto;

@include styled-scroll;
}

.configure__tags-link {
Expand Down Expand Up @@ -284,7 +270,7 @@ $scroll-width: 5px;
}

.wizard .configure__visual {
> * {
>* {
border-top: 1px solid var(--color-neutral-border);
padding-top: 16px;
margin-bottom: 16px;
Expand All @@ -301,7 +287,8 @@ $scroll-width: 5px;
}
}

input, select {
input,
select {
padding: 4px 8px;
font: inherit;
color: inherit;
Expand All @@ -316,12 +303,12 @@ $scroll-width: 5px;
color: var(--color-neutral-content);
}

> p {
>p {
line-height: 32px;
color: var(--color-neutral-content-subtler);
}

> p.configure__object-error {
>p.configure__object-error {
line-height: 22px;
margin-top: 8px;
color: var(--color-negative-content);
Expand Down Expand Up @@ -399,8 +386,6 @@ $scroll-width: 5px;
align-items: stretch;
flex: 1;

@include styled-scroll;

.configure__label {
display: flex;
align-items: stretch;
Expand Down Expand Up @@ -545,8 +530,6 @@ $scroll-width: 5px;
flex-direction: column;
color: var(--color-neutral-content);

@include styled-scroll;

h3 {
margin: 8px 0 16px;
font-size: 16px;
Expand Down Expand Up @@ -585,7 +568,7 @@ $scroll-width: 5px;


.main-view {
&__annotation{
&__annotation {
padding: 0;
}
}
Expand All @@ -605,4 +588,4 @@ div[class^="App_menu"]>div {
:global(input.lsf-configure__add:hover) {
color: var(--color-neutral-content);
background: var(--color-primary-emphasis-subtle);
}
}
17 changes: 1 addition & 16 deletions web/libs/editor/src/assets/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,6 @@
}
}

@mixin styled-scrollbars(){
scrollbar-color: var(--color-neutral-border) var(--color-neutral-background);
scrollbar-width: thin;

&::-webkit-scrollbar{
width: 4px;
height: 4px;
background-color: var(--color-neutral-surface);
}

&::-webkit-scrollbar-thumb{
background: var(--color-neutral-border-boldest);
}
}

@mixin waiting($c1: #efefef, $c2: #fff) {
$base-color: rgba($c2, 0.2);
$accent-color: $c1;
Expand All @@ -46,4 +31,4 @@
100% {
background-position: 37px 0;
}
}
}
4 changes: 1 addition & 3 deletions web/libs/editor/src/components/SidePanels/PanelBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@
overflow: hidden auto;
height: calc(100% - var(--header-height));
position: relative;

@include styled-scrollbars;
}

&__resizer {
Expand Down Expand Up @@ -377,4 +375,4 @@
display: block;
}
}
}
}
4 changes: 1 addition & 3 deletions web/libs/editor/src/components/SidePanels/SidePanels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
position: relative;
z-index: 1;

@include styled-scrollbars;

& .main-content {
overflow: auto;
padding-bottom: calc(var(--bottombar-height) + 8px);
Expand Down Expand Up @@ -134,4 +132,4 @@
flex: 1;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@
overflow: hidden;
height: calc(100% - var(--header-height));
position: relative;

@include styled-scrollbars;

pointer-events: all;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
z-index: 1;
overflow: hidden auto;

@include styled-scrollbars;

& .main-content {
overflow: auto;
padding-bottom: calc(var(--bottombar-height) + 8px);
Expand Down Expand Up @@ -171,4 +169,4 @@
width: 4px;
height: 30px;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Scenario("TextArea should not be serialized when parent View is not visible", as
I.dontSee("Y");
I.dontSee("details");

I.wait(1);
I.say("Check serialization - details should not be included");
const result = await LabelStudio.serialize();

Expand Down
51 changes: 44 additions & 7 deletions web/libs/ui/src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,40 @@ body {
@apply !text-neutral-content !bg-neutral-background;
}

h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 500;
margin: 0;
color: inherit !important;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h4 { font-size: 1em; }
h5 { font-size: 0.83em; }
h6 { font-size: 0.67em; }
h1 {
font-size: 2em;
}

h2 {
font-size: 1.5em;
}

h3 {
font-size: 1.17em;
}

h4 {
font-size: 1em;
}

h5 {
font-size: 0.83em;
}

h6 {
font-size: 0.67em;
}

a {
@apply text-primary-content;
Expand Down Expand Up @@ -94,3 +116,18 @@ a:hover {
pointer-events: all;
}
}

* {
scrollbar-color: var(--color-neutral-border) var(--color-neutral-background);
scrollbar-width: thin;
}

*::-webkit-scrollbar {
width: 4px;
height: 4px;
background-color: var(--color-neutral-surface);
}

*::-webkit-scrollbar-thumb {
background: var(--color-neutral-border-boldest);
}
Loading