123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- //
- // Tables
- // --------------------------------------------------
- //== Table actions
- //
- //**
- .table-actions {
- margin-bottom: @line-height-computed;
- height: 36px;
- overflow: visible;
- &>.pull-left {
- margin-right: @line-height-computed / 2;
- }
- &>.pull-right {
- margin-left: @line-height-computed / 2;
- &.master-checkbox {
- background: none;
- border-color: transparent;
- .box-shadow(none);
- padding: 0px 6px;
- color: @gray-light;
- font-size: 24px;
- line-height: 32px;
- &.active, &:active {
- top: 0px;
- }
- &.active {
- color: @brand-success;
- }
- }
- .dropdown-menu {
- left: auto;
- right: 0px;
- }
- }
- }
- //== Table panel
- //
- //**
- .table-panel {
- border: 1px solid @table-panel-border;
- border-radius: @border-radius-base;
- box-shadow: 0px 0px 0px 3px @table-panel-shadow;
- margin-bottom: @line-height-computed;
- }
- //== Panel header
- //
- //**
- .table-panel {
- .panel-header {
- }
- }
- //== Panel table
- //
- //**
- .table-panel {
- table.table {
- margin: 0px;
- }
- }
- //== Table row
- //
- //**
- .table-panel {
- table.table {
- tr {
- &.message-row {
- td {
- padding: @line-height-computed;
- p {
- margin: 0px;
- font-size: @font-size-large;
- }
- }
- }
- th {
- background: @table-header-bg;
- border: none;
- padding: @table-condensed-cell-padding @table-cell-padding;
- color: @table-header-color;
- font-size: @font-size-small;
- }
- td {
- background-color: #fff;
- vertical-align: middle;
- img {
- border-radius: @border-radius-base;
- max-width: 30px;
- max-height: 30px;
- }
- &.item-name {
- color: @text-color;
- font-size: @font-size-large;
- a:link, a:visited {
- color: @text-color;
- }
- }
- }
- &:first-child {
- &>:first-child {
- border-top-left-radius: (@border-radius-base - 1);
- }
- &>:last-child {
- border-top-right-radius: (@border-radius-base - 1);
- }
- }
- &:last-child {
- &>:first-child {
- border-bottom-left-radius: (@border-radius-base - 1);
- }
- &>:last-child {
- border-bottom-right-radius: (@border-radius-base - 1);
- }
- }
- }
- }
- }
- //== Row action
- //
- //**
- .table-panel {
- table.table {
- tr {
- td.row-action {
- vertical-align: middle;
- width: 1%;
- .btn, &>form .btn, .dropdown-toggle {
- background: none;
- border-color: transparent;
- .box-shadow(none);
- padding: 0px 4px;
- position: relative;
- top: 0px;
- bottom: 0px;
- color: @gray-light;
- font-size: @font-size-base * 1.6;
- &:hover {
- top: 0px;
- bottom: 0px;
- &.btn-default {
- color: @gray;
- }
- &.btn-primary {
- color: @brand-secondary;
- }
- &.btn-danger {
- color: @brand-danger;
- }
- &.btn-warning {
- color: @brand-warning;
- }
- &.btn-success {
- color: @brand-success;
- }
- }
- &:active {
- top: 0px;
- bottom: 0px;
- &.btn-default {
- color: @gray-dark;
- }
- &.btn-primary {
- color: darken(@brand-secondary, 20%);
- }
- &.btn-danger {
- color: darken(@brand-danger, 20%);
- }
- &.btn-warning {
- color: darken(@brand-warning, 20%);
- }
- &.btn-success {
- color: darken(@brand-success, 20%);
- }
- }
- }
- .dropdown-menu {
- top: 24px;
- &:after {
- right: 9px;
- }
- }
- }
- }
- }
- }
- //== Row select
- //
- //**
- .table-panel {
- table.table {
- tr {
- &.active {
- td {
- background-color: fadeOut(@brand-warning, 95%);
- }
- }
- td.row-select {
- width: 1%;
- label {
- padding: 0px;
- width: 24px;
- height: 24px;
- text-align: center;
- input {
- width: 12px;
- height: 12px;
- }
- &.ninja-label {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- width: 1px;
- }
- }
- a {
- display: block;
- width: 24px;
- height: 24px;
- span {
- color: lighten(@gray-light, 5%);
- font-size: 24px;
- }
- &.active {
- span {
- color: @brand-success;
- }
- }
- }
- }
- }
- }
- }
- //== Table footer
- //
- //**
- .table-panel {
- .table-footer {
- background-color: @form-panel-footer-bg;
- border-radius: 0px 0px (@border-radius-large - 1px) (@border-radius-large - 1px);
- border-top: 1px solid @form-panel-border;
- padding: @form-panel-padding;
- padding-left: @table-cell-padding;
- padding-right: @table-cell-padding;
- &>.row {
- position: relative;
- left: -2px;
- margin-left: @table-cell-padding;
- }
- }
- }
|