123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- /* ----------------------------------
- * Action menu
- * ---------------------------------- */
- /* Main dialog setup */
- form[role="dialog"][data-type="action"],
- form[role="dialog"][data-type="object"] {
- background:
- url(action_menu/images/ui/pattern.png) repeat left top,
- url(action_menu/images/ui/gradient.png) no-repeat left top / 100% 100%;
- overflow: hidden;
- position: fixed;
- z-index: 100;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- padding: 0 0 7rem;
- /**
- * Using "font-size: 0" to avoid the unwanted visual space (about 3px) created
- * by white spaces and line breaks in the code between inline-block elements.
- */
- font-size: 0;
- color: #fff;
- }
- form[role="dialog"][data-type="action"]:before,
- form[role="dialog"][data-type="object"]:before {
- content: '';
- display: inline-block;
- vertical-align: top;
- width: 0.1rem;
- height: 100%;
- margin-left: -0.1rem;
- }
- form[role="dialog"][data-type="action"] > header,
- form[role="dialog"][data-type="object"] > header {
- -moz-box-sizing: border-box;
- font-size: 1.6rem;
- background: url(action_menu/images/ui/alpha.png) repeat 0 0;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- z-index: 10;
- height: 5rem;
- line-height: 4.9rem;
- color: #fff;
- white-space: nowrap;
- text-overflow: ellipsis;
- display: block;
- overflow: hidden;
- font-weight: normal;
- padding: 0 3rem;
- border-bottom: 0.1rem solid #616262;
- }
- form[role="dialog"][data-type="action"] > header h1,
- form[role="dialog"][data-type="object"] > header h1 {
- font-size: 1.6rem;
- line-height: 4.9rem;
- text-align: left;
- color: #fff;
- white-space: nowrap;
- text-overflow: ellipsis;
- display: block;
- overflow: hidden;
- margin: 0;
- height: 100%;
- font-weight: normal;
- }
- /* Generic set of actions in toolbar */
- form[role="dialog"][data-type="action"] > header menu[type="toolbar"] {
- height: 100%;
- float: right;
- margin: 0 -3rem 0 1rem;
- padding: 0;
- }
- form[role="dialog"][data-type="action"] > header menu[type="toolbar"] a,
- form[role="dialog"][data-type="action"] > header menu[type="toolbar"] button {
- -moz-box-sizing: border-box;
- position: relative;
- float: left;
- width: auto;
- min-width: 5rem;
- height: 4.9rem;
- margin-bottom: 0;
- padding: 0 1rem;
- border-radius: 0;
- line-height: 4.9rem;
- background: none;
- text-align: center;
- text-shadow: none;
- z-index: 5;
- }
- form[role="dialog"][data-type="action"] > header a,
- form[role="dialog"][data-type="action"] > header button {
- border: none;
- padding: 0;
- overflow: hidden;
- font-weight: 400;
- font-size: 1.5rem;
- line-height: 1.1em;
- color: #fff;
- border-radius: 0;
- text-decoration: none;
- }
- form[role="dialog"][data-type="action"] button::-moz-focus-inner,
- form[role="dialog"][data-type="object"] button::-moz-focus-inner {
- outline: none;
- border: none;
- }
- /* Pressed state */
- form[role="dialog"][data-type="action"] > header a:active .icon:after,
- form[role="dialog"][data-type="action"] > header button:active .icon:after,
- form[role="dialog"][data-type="action"] > header menu[type="toolbar"] a:active,
- form[role="dialog"][data-type="action"] > header menu[type="toolbar"] button:active {
- background: #008aaa !important;
- }
- /* Disabled state */
- form[role="dialog"][data-type="action"] > header menu[type="toolbar"] a[aria-disabled="true"],
- form[role="dialog"][data-type="action"] > header menu[type="toolbar"] button[disabled] {
- opacity: 0.5;
- pointer-events: none;
- }
- /* Icon definitions */
- form[role="dialog"][data-type="action"] > header .icon {
- position: relative;
- float: none;
- display: inline-block;
- vertical-align: top;
- width: 4rem;
- height: 4.9rem;
- margin: 0 -1rem;
- background: transparent no-repeat center center / 3rem auto;
- font-size: 0;
- overflow: hidden;
- }
- form[role="dialog"][data-type="action"] > header .icon.icon-close {
- background-image: url(action_menu/images/icons/close.png);
- }
- form[role="dialog"][data-type="action"] > header .icon.icon-back {
- background-image: url(action_menu/images/icons/back.png);
- }
- /* Navigation links (back, cancel, etc) */
- form[role="dialog"][data-type="action"] > header > button,
- form[role="dialog"][data-type="action"] > header > a {
- float: left;
- width: 5rem;
- height: 4.9rem;
- background: none;
- overflow: visible;
- margin: 0 -1rem 0 -3rem;
- position: relative;
- }
- form[role="dialog"][data-type="action"] > header > button:after,
- form[role="dialog"][data-type="action"] > header > a:after {
- content: "";
- position: absolute;
- left: 0;
- top:0;
- width: 3.2rem;
- height: 4.9rem;
- background: url(action_menu/images/ui/separator.png) no-repeat 3rem top / 0.1rem 4.8rem;
- }
- form[role="dialog"][data-type="action"] > header > button::-moz-focus-inner {
- border: 0;
- padding: 0;
- }
- form[role="dialog"][data-type="action"] > header > button .icon,
- form[role="dialog"][data-type="action"] > header > a .icon {
- position: static;
- display: block;
- width: 3rem;
- height: 4.9rem;
- margin: 0;
- overflow: visible;
- font-size: 0;
- }
- form[role="dialog"][data-type="action"] > header > button .icon:after,
- form[role="dialog"][data-type="action"] > header > a .icon:after {
- content: "";
- position: absolute;
- left: 0;
- top: 0;
- z-index: -1;
- width: 3rem;
- height: 4.9rem;
- }
- /* Content */
- form[role="dialog"][data-type="action"] > section,
- form[role="dialog"][data-type="object"] > section {
- color: #fff;
- position: absolute;
- top: 7rem;
- left: 1.5rem;
- right: 1.5rem;
- bottom: 2rem;
- font-size: 1.6rem;
- overflow: scroll;
- }
- /* Specific component code */
- form[role="dialog"][data-type="action"] > menu,
- form[role="dialog"][data-type="object"] > menu {
- margin: 0;
- padding: 0;
- max-height: calc(100% - 13.5rem); /*header(5rem) + footer(7rem) + padding(1.5rem)*/
- padding-top: 1.5rem;
- overflow: auto;
- width: auto;
- border: none;
- background: none;
- position: absolute;
- left: 0;
- right: 0;
- bottom: 7rem;
- }
- form[role="dialog"][data-type="action"] > menu > button,
- form[role="dialog"][data-type="object"] > menu > button {
- width: calc(100% - 3rem);
- height: 4rem;
- -moz-box-sizing: border-box;
- vertical-align: middle;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- font-weight: normal;
- line-height: 4rem;
- outline: none;
- font-size: 1.6rem;
- text-shadow: none;
- text-align: left;
- padding: 0 1.2rem;
- margin: 0 1.5rem 1rem 1.5rem;
- background: rgba(87, 87, 87, 0.8);
- border: none;
- border-radius: 0;
- position: relative;
- color: #fff;
- font-family: sans-serif;
- font-style: italic;
- }
- form[role="dialog"][data-type="action"] > menu > button:last-child,
- form[role="dialog"][data-type="object"] > menu > button:last-child {
- position: fixed;
- bottom: 0;
- left: 0;
- color: #333;
- background: #d8d8d8;
- text-align: center;
- border: none;
- margin-bottom: 1.5rem;
- border-radius: 2rem;
- }
- form[role="dialog"][data-type="action"] > menu > button:last-child:before,
- form[role="dialog"][data-type="object"] > menu > button:last-child:before {
- content: '';
- position: fixed;
- width: 100%;
- background: url(action_menu/images/ui/pattern.png) repeat scroll left top #2D2D2D;
- height: 7rem;
- left: 0;
- bottom: 0;
- z-index: -1;
- }
- form[role="dialog"][data-type="action"] > menu > button:nth-last-child(2),
- form[role="dialog"][data-type="object"] > menu > button:nth-last-child(2) {
- margin-bottom: 1.5rem;
- }
- /* Press state */
- form[role="dialog"][data-type="action"] > menu > button:active,
- form[role="dialog"][data-type="object"] > menu > button:active {
- background: #00aacc;
- color: #fff;
- }
- /* Disabled */
- form[role="dialog"][data-type="action"] > menu > button[disabled],
- form[role="dialog"][data-type="object"] > menu > button[disabled] {
- background-color: rgba(87, 87, 87, 0.8);
- color: rgba(255, 255, 255, 0.4);
- opacity: 0.5;
- pointer-events: none;
- }
- form[role="dialog"][data-type="action"] > menu > button[disabled]:last-child,
- form[role="dialog"][data-type="object"] > menu > button[disabled]:last-child {
- background-color: #e7e7e7;
- color: #a6a6a6;
- opacity: 1;
- }
- /*
- * Right to Left view
- */
- html[dir="rtl"] form[role="dialog"][data-type="action"]:before,
- form[role="dialog"][data-type="object"]:before {
- margin-left: auto;
- margin-right: -0.1rem;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header h1,
- html[dir="rtl"] form[role="dialog"][data-type="object"] > header h1 {
- text-align: right;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header menu[type="toolbar"] {
- float: left;
- margin-left: -3rem;
- margin-right: 1rem;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header menu[type="toolbar"] a,
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header menu[type="toolbar"] button {
- float: right;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header menu[type="toolbar"] a:last-child,
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header menu[type="toolbar"] button:last-child {
- background-position: right center;
- margin-left: auto;
- margin-right: -0.1rem;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header > button,
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header > a {
- float: right;
- margin-left: -1rem;
- margin-right: -3rem;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header > button:after,
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header > a:after {
- left: auto;
- right: 0;
- background-position: 0 top;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header > button .icon:after,
- html[dir="rtl"] form[role="dialog"][data-type="action"] > header > a .icon:after {
- left: auto;
- right: 0;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > menu > button,
- html[dir="rtl"] form[role="dialog"][data-type="object"] > menu > button {
- text-align: right;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > menu > button:last-child,
- html[dir="rtl"] form[role="dialog"][data-type="object"] > menu > button:last-child {
- left: auto;
- right: 0;
- }
- html[dir="rtl"] form[role="dialog"][data-type="action"] > menu > button:last-child:before,
- html[dir="rtl"] form[role="dialog"][data-type="object"] > menu > button:last-child:before {
- left: auto;
- right: 0;
- }
|