Files
attract/src/styles/_app_base.sass

421 lines
7.5 KiB
Sass
Raw Normal View History

2016-10-20 12:57:00 +02:00
body
position: absolute // allow columns/errors to fill the whole page
top: 0
left: 0
right: 0
bottom: 0
2016-10-20 18:22:58 +02:00
background-color: $color-background-light
2016-10-20 12:57:00 +02:00
#app-main
display: flex
align-items: stretch
position: relative
2016-10-21 17:09:23 +02:00
height: 100%
2016-10-24 15:55:47 +02:00
+media-xs
display: block
height: auto
2016-10-20 18:22:58 +02:00
#col_sidebar
width: $sidebar-width
min-width: $sidebar-width
#col_left, #col_main, #col_right
position: relative
flex: 0 0 auto
min-width: 150px
height: 100%
min-height: 100%
position: relative
2016-10-20 18:22:58 +02:00
2016-10-24 15:55:47 +02:00
+media-xs
height: auto
min-height: auto
margin: 0 auto
padding-left: $sidebar-width !important
2016-10-20 18:22:58 +02:00
#col_main
width: 50% // gets overriden by JS, dragging the col-splitter
2016-10-24 15:55:47 +02:00
+media-xs
width: 100%
2016-10-20 18:22:58 +02:00
#col_right
flex: 1 1 auto
padding-left: 8px // to compensate width of the splitter, which is positioned 'fixed'
2016-10-20 18:22:58 +02:00
.col_header
position: relative
display: flex
align-items: center
width: 100%
min-height: 50px
background-color: white
padding: 10px 15px
font-size: 1.2em
border-bottom: thin solid $color-background
&.scrolled
box-shadow: 0 -2px 20px rgba(black, .2)
.header_text::first-letter
text-transform: capitalize
.col-list-item
display: flex
align-items: center
width: 100%
background-color: white
border-bottom: thin solid $color-background
.col-splitter
flex: 0 0 auto
width: 8px
background-color: $color-background
min-height: 200px
cursor: col-resize
position: fixed
top: 0
bottom: 0
2016-10-20 18:22:58 +02:00
z-index: 1
2016-10-18 18:22:44 +02:00
.flyout.notifications
left: $sidebar-width + 5
top: initial
bottom: 40px
box-shadow: 1px 1px 0 rgba(black, .1), 0 5px 50px rgba(black, .25)
2016-10-20 18:22:58 +02:00
/* Sidebar */
nav.sidebar
position: fixed
2016-10-18 18:22:44 +02:00
z-index: 1
left: 0
width: $sidebar-width
height: 100%
2016-10-18 18:22:44 +02:00
background-color: $color-background-nav-dark
display: flex
flex-direction: column
2016-10-18 18:22:44 +02:00
.dropdown
min-width: $sidebar-width
2016-10-20 18:39:33 +02:00
.dropdown-menu
top: initial
bottom: 3px
left: $sidebar-width
box-shadow: 1px 1px 0 rgba(black, .1), 0 5px 50px rgba(black, .25)
min-width: 200px
li a
justify-content: flex-start
2016-10-18 18:22:44 +02:00
ul
width: 100%
margin: 0
padding: 0
&.bottom
margin-top: auto
li
display: block
2016-10-20 17:12:33 +02:00
a.navbar-item, button
display: flex
color: $color-text-light-hint
font-size: 1.5em
align-items: center
justify-content: center
padding: 10px 0
background: transparent
border: none
width: 100%
2016-10-20 17:50:45 +02:00
text-decoration: none
&:hover
color: $color-text-light-primary
&:active
outline: none
2016-10-18 18:22:44 +02:00
a.dropdown-toggle
padding: 0
margin: 0
width: $sidebar-width
max-width: $sidebar-width
2016-10-20 17:12:33 +02:00
.special
top: 8px
2016-10-20 17:47:06 +02:00
left: 27px
2016-10-20 17:50:45 +02:00
#notifications-toggle
&.active .flyout-hat
display: none
#notifications-count
right: 5px
span
top: 1px
2016-10-20 17:12:33 +02:00
.input-group-flex
display: flex
.input-transparent-group+.input-transparent-group
margin-left: 10px
.input-transparent-group
width: 100%
display: flex
align-items: center
label
padding-right: 10px
font-weight: normal
color: $color-text-dark-primary
min-width: 80px
&.select_multiple
margin-bottom: 10px
select.input-transparent
background-color: $color-background
option
background-color: white
2016-10-20 12:54:03 +02:00
input, input.form-control
background-color: transparent
.input-transparent
border: thin solid transparent
border-radius: 3px
padding: 5px
margin-top: 10px
margin-bottom: 10px
width: 100%
&:hover
border: thin solid $color-text-dark-hint
#status-bar
color: $color-text-dark-secondary
margin-left: auto
text-align: right
.table
display: table
width: 100%
position: relative
2016-10-21 14:47:55 +02:00
margin-bottom: initial // overrides BS
.table-row
display: table-row
.table-head
display: table-header-group
.table-cell
font-size: .9em
color: $color-text-dark-secondary
.table-body
display: table-row-group
.table-cell
display: table-cell
border-bottom: thin solid $color-background-dark
2016-09-22 16:43:19 +02:00
vertical-align: middle
span.hint
color: $color-text-dark-hint
.table-cell-spacer
background-color: $color-background-light
width: 6px
min-width: 4px
height: 100%
display: table-cell
border: 2px solid $color-background
border-top: none
border-bottom: none
cursor: e-resize
2016-09-22 16:43:19 +02:00
2016-10-21 14:47:55 +02:00
.table.table-hover
.table-row:hover
background-color: $color-background-light
2016-10-20 12:54:03 +02:00
/* Generic Statuses */
2016-09-22 16:43:19 +02:00
.processing
+stripes(rgba($color-background, .2), rgba($color-background, .5), -45deg, 25px)
2016-09-22 16:43:19 +02:00
+stripes-animate
animation-duration: 2s
.flash-on
background-color: lighten($color-success, 50%) !important
border-color: lighten($color-success, 40%) !important
color: $color-success !important
text-shadow: 1px 1px 0 white
transition: all .1s ease-in
img
transition: all .1s ease-in
opacity: .8
.flash-off
transition: all 1s ease-out
img
transition: all 1s ease-out
2016-09-23 18:07:20 +02:00
.btn:active
box-shadow: none
.bg-status
@include status-color-property(background-color, '', 'dark')
.fg-status
@include status-color-property(color, '', 'dark')
2016-10-20 12:54:03 +02:00
/* Modal Bootstrap overrides */
.modal-content
border: none
border-radius: 3px
box-shadow: 0 0 25px rgba(black, .25)
background-color: $color-background-light
.modal-header
border-top-left-radius: 3px
border-top-right-radius: 3px
background-color: white
padding: 10px 10px 10px 15px
.title
font-size: 1.2em
.close
float: right
background: transparent
border: none
color: $color-text-dark-hint
&:hover
color: $color-primary
.modal-backdrop
background-color: $color-background-nav
.modal-help-panel
overflow: hidden
border-radius: 3px
width: 30%
background-color: white
box-shadow: 1px 2px 10px rgba(black, .1)
.title
display: block
padding: 10px
color: $color-text-dark-primary
2016-10-20 12:54:03 +02:00
/* Debug styles, such as status color legend on help */
2016-10-21 16:00:58 +02:00
.debug-info
padding-top: 10px
display: flex
flex-direction: column
.debug-info-toggle
width: 100%
color: $color-text-dark-hint
font-size: .9em
text-align: right
.status-debug-item
width: 100%
.status-debug-item-statuses
display: flex
align-items: center
justify-content: center
color: $color-text
text-shadow: 1px 1px 0 rgba(white, .3)
.light, .regular, .dark
flex: 1
min-height: 25px
display: flex
align-items: center
justify-content: center
.light
@include status-color-property(background-color, '', 'light')
.regular
flex: 3
@include status-color-property(background-color, '', '')
.dark
@include status-color-property(background-color, '', 'dark')
2016-10-21 17:01:32 +02:00
.collapsing
transition: all 150ms ease-in-out
opacity: 0
.collapse
transition: all 250ms ease-in-out
&.in
opacity: 1
2016-11-01 15:54:37 +01:00
/* General style for activities in all places */
.d-activity
font-size: .9em
$activity-highlight-color: #00cc9f
ul
cursor: default
padding: 5px
color: $color-text-dark-primary
list-style: none
li
padding: 0 10px 7px 10px
position: relative
span.date
color: darken($activity-highlight-color, 5%)
/* Left Dot */
&:after
content: ''
display: block
position: absolute
top: 6px
left: -3px
width: 5px
height: 5px
border-radius: 50%
background-color: $color-background-light
border: thin solid $activity-highlight-color
transition: all 250ms ease-in-out
/* Left Line */
&:before
content: ''
display: block
position: absolute
top: 10px
left: -1px
width: 1px
height: 100%
background-color: $activity-highlight-color
transition: all 250ms ease-in-out
&:last-child
&:before
background-color: transparent
span.actor
padding: 0 5px
color: $color-text-dark
img.actor-avatar
width: 16px
height: 16px
border-radius: 50%
margin-right: 5px
position: relative
top: -2px