/** * @file * Styling for responsive preview. */ /** * Toolbar tab. */ .toolbar-tab-responsive-preview .options { background-color: white; padding-top: 0.5em; padding-bottom: 0.5em; } /* Device preview options. */ .toolbar-tab-responsive-preview .options { box-shadow: 0 0.8em 2.5em -0.8em rgba(0, 0, 0, 0.75); } /* [dir] is needed to override Bartik's .item-list li padding */ [dir] .toolbar-tab-responsive-preview .options li { margin: 0; padding: 0; } .toolbar-tab-responsive-preview .trigger { cursor: pointer; line-height: 1; height: 3em; } .toolbar-tab-responsive-preview .trigger:hover { background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%); background-image: linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%); } .toolbar-tab-responsive-preview .trigger.active, .toolbar-tab-responsive-preview .trigger.active:hover { background-image: -webkit-linear-gradient(top, rgb(78,159,234) 0%, rgb(69,132,221) 100%); background-image: linear-gradient(rgb(78,159,234) 0%,rgb(69,132,221) 100%); } .toolbar-tab-responsive-preview .trigger, .toolbar-tab-responsive-preview .options .device { padding-bottom: 1em; padding-top: 1em; } .toolbar-tab-responsive-preview .options .device { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 1em; padding: 0.5em 1.3333em } .toolbar .toolbar-tab-responsive-preview.toolbar-tab .options .device { color: #0074BD; text-align: left; width: 100%; } .toolbar .toolbar-tab-responsive-preview.toolbar-tab .options .device:hover, .toolbar .toolbar-tab-responsive-preview.toolbar-tab .options .device.active { color: black; } .toolbar .toolbar-tab-responsive-preview.toolbar-tab .options .device[disabled] { color: #ccc; cursor: default; } /* Configuration link. */ .toolbar-tab-responsive-preview.toolbar-tab .configure { color: #777; margin-top: 0.5em; padding-bottom: 0.5em; padding-top: 0.5em; } .toolbar-tab-responsive-preview.toolbar-tab .configure:hover { color: #000; } /* Toolbar tab triangle toggle. */ .toolbar-tab-responsive-preview .trigger:after { border-bottom-color: transparent; border-left-color: transparent; border-right-color: transparent; border-style: solid; border-width: 0.4545em 0.4em 0; color: #a0a0a0; content: ' '; display: block; height: 0; line-height: 0; overflow: hidden; position: absolute; right: 1.6667em; /* LTR */ top: 50%; margin-top: -0.1666em; width: 0; z-index: 1 } [dir="rtl"] .toolbar-tab-responsive-preview .trigger:after { left: 1em; right: auto; } .toolbar-tab-responsive-preview.open:before { background-color: white; bottom: 0; content: ' '; display: block; position: absolute; right: 0; /* LTR */ top: 0; width: 2em; z-index: 1; } [dir="rtl"] .toolbar-tab-responsive-preview.open:before { left: 0; right: auto; } .toolbar-tab-responsive-preview.open .trigger:after { border-bottom: 0.4545em solid; border-top-color: transparent; color: black; right: 0.7em; /* LTR */ top: 1.25em; } [dir="rtl"] .toolbar-tab-responsive-preview.open .trigger:after { left: 0.7em; right: auto; } .toolbar-tab-responsive-preview:hover .trigger:after, .toolbar-tab-responsive-preview .trigger.active:after, .toolbar-tab-responsive-preview:hover .trigger.active:after { color: white; } .toolbar-tab-responsive-preview.open:hover .trigger:after { color: black; } /** * Preview container. */ .responsive-preview { box-shadow: 0 0 10px 0 black; } .responsive-preview .frame-container { opacity: 0; -moz-transition: all 450ms; -webkit-transition: all 450ms; transition: all 450ms; } .responsive-preview.active .frame-container { opacity: 1; } .responsive-preview .modal-background { background-color: black; background-color: rgba(0,0,0,0.92); background-image: -webkit-linear-gradient(left, rgb(20,20,20),rgb(50,50,50) 25%, rgb(100,100,100) 40%, rgb(100,100,100) 60%, rgb(50,50,50) 75%, rgb(20,20,20)); background-image: linear-gradient(left, rgb(20,20,20),rgb(50,50,50) 25%, rgb(100,100,100) 40%, rgb(100,100,100) 60%, rgb(50,50,50) 75%, rgb(20,20,20)); } /** * Responsive preview control placement. */ .responsive-preview .control { cursor: pointer; height: 40px; position: absolute; top: 0; width: 40px; } .responsive-preview .control.close { right: 0; /* LTR */ } [dir="rtl"] .responsive-preview .control.close { left: 0; right: auto; } .responsive-preview .control.orientation { left: 0; /* LTR */ } [dir="rtl"] .responsive-preview .control.orientation { left: auto; right: 0; } .responsive-preview .device-label { color: #bbbbbb; font-family: sans-serif; font-weight: normal; left: 30px; line-height: 2.6667; margin: 0; overflow: hidden; position: absolute; right: 40px; text-overflow: ellipsis; bottom: 3px; white-space: nowrap; width: auto; } /** * Responsive preview frame. */ .responsive-preview .frame-container { background-color: #212121; border-radius: 20px; box-shadow: 0 0 0px 1px #777, 1px 1px 60px 0px #000; -webkit-transition: all 150ms ease-out; -moz-transition: all 150ms ease-out; -o-transition: all 150ms ease-out; transition: all 150ms ease-out; margin-top: 2em; } .responsive-preview .frame-container iframe { box-shadow: 0 0 0 1px #808080; -webkit-transition: all 150ms ease-out; -moz-transition: all 150ms ease-out; -o-transition: all 150ms ease-out; transition: all 150ms ease-out; } /** * Control block styling. */ #block-responsive-preview-controls .content .device { background: none; border: none; color: inherit; cursor: pointer; font: inherit; line-height: 1; margin: 0; padding: 0.25em 0; } #block-responsive-preview-controls .content .device[disabled] { color: #ccc; cursor: default; }