cncjs
96 строк · 2.1 Кб
1@import "../variables";2
3.workspace {4.dropzone-overlay {5position: fixed;6top: $navbar-height;7bottom: 0;8left: $sidebar-width;9right: 0;10z-index: 100;11background-color: rgba(255, 255, 255, .5);12border: 4px dashed #286090;13text-align: center;14pointer-events: none;15
16&.hidden {17display: none;18}19
20.text-block {21position: absolute;22top: 25%;23left: 50%;24transform: translate(-50%, -50%);25color: #666;26font-size: 32px;27}28}29.dropzone {30height: 100%;31}32
33.workspace-table {34display: table;35width: 100%;36height: 'calc(100vh - %s)' % ($navbar-height);37}38.workspace-table-row {39display: table-row;40}41
42.primary-container,43.secondary-container,44.primary-toggler,45.secondary-toggler,46.default-container {47display: table-cell;48position: relative;49}50.primary-container {51border-right: 1px solid #ccc;52}53.secondary-container {54border-left: 1px solid #ccc;55}56.primary-container,57.secondary-container {58vertical-align: top;59background-color: #f6f7f8;60width: 360px;61max-width: 360px;62min-width: 360px;63padding: 0 10px;64
65&.hidden {66display: none;67}68}69.primary-toggler,70.secondary-toggler {71background-color: #f6f7f8;72padding-top: 5px;73text-align: center;74width: $toggler-width;75
76// http://stackoverflow.com/questions/32272158/how-to-use-a-stylus-variable-in-calc77height: 'calc(100vh - %s)' % ($navbar-height);78}79.primary-toggler {80border-right: 1px solid #ccc;81}82.secondary-toggler {83border-left: 1px solid #ccc;84}85.default-container {86min-width: 360px;87
88&.fixed {89position: fixed;90left: 360px;91right: 360px;92top: ($navbar-height + 1);93bottom: 0;94}95}96}
97