diff -u b/panels_ipe/css/panels_ipe.css b/panels_ipe/css/panels_ipe.css --- b/panels_ipe/css/panels_ipe.css +++ b/panels_ipe/css/panels_ipe.css @@ -3,6 +3,49 @@ * Contains all CSS for the Panels In-Place Editor. */ +/* Define our icon font, which is generated from the SVGs in /images. */ +@font-face { + font-family: PanelsIPEIcon; + src: url(../fonts/ipeicons.woff); +} + +.ipe-icon { + display:inline-block; + vertical-align: middle; + font-family: PanelsIPEIcon; + font-size: 24px; +} + +.ipe-icon.ipe-icon-warning:before { + content: "\e902"; +} + +.ipe-icon.ipe-icon-change_layout:before { + content: "\e903"; +} + +.ipe-icon.ipe-icon-manage_content:before { + content: "\e905"; +} + +.ipe-icon.ipe-icon-edit:before { + content: "\e904"; +} + +.ipe-icon.ipe-icon-save:before { + content: "\e906"; +} + +.ipe-icon.ipe-icon-loading:before { + content: "\e907"; + animation: spin 1s infinite linear; +} + +@keyframes spin { + from {transform:rotate(360deg);} + to {transform:rotate(0deg);} +} + /* Fix the output of the AppView to the bottom of the screen. */ #panels-ipe-tray { position: fixed; @@ -28,7 +71,8 @@ /* Display tabs inline and slightly on top of .ipe-tabs-content. */ .ipe-tab { display: inline-block; - padding: 10px; + vertical-align: bottom; + padding: 10px 5px 10px 5px; background-color: white; border-top: 1px solid darkgray; margin-bottom: -1px; @@ -50,9 +94,13 @@ .ipe-tab a { color: black; + height: 30px; + display: block; text-transform: uppercase; + vertical-align: top; border: none; cursor: pointer; + transition: .2s; } .ipe-tab a:hover { @@ -64,7 +112,7 @@ .ipe-tab-content { display: none; min-height: 100px; - padding: 25px; + padding: 5px 5px 10px 5px; background-color: white; border-top: 1px solid darkgray; } @@ -73,27 +121,38 @@ display: block; } +/* Don't show text for these tabs */ +[data-tab-id="save"], [data-tab-id="edit"] { + overflow-x: hidden; + width: 24px; +} + /* Styles for the Layout selector. */ .ipe-current-layout, .ipe-all-layouts { display: inline-block; - height: 50px; } .ipe-current-layout { - margin-right: 50px; + vertical-align: top; + padding-right: 10px; } -/* Remove