2017-03-16 15:29:07 +00:00
/ * *
* @ file
* Multiple element styles .
*
* @ see / webform / test_element_multiple
* /
. form-type-webform-multiple : after {
content : " " ;
display : table ;
clear : both ;
}
. webform-multiple-table table {
margin-bottom : 2px ;
}
. webform-multiple-table td {
white-space : nowrap ;
2018-11-23 12:29:20 +00:00
vertical-align : top ;
2017-03-16 15:29:07 +00:00
}
2018-11-23 12:29:20 +00:00
. webform-multiple-table td . description {
white-space : normal ;
}
. webform-multiple-table td . webform-multiple-table--handle {
2017-03-16 15:29:07 +00:00
padding : 0 0 0 1em ;
width : 26px ;
vertical-align : middle ;
text-align : center ;
}
2018-11-23 12:29:20 +00:00
. webform-multiple-table td . webform-multiple-table--weight {
width : 20px ;
}
. webform-multiple-table td . webform-multiple-table--operations {
2017-03-16 15:29:07 +00:00
padding : 0 2px ;
vertical-align : middle ;
text-align : center ;
2018-11-23 12:29:20 +00:00
width : 30px ;
}
. webform-multiple-table td . webform-multiple-table--operations-two {
2017-03-16 15:29:07 +00:00
width : 60px ;
}
2018-11-23 12:29:20 +00:00
. webform-multiple-table td . webform-multiple-table--operations input {
2017-03-16 15:29:07 +00:00
margin : 0 2px ;
opacity : 0 . 4 ;
2018-11-23 12:29:20 +00:00
background : none ;
2017-03-16 15:29:07 +00:00
}
2018-11-23 12:29:20 +00:00
. webform-multiple-table td . webform-multiple-table--operations input : hover ,
. webform-multiple-table td . webform-multiple-table--operations input : focus ,
. webform-multiple-table td . webform-multiple-table--operations input : active {
2017-03-16 15:29:07 +00:00
opacity : 1 ;
background : none ;
}
. webform-multiple-table td select ,
. webform-multiple-table td . form-type-textfield input ,
. webform-multiple-table td . form-type-email input ,
. webform-multiple-table td . form-type-url input ,
. webform-multiple-table td . form-type-tel input ,
. webform-multiple-table td . form-type-entity-autocomplete input ,
. webform-multiple-table td . form-type-webform-autocomplete input {
width : 100 % ;
}
2018-11-23 12:29:20 +00:00
. webform-multiple-table td . container-inline select ,
2017-03-16 15:29:07 +00:00
. form-type-webform-multiple . webform-has-field-prefix td select ,
. form-type-webform-multiple . webform-has-field-suffix td select ,
. form-type-webform-multiple . webform-has-field-prefix td input ,
. form-type-webform-multiple . webform-has-field-suffix td input {
width : auto ;
}
. webform-multiple-table . webform-multiple-sort-weight {
width : 4em ;
}
. webform-multiple-table td input [ type = "image" ] {
padding : 0 ;
width : 16px ;
height : 16px ;
}
. webform-multiple-table . container-inline input [ type = "submit" ] {
width : inherit ;
}
/ * *
2018-11-23 12:29:20 +00:00
* Add margin between stacked form items .
* /
. webform-multiple-table . form-item + . form-item {
margin-top : . 2em ;
}
/ * *
* Remove margin from no messages .
2017-03-16 15:29:07 +00:00
* /
2018-11-23 12:29:20 +00:00
. webform-multiple-table--no-items-message . messages__wrapper {
padding : 0 ;
2017-03-16 15:29:07 +00:00
}
/ * *
* Suppress table drag warnings .
* /
. webform-multiple-table . tabledrag-changed-warning ,
. webform-multiple-table . tabledrag-changed {
display : none ! important ; /* Must use !important because .tabledrag-changed 'display' is set via JavaScript */
}
/ * *
* Tweak tabledrag toggle weight .
* /
2018-11-23 12:29:20 +00:00
. tabledrag-toggle-weight-wrapper . webform-multiple-tabledrag-toggle-weight {
2017-03-16 15:29:07 +00:00
float : right ;
2018-11-23 12:29:20 +00:00
display : inherit ;
position : inherit ;
}
. tabledrag-toggle-weight-wrapper . webform-multiple-tabledrag-toggle-weight button {
position : inherit ;
top : inherit ;
right : inherit ;
}
/ * *
* IMCE tweaks
* /
. webform-multiple-table . imce-url-button {
display : block ;
}
/ * *
* Mobile support to multiple table .
* /
@ media ( max-width : 768px ) {
. webform-multiple-table-responsive thead {
display : none ;
}
. webform-multiple-table-responsive tr {
display : block ;
padding : . 5em 0 ;
}
. webform-multiple-table-responsive td {
display : block ;
border : 0 ;
background : transparent ;
text-align : inherit ;
width : inherit ;
padding : . 5em 1em ;
}
. webform-multiple-table-responsive td : after {
content : "" ;
display : table ;
clear : both ;
}
. webform-multiple-table-responsive td . webform-multiple-table--handle ,
. webform-multiple-table-responsive td . webform-multiple-table--operations {
display : none ;
}
. webform-multiple-table-responsive td . webform-multiple-table--weight {
width : 100 % ;
}
. webform-multiple-table-responsive td > div > label . visually-hidden {
display : block ;
position : inherit ! important ;
clip : inherit ;
overflow : inherit ;
height : inherit ;
width : inherit ;
margin : . 2em 0 ;
}
2017-03-16 15:29:07 +00:00
}