Increase font-size of cards, align board on the left with the toolbar & change style of „add list“ button

pull/7216/head
Henriette Dinger 6 years ago
parent 87ff1176c7
commit 7eac4298c3
  1. 3
      frontend/src/app/components/wp-card-view/wp-card-view.component.html
  2. 4
      frontend/src/app/components/wp-card-view/wp-card-view.component.sass
  3. 2
      frontend/src/app/modules/boards/board/board-list/board-list.component.sass
  4. 32
      frontend/src/app/modules/boards/board/board.component.sass
  5. 3
      lib/open_project/design.rb

@ -1,5 +1,5 @@
<div #container <div #container
class="wp-cards-container -small-font"> class="wp-cards-container">
<div *ngIf="inReference" <div *ngIf="inReference"
class="wp-inline-create--reference-container"> class="wp-inline-create--reference-container">
<ndc-dynamic [ndcDynamicComponent]="referenceClass" <ndc-dynamic [ndcDynamicComponent]="referenceClass"
@ -53,7 +53,6 @@
class="wp-card--subject -bold"></span> class="wp-card--subject -bold"></span>
<wp-status-button *ngIf="showStatusButton" <wp-status-button *ngIf="showStatusButton"
[workPackage]="wp" [workPackage]="wp"
containerClass="-small"
class="wp-card--status"> class="wp-card--status">
</wp-status-button> </wp-status-button>
<user-avatar *ngIf="hasAssignee(wp)" <user-avatar *ngIf="hasAssignee(wp)"

@ -19,11 +19,12 @@
width: 100% width: 100%
border: 1px solid var(--widget-box-block-border-color) border: 1px solid var(--widget-box-block-border-color)
border-radius: 2px border-radius: 2px
padding: 15px padding: 10px
margin-top: 10px margin-top: 10px
position: relative position: relative
box-shadow: 1px 1px 3px 0px lightgrey box-shadow: 1px 1px 3px 0px lightgrey
background: var(--body-background) background: var(--body-background)
font-size: var(--card-font-size)
&:hover &:hover
box-shadow: 0px 0px 10px lightgrey box-shadow: 0px 0px 10px lightgrey
@ -49,6 +50,7 @@
white-space: normal white-space: normal
.wp-card--assignee .wp-card--assignee
grid-area: avatar grid-area: avatar
place-self: center left
.wp-card--status .wp-card--status
grid-area: attributeTag grid-area: attributeTag
max-width: 120px max-width: 120px

@ -45,7 +45,7 @@ $board-list-max-width: 300px
background-color: var(--body-background) background-color: var(--body-background)
width: calc(100% - 30px) width: calc(100% - 30px)
margin: 0 15px margin: 0 15px
box-shadow: 2px 2px 5px 0px lightgrey box-shadow: 1px 1px 3px 0px lightgrey
&:hover &:hover
background-color: #eeeeee50 background-color: #eeeeee50

@ -4,6 +4,7 @@ $board-list-max-width: 300px
.controller-boards\/boards .controller-boards\/boards
#content-wrapper #content-wrapper
padding-bottom: 0 padding-bottom: 0
padding-left: 0
#content #content
height: 100% height: 100%
@ -23,10 +24,14 @@ $board-list-max-width: 300px
max-width: $board-list-max-width max-width: $board-list-max-width
position: relative position: relative
&:first-of-type
margin-left: 5px
.board--header-container .board--header-container
display: flex display: flex
align-items: flex-start align-items: flex-start
margin-bottom: 0 margin-bottom: 0
margin-left: 20px
.boards-list-item-handle .boards-list-item-handle
position: absolute position: absolute
@ -48,20 +53,17 @@ $board-list-max-width: 300px
opacity: 1 opacity: 1
.boards-list--add-item .boards-list--add-item
flex: 0 0 230px flex: 0 0 auto
border: 1px dashed #ccc
border-radius: 5px
// Same height as board list header // Same height as board list header
height: 43px height: 43px
margin-left: 30px line-height: 43px
margin-left: 15px
// Center child text font-size: 14px
display: flex cursor: pointer
align-items: center color: var(--gray-dark)
justify-content: center
// Align self at top &:hover
align-self: flex-start color: var(--body-font-color)
.board--container .board--container
position: relative position: relative
@ -69,13 +71,5 @@ $board-list-max-width: 300px
flex-direction: column flex-direction: column
height: 100% height: 100%
// Changes when container is editable
&.-editable
.boards-list--add-item
cursor: pointer
&:hover
background-color: #f0f0f080
.boards-filters-container .work-packages--filters-optional-container .boards-filters-container .work-packages--filters-optional-container
margin-bottom: 1rem margin-bottom: 1rem

@ -198,7 +198,8 @@ module OpenProject
'timeline--separator' => '3px solid #E7E7E7', 'timeline--separator' => '3px solid #E7E7E7',
'table-timeline--row-height' => '40px', 'table-timeline--row-height' => '40px',
'status-selector-bg-color' => '#F99601', 'status-selector-bg-color' => '#F99601',
'status-selector-bg-hover-color' => '#E08600' 'status-selector-bg-hover-color' => '#E08600',
'card-font-size' => '14px'
}.freeze }.freeze
# Regular expression for references of other variables. # Regular expression for references of other variables.

Loading…
Cancel
Save