diff --git a/panels_ipe/css/panels_ipe.css b/panels_ipe/css/panels_ipe.css new file mode 100644 index 0000000..2a58bad --- /dev/null +++ b/panels_ipe/css/panels_ipe.css @@ -0,0 +1,530 @@ +/** + * @file + * 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-action-list .ipe-icon { + height: 24px; + margin-top: -10px; + display: block; +} + +.ipe-icon.ipe-icon-up:before { + content: "\e900"; +} + +.ipe-icon.ipe-icon-down:before { + content: "\e901"; +} + +.ipe-icon.ipe-icon-warning:before { + content: "\e902"; +} + +.ipe-icon.ipe-icon-change_layout:before { + content: "\e903"; +} + +.ipe-icon.ipe-icon-edit:before { + content: "\e904"; +} + +.ipe-icon.ipe-icon-manage_content:before { + content: "\e905"; +} + +.ipe-icon.ipe-icon-save:before { + content: "\e906"; +} + +.ipe-icon.ipe-icon-loading:before { + content: "\e907"; + animation: ipe-spin 1s infinite linear; +} + +.ipe-icon.ipe-icon-remove:before { + content: "\e908"; +} + +.ipe-icon.ipe-icon-configure:before { + content: "\e909"; +} + +.ipe-icon.ipe-icon-cancel:before { + content: "\e90a"; +} + +.ipe-icon.ipe-icon-configure { + font-size: 20px; +} + +@keyframes ipe-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; + width: 100%; + bottom: 0; + left: 0; + text-align: center; +} + +/* Force text to render as a sans-serif web-safe font. */ +#panels-ipe-tray, #panels-ipe-tray a, #panels-ipe-tray p { + font-family: Arial, Helvetica, sans-serif; + margin: 0; +} + +/* Remove list styling from the output of the TabsView. */ +.ipe-tabs { + list-style: none; + margin: 0; + padding: 0; +} + +/* Display tabs inline and slightly on top of .ipe-tabs-content. */ +.ipe-tab { + overflow: hidden; + position: relative; + display: inline-block; + vertical-align: bottom; + padding: 10px 5px 12px 5px; + margin-bottom: -1px; + background-color: white; + border-top: 1px solid darkgray; + border-bottom: 1px solid darkgray; + transition: border-color .2s; +} + +.ipe-tab:hover, .ipe-tab.active { + border-bottom: 3px solid rgb(67, 125, 33); + padding-bottom: 10px; +} + +/* Indicate the cancel button. */ +[data-tab-id="cancel"]:hover, [data-tab-id="cancel"].active { + border-bottom: 3px solid #7D0000; + padding-bottom: 10px; +} + +/* Indicate unsaved changes. */ +#panels-ipe-tray.unsaved [data-tab-id="save"]:after { + content: "*"; + font-size: 20px; + color: #7D0000; + position: absolute; + top: 5px; + right: 0; +} + +.ipe-tab:first-child { + border-left: 1px solid darkgray; + border-top-left-radius: 5px; +} + +.ipe-tab:last-child { + border-right: 1px solid darkgray; + border-top-right-radius: 5px; +} + +.ipe-tab a { + color: black; + height: 30px; + display: block; + text-transform: uppercase; + vertical-align: top; + border: none; + cursor: pointer; + transition: .2s; +} + +.ipe-tab.active a, .ipe-tab a:hover { + color: rgb(67, 125, 33); + border: none; +} + + +/* Indicate the cancel button. */ +[data-tab-id="cancel"] a:hover, [data-tab-id="cancel"].active a { + color: #7D0000; + border: none; +} + +.ipe-tab a::selection { + background: none; +} + +/* Provide default styles and a minimum height for tab content. */ +.ipe-tab-content { + display: none; + min-height: 100px; + padding: 20px 5px 10px 5px; + background-color: white; + border-top: 1px solid darkgray; +} + +.ipe-tab-content.active { + display: block; +} + +/* Don't show text for these tabs */ +[data-tab-id="save"] .ipe-tab-title, +[data-tab-id="edit"] .ipe-tab-title, +[data-tab-id="cancel"] .ipe-tab-title { + display: none; +} + +/* Styles for the Layout selector. */ +.ipe-current-layout, .ipe-all-layouts { + display: inline-block; +} + +.ipe-current-layout { + vertical-align: top; + padding-right: 10px; +} + +/* Remove