Skip to content

Commit

Permalink
Sidebar spinfield input field update CollaboraOnline#3770
Browse files Browse the repository at this point in the history
**spinfield unit**
- spinfield unit element was moved inside the spinfield
- there is space enough for 2 letters

**spinfield sync with listbox**
all items are similar to listbox elements
- add 4px border radius
- add border color
- add hover effect

**spinfield and listbox alignment**
- spinfield and listboxes should be right align
- therefore a fixed width for spinfield was added
- fixed spinfield width was designed for paragraph section
- some spinfields need movement

Signed-off-by: andreas kainz <[email protected]>
Change-Id: Ic90b450a423f7c9b728e39c854a02e4b02dfe7b7
  • Loading branch information
Andreas-Kainz authored and pedropintosilva committed Dec 16, 2021
1 parent 20f6601 commit 9ac13dd
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions browser/css/jssidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,40 @@
box-sizing: border-box;
}

.sidebar .spinfieldcontainer input {
width: 85px;
border: 1px solid var(--gray-color);
border-radius: 4px;
height: 28px;
padding-left: 4px;
position: relative;
left: 8px;
}

.sidebar.spinfield {
max-width: 104px;
border: 1px solid #CCC;
padding: 4px 0 4px 4px;
border-radius: 3px;
height: 28px;
box-sizing: border-box;
margin-right: 1px;
}
.sidebar.spinfield:hover {
border: 1px solid var(--gray-color);
.sidebar .spinfieldcontainer input:hover {
border: 1px solid var(--gray-light-txt--color);
}

.spinfieldunit {
font-size: 12px;
color: var(--gray-light-txt--color);
margin: 5px;
position: relative;
right: 40px;
}

.sidebar.ui-listbox {
font-size: 13px;
height: 28px;
box-sizing: border-box;
padding: 0 14px 0 4px;
padding: 0 0px 0 4px;
min-width: auto;
}

Expand Down Expand Up @@ -246,12 +256,10 @@ td.jsdialog .jsdialog.cell.sidebar {
padding-top: 8px;
}

.spinfieldcontainer {
margin-right: 10px;
}

#settransparency {
margin-right: 5px;
#settransparency,
#FillColor {
position: relative;
left: 23px;
}

#fillattrhb {
Expand Down Expand Up @@ -280,7 +288,7 @@ td.jsdialog .jsdialog.cell.sidebar {
}

#fillgrad2 {
padding-top: 4px;
padding: 4px 10px;
width: 160px;
position: relative;
left: -11px;
Expand All @@ -292,6 +300,10 @@ td.jsdialog .jsdialog.cell.sidebar {
height: 15px;
}

#gradangle > .spinfield {
width: 70px;
}

#orientationcontrol,
#rotation,
#misc_label {
Expand Down Expand Up @@ -326,6 +338,7 @@ button#button2.ui-pushbutton.jsdialog.sidebar {
margin-right: 0;
}

.sidebar .spinfieldcontainer input {
width: calc(100% - 28px);
#linetransparency {
position: relative;
left: -20px;
}

0 comments on commit 9ac13dd

Please sign in to comment.