OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/stylesheets/content/_grid.sass

98 lines
1.7 KiB

$grid--gap-width: 20px
$grid--header-width: 20px
@mixin grid--commons
display: grid
grid-column-gap: $grid--gap-width
grid-row-gap: $grid--gap-width
.grid--container
@include grid--commons
6 years ago
.grid--area
overflow: hidden
&.-drop-target
background-color: $gray-light
&.-resize-target
z-index: 1000
&.-widgeted
z-index: 10
6 years ago
@include widget-box--style
margin: 0
6 years ago
padding: 20px
&.-resizing
border: 1px solid $primary-color
z-index: 100
6 years ago
&.-addable
display: flex
flex-direction: column
justify-content: center
align-items: center
6 years ago
.resizer
margin-top: 0
6 years ago
margin-left: auto
margin-right: -20px
position: relative
6 years ago
.cdk-drag-handle
cursor: grab
.grid--widget-add
padding: 15px
background-color: $gray
border-radius: 50%
&:before
@include icon-font-common
@include icon-mixin-add
6 years ago
.grid--widget-remove
float: right
margin-top: -10px
margin-right: -10px
cursor: pointer
&:before
@include icon-font-common
@include icon-mixin-remove
font-size: 0.75em
.grid--top-headers
@include grid--commons
grid-template-rows: $grid--header-width
.grid--left-headers
@include grid--commons
grid-template-columns: $grid--header-width
float: left
margin-left: -$grid--header-width
.grid--header
background-color: $gray-light
transition: background-color 4s ease
&:hover
background-color: $gray
transition: background-color 1s ease
.grid--addable-widget
min-width: 400px
padding: 20px 5px
border-bottom: 1px solid $gray
cursor: pointer
background: none
transition: background 4s ease
&:hover
background: $gray-light
transition: background 1s ease
&:last-of-type
border-bottom: none