2011-12-06 01:56:24 +01:00
/** Core styles for the basic GridField form field without any specific style. @package sapphire @subpackage scss @todo Add radial gradient to default delete button state @todo Create SASS mixin-function to simply swap the from/to, to to/from colours in grsdient mixins? */
2012-02-23 15:17:39 +01:00
. cms . ss-gridfield > div { margin-bottom : 35 px ; }
. cms . ss-gridfield [ data-selectable ] tr . ui-selected , . cms . ss-gridfield [ data-selectable ] tr . ui-selecting { background : #FFFAD6 !important ; }
. cms . ss-gridfield [ data-selectable ] td { cursor : pointer ; }
. cms table . ss-gridfield-table { display : table ; box-shadow : none ; padding : 0 ; border-collapse : separate ; border-bottom : 0 none ; width : 100 % ; }
. cms table . ss-gridfield-table thead { color : #1d2224 ; background : transparent ; }
. cms table . ss-gridfield-table tbody { background : #FFF ; }
. cms table . ss-gridfield-table tbody td { /* Emulate a link by default */ }
. cms table . ss-gridfield-table tbody td button { border : none ; background : none ; margin : 0 0 0 2 px ; padding : 0 ; width : auto ; text-shadow : none ; }
2012-02-29 03:30:40 +01:00
. cms table . ss-gridfield-table tbody td button . ui-state-hover { background : none ; border : none ; -moz- box-shadow : none ; -webkit- box-shadow : none ; box-shadow : none ; }
2012-02-29 04:38:53 +01:00
. cms table . ss-gridfield-table tbody td button span . ui-button-text { text-indent : -9999 em ; background : url ( ../images/icons/decline.png ) no-repeat 0 2 px ; padding : 0 ; width : 20 px ; height : 20 px ; }
2012-03-06 03:55:26 +01:00
. cms table . ss-gridfield-table tbody td a . edit-link { display : inline-block ; width : 20 px ; height : 20 px ; text-indent : -9999 em ; background : url ( ../images/icons/document--pencil.png ) no-repeat 0 1 px ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tfoot { color : #1d2224 ; }
. cms table . ss-gridfield-table tfoot tr td { background : #95a5ab ; padding : .7 em ; border-bottom : 1 px solid rgba ( 0 , 0 , 0 , 0.1 ) ; }
2012-02-27 23:58:10 +01:00
. cms table . ss-gridfield-table tr . title { -moz- border-radius-topleft : 7 px ; -webkit- border-top-left-radius : 7 px ; -o- border-top-left-radius : 7 px ; -ms- border-top-left-radius : 7 px ; -khtml- border-top-left-radius : 7 px ; border-top-left-radius : 7 px ; -moz- border-radius-topright : 7 px ; -webkit- border-top-right-radius : 7 px ; -o- border-top-right-radius : 7 px ; -ms- border-top-right-radius : 7 px ; -khtml- border-top-right-radius : 7 px ; border-top-right-radius : 7 px ; }
. cms table . ss-gridfield-table tr . title th { position : relative ; background : #7f9198 ; border-top : 1 px solid rgba ( 0 , 0 , 0 , 0.1 ) ; padding : 5 px ; min-height : 40 px ; background-image : -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #b1c0c5 ) , color-stop ( 100 % , #7f9198 ) ) ; background-image : -webkit- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : -moz- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : -o- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : -ms- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : linear-gradient ( #b1c0c5 , #7f9198 ) ; -moz- border-radius-topleft : 7 px ; -webkit- border-top-left-radius : 7 px ; -o- border-top-left-radius : 7 px ; -ms- border-top-left-radius : 7 px ; -khtml- border-top-left-radius : 7 px ; border-top-left-radius : 7 px ; -moz- border-radius-topright : 7 px ; -webkit- border-top-right-radius : 7 px ; -o- border-top-right-radius : 7 px ; -ms- border-top-right-radius : 7 px ; -khtml- border-top-right-radius : 7 px ; border-top-right-radius : 7 px ; text-shadow : rgba ( 0 , 0 , 0 , 0.3 ) 0 px -1 px 0 ; }
2012-02-29 01:46:10 +01:00
. cms table . ss-gridfield-table tr . title th h2 { padding : 0 px ; font-size : 16.8 px ; color : #fff ; margin : 3 px 8 px 0 ; display : inline-block ; }
2012-03-06 03:55:26 +01:00
. cms table . ss-gridfield-table tr . title th . new { font-size : 14.4 px ; float : right ; }
2012-02-27 23:58:10 +01:00
. cms table . ss-gridfield-table tr . sortable-header { background : #bac8ce ; }
2012-02-29 01:46:10 +01:00
. cms table . ss-gridfield-table tr . sortable-header th { padding : 0 px ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr : hover { background : #FFFAD6 !important ; }
. cms table . ss-gridfield-table tr : first-child { background : transparent ; }
. cms table . ss-gridfield-table tr . ss-gridfield-even { background : #f0f4f7 ; }
. cms table . ss-gridfield-table tr . ss-gridfield-even . ss-gridfield-last { border-bottom : none ; }
. cms table . ss-gridfield-table tr . even { background : #f0f4f7 ; }
. cms table . ss-gridfield-table tr th { font-weight : bold ; font-size : 12 px ; color : #FFF ; padding : 5 px ; border-right : 1 px solid rgba ( 0 , 0 , 0 , 0.1 ) ; }
2012-03-01 02:09:07 +01:00
. cms table . ss-gridfield-table tr th div . fieldgroup , . cms table . ss-gridfield-table tr th div . fieldgroup-field { width : 100 % ; position : relative ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr th div . fieldgroup { min-width : 200 px ; padding-right : 0 ; }
2012-02-27 23:58:10 +01:00
. cms table . ss-gridfield-table tr th . extra , . cms table . ss-gridfield-table tr th . action { padding : 0 ; cursor : default ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr th . extra button . ss-ui-button , . cms table . ss-gridfield-table tr th . extra button : hover . ss-ui-button , . cms table . ss-gridfield-table tr th . action button . ss-ui-button , . cms table . ss-gridfield-table tr th . action button : hover . ss-ui-button { margin-left : .9 em ; color : #222 ; }
2012-02-27 23:58:10 +01:00
. cms table . ss-gridfield-table tr th . main { border-top : 1 px solid rgba ( 0 , 0 , 0 , 0.1 ) ; color : #fff ; background : #9cb0b9 ; border-bottom : 1 px solid rgba ( 0 , 0 , 0 , 0.1 ) ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr th . main span { text-shadow : rgba ( 0 , 0 , 0 , 0.3 ) 0 px -1 px 0 ; }
. cms table . ss-gridfield-table tr th . extra { background : #bac8ce ; padding : 5 px ; border-top : rgba ( 0 , 0 , 0 , 0.3 ) ; }
. cms table . ss-gridfield-table tr th . extra span { width : auto ; display : inline ; position : static ; }
2012-03-01 02:09:07 +01:00
. cms table . ss-gridfield-table tr th . extra span input { height : 28 px ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr th . extra button . ss-ui-button { padding : .3 em ; line-height : 1 ; -moz- box-shadow : none ; -webkit- box-shadow : none ; box-shadow : none ; position : relative ; border-bottom-width : 0 ; -webkit- border-radius : 2 px 2 px ; -moz- border-radius : 2 px / 2 px ; -o- border-radius : 2 px / 2 px ; -ms- border-radius : 2 px / 2 px ; -khtml- border-radius : 2 px / 2 px ; border-radius : 2 px / 2 px ; }
. cms table . ss-gridfield-table tr th . action { border-right : 0 ; }
. cms table . ss-gridfield-table tr th . first { -moz- border-radius-topleft : 7 px ; -webkit- border-top-left-radius : 7 px ; -o- border-top-left-radius : 7 px ; -ms- border-top-left-radius : 7 px ; -khtml- border-top-left-radius : 7 px ; border-top-left-radius : 7 px ; }
. cms table . ss-gridfield-table tr th . last { -moz- border-radius-topright : 7 px ; -webkit- border-top-right-radius : 7 px ; -o- border-top-right-radius : 7 px ; -ms- border-top-right-radius : 7 px ; -khtml- border-top-right-radius : 7 px ; border-top-right-radius : 7 px ; }
. cms table . ss-gridfield-table tr th button : hover { color : #ccc !important ; /* Not sure why IE think it needs this */ }
. cms table . ss-gridfield-table tr th button . ss-gridfield-sort : hover { color : #fff !important ; -moz- box-shadow : none ; -webkit- box-shadow : none ; box-shadow : none ; }
2012-02-29 01:46:10 +01:00
. cms table . ss-gridfield-table tr th button . ss-gridfield-sort { background : transparent url ( ../images/arrows.png ) no-repeat right 6 px ; border : none ; width : 100 % ; text-align : left ; padding : 4 px 0 ; text-shadow : rgba ( 0 , 0 , 0 , 0.3 ) 0 px -1 px 0 ; color : #fff ; -moz- border-radius : 0 ; -webkit- border-radius : 0 ; -o- border-radius : 0 ; -ms- border-radius : 0 ; -khtml- border-radius : 0 ; border-radius : 0 ; }
. cms table . ss-gridfield-table tr th button . ss-gridfield-sort : hover { background-position : right -34 px ; }
2012-02-29 04:42:57 +01:00
. cms table . ss-gridfield-table tr th button . ss-gridfield-sort . ss-gridfield-sorted-desc { background-position : right -72 px ; }
. cms table . ss-gridfield-table tr th button . ss-gridfield-sort . ss-gridfield-sorted-asc { background-position : right -116 px ; }
2012-03-01 02:09:07 +01:00
. cms table . ss-gridfield-table tr th button . ss-gridfield-button-filter . ss-ui-button { position : absolute ; right : 7 px ; top : -28 px ; display : block ; text-indent : -9999 em ; width : 30 px ; height : 28 px ; border-top-left-radius : 0 px ; border-bottom-left-radius : 0 px ; border-top-right-radius : 4 px ; border-bottom-right-radius : 4 px ; border-bottom-width : 1 px ; border-color : #9a9a9a ; background : url ( ../images/icons/filter-icons.png ) no-repeat -40 px 6 px , -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #ffffff ) , color-stop ( 100 % , #d9d9d9 ) ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -40 px 6 px , -webkit- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -40 px 6 px , -moz- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -40 px 6 px , -o- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -40 px 6 px , -ms- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -40 px 6 px , linear-gradient ( #ffffff , #d9d9d9 ) ; }
2012-03-06 03:55:26 +01:00
. cms table . ss-gridfield-table tr th button . ss-gridfield-button-filter . ss-ui-button . hover-alike : active { background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #4199cd ) , color-stop ( 100 % , #2e7ead ) ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -webkit- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -moz- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -o- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -ms- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , linear-gradient ( #4199cd , #2e7ead ) ; -moz- box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; -webkit- box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; -o- box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; }
. cms table . ss-gridfield-table tr th button . ss-gridfield-button-filter . ss-ui-button . hover-alike { background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #4199cd ) , color-stop ( 100 % , #2e7ead ) ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -webkit- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -moz- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -o- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , -ms- linear-gradient ( #4199cd , #2e7ead ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat -16 px 6 px , linear-gradient ( #4199cd , #2e7ead ) ; }
2012-03-01 02:09:07 +01:00
. cms table . ss-gridfield-table tr th button . ss-gridfield-button-reset . ss-ui-button { position : absolute ; right : 36 px ; top : -28 px ; display : block ; text-indent : -9999 em ; width : 30 px ; height : 28 px ; float : right ; border-radius : 0 px ; border-bottom-width : 1 px ; border-color : #9a9a9a ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px 5 px , -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #ffffff ) , color-stop ( 100 % , #d9d9d9 ) ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px 5 px , -webkit- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px 5 px , -moz- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px 5 px , -o- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px 5 px , -ms- linear-gradient ( #ffffff , #d9d9d9 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px 5 px , linear-gradient ( #ffffff , #d9d9d9 ) ; }
2012-03-06 03:55:26 +01:00
. cms table . ss-gridfield-table tr th button . ss-gridfield-button-reset . ss-ui-button . filtered : hover { background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #ff0000 ) , color-stop ( 100 % , #cc0000 ) ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -webkit- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -moz- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -o- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -ms- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , linear-gradient ( #ff0000 , #cc0000 ) ; }
. cms table . ss-gridfield-table tr th button . ss-gridfield-button-reset . ss-ui-button . filtered : active { background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #ff0000 ) , color-stop ( 100 % , #cc0000 ) ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -webkit- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -moz- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -o- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , -ms- linear-gradient ( #ff0000 , #cc0000 ) ; background : url ( ../images/icons/filter-icons.png ) no-repeat 8 px -17 px , linear-gradient ( #ff0000 , #cc0000 ) ; -moz- box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; -webkit- box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; -o- box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; box-shadow : inset 0 1 px 3 px #17181a , 0 1 px 0 rgba ( 255 , 255 , 255 , 0.6 ) ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr th input . ss-gridfield-sort { padding : 2 px ; }
. cms table . ss-gridfield-table tr th input . ss-gridfield-sort : focus { -moz- box-shadow : none ; -webkit- box-shadow : none ; box-shadow : none ; }
2012-03-01 23:46:35 +01:00
. cms table . ss-gridfield-table tr th span . non-sortable { padding : .4 em 1 em ; }
2012-02-29 01:55:48 +01:00
. cms table . ss-gridfield-table tr td { border-right : 1 px solid rgba ( 0 , 0 , 0 , 0.1 ) ; padding : 6.4 px 12 px ; color : #666666 ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr td . bottom-all { -moz- border-radius-bottomleft : 7 px ; -webkit- border-bottom-left-radius : 7 px ; -o- border-bottom-left-radius : 7 px ; -ms- border-bottom-left-radius : 7 px ; -khtml- border-bottom-left-radius : 7 px ; border-bottom-left-radius : 7 px ; -moz- border-radius-bottomright : 7 px ; -webkit- border-bottom-right-radius : 7 px ; -o- border-bottom-right-radius : 7 px ; -ms- border-bottom-right-radius : 7 px ; -khtml- border-bottom-right-radius : 7 px ; border-bottom-right-radius : 7 px ; background-image : -webkit- gradient ( linear , 50 % 0 % , 50 % 100 % , color-stop ( 0 % , #b1c0c5 ) , color-stop ( 100 % , #7f9198 ) ) ; background-image : -webkit- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : -moz- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : -o- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : -ms- linear-gradient ( #b1c0c5 , #7f9198 ) ; background-image : linear-gradient ( #b1c0c5 , #7f9198 ) ; }
2012-03-06 03:55:26 +01:00
. cms table . ss-gridfield-table tr td . bottom-all . datagrid-pagination { position : absolute ; left : 50 % ; margin-left : -160 px ; }
. cms table . ss-gridfield-table tr td . bottom-all . datagrid-pagination . pagination-page-number { color : white ; }
. cms table . ss-gridfield-table tr td . bottom-all . datagrid-pagination button . ss-gridfield-previouspage { background : url ( ../images/icons/pagination-arrows.png ) no-repeat -23 px 7 px ; -moz- box-shadow : none ; -webkit- box-shadow : none ; box-shadow : none ; border : none ; width : 10 px ; margin : 0 10 px ; }
. cms table . ss-gridfield-table tr td . bottom-all . datagrid-pagination button . ss-gridfield-previouspage span { text-indent : -9999 em ; }
. cms table . ss-gridfield-table tr td . bottom-all . datagrid-pagination button . ss-gridfield-nextpage { background : url ( ../images/icons/pagination-arrows.png ) no-repeat -47 px 7 px ; -moz- box-shadow : none ; -webkit- box-shadow : none ; box-shadow : none ; border : none ; width : 10 px ; margin : 0 10 px ; }
. cms table . ss-gridfield-table tr td . bottom-all . datagrid-pagination button . ss-gridfield-nextpage span { text-indent : -9999 em ; }
. cms table . ss-gridfield-table tr td . bottom-all . pagination-records-number { float : right ; padding : 6 px 0 ; color : white ; }
2012-02-23 15:17:39 +01:00
. cms table . ss-gridfield-table tr . last td { border-bottom : 0 none ; }
. cms table . ss-gridfield-table td : first-child , . cms table . ss-gridfield-table th : first-child { border-left : 1 px solid rgba ( 0 , 0 , 0 , 0.1 ) ; }