X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/3e7fab96d7874067884348df10bbdcdefa4a89ad..58b0523c599c731e868bd4bc05b0d686a98d254f:/wp-admin/css/widgets.css diff --git a/wp-admin/css/widgets.css b/wp-admin/css/widgets.css index f46c4ce8..3befaf29 100644 --- a/wp-admin/css/widgets.css +++ b/wp-admin/css/widgets.css @@ -1,124 +1,229 @@ -body { - height: 100%; +/* General Widgets Styles */ + +.widget { + margin: 0 auto 10px; + position: relative; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.widget-top { + font-size: 13px; + font-weight: 600; + background: #f7f7f7; +} + +.widget-top a.widget-action, +.widget-top a.widget-action:hover { + -webkit-box-shadow: none; + box-shadow: none; + outline: none; + text-decoration: none; } -#sbadmin #zones { +.widget-title h4 { + margin: 0; + padding: 15px; + line-height: 1; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + -webkit-user-select: none; -moz-user-select: none; - -khtml-user-select: none; + -ms-user-select: none; user-select: none; } -#sbreset { - float: left; - margin: 1px 0; +.widgets-holder-wrap .widget-inside { + border-top: none; + padding: 1px 15px 15px 15px; + line-height: 16px; } -.dropzone { - border: 1px solid #bbb; - float: left; - margin-right: 10px; - padding: 5px; - background-color: #f0f8ff; +.in-widget-title, +#widgets-right a.widget-control-edit, +#available-widgets .widget-description { + color: #666; } -.dropzone h3 { - text-align: center; - color: #333; +.deleting .widget-title, +.deleting .widget-top a.widget-action:after { + color: #a0a5aa; } -.dropzone input { - display: none; +/* Widget Dragging Helpers */ +.widget.ui-draggable-dragging { + min-width: 100%; } -.dropzone ul { - float: left; - list-style-type: none; - width: 240px; - margin: 0; - min-height: 200px; - padding: 0; - display: block; +.widget.ui-sortable-helper { + opacity: 0.8; } -* .module { - width: 238px; - padding: 0; - margin: 5px 0; - cursor: move; - display: block; - border: 1px solid #ccc; - background-color: #fbfbfb; - position: relative; - text-align: left; - line-height: 25px; +.widget-placeholder { + border: 1px dashed #b4b9be; + margin: 0 auto 10px; + height: 45px; + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } -* .handle { - display: block; - width: 216px; - padding: 0 10px; +#widgets-right .widget-placeholder { + margin-top: 0; +} + +#widgets-right .closed .widget-placeholder { + height: 0; + border: 0; + margin-top: -10px; +} + +/* Widget Sidebars */ +.sidebar-name { position: relative; - border-top: 1px solid #f2f2f2; - border-right: 1px solid #e8e8e8; - border-bottom: 1px solid #e8e8e8; - border-left: 1px solid #f2f2f2; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } -* .popper { - margin: 0; - display: inline; +.sidebar-name-arrow { position: absolute; - top: 3px; - right: 3px; - overflow: hidden; - text-align: center; - height: 16px; - font-size: 18px; - line-height: 14px; + top: 0; + right: 0; + bottom: 0; +} + +.js .sidebar-name { cursor: pointer; - padding: 0 3px 1px; - border-top: 4px solid #6da6d1; - background: url( ../images/fade-butt.png ) -5px 0px; } -* html .popper { - padding: 1px 6px 0; - font-size: 16px; +.sidebar-name h3 { + margin: 0; + padding: 8px 10px; + overflow: hidden; + white-space: nowrap; +} + +.widgets-holder-wrap .description { + padding: 0 0 15px; + margin: 0; + font-style: normal; + color: #777; } -#sbadmin p.submit { - padding-right: 10px; - clear: left; +#widgets-right .widgets-holder-wrap .description { + padding-left: 7px; + padding-right: 7px; } -.placemat { - cursor: default; +/* Widgets 2-col Layout */ +div.widget-liquid-left { margin: 0; - padding: 0; + width: 38%; + float: left; +} + +div.widget-liquid-right { + float: right; + width: 58%; +} + +/* Widgets Left - Available Widgets */ + +div#widgets-left { + padding-top: 12px; +} + +div#widgets-left .closed .sidebar-name, +div#widgets-left .inactive-sidebar.closed .sidebar-name { + margin-bottom: 10px; +} + +div#widgets-left .sidebar-name h3 { + padding: 10px 0; + margin: 0 10px 0 0; +} + +div#widgets-left .sidebar-name .sidebar-name-arrow:before { + right: 0; + top: 4px; + padding: 4px 6px 4px 4px; +} + +#widgets-left #available-widgets, +div#widgets-left .widget-holder { + background: transparent; + border: none; +} + +#widgets-left .widgets-holder-wrap { + border: none; + -webkit-box-shadow: none; + box-shadow: none; +} + +#available-widgets .widget-action { + display: none; +} + +#available-widgets .widget { + margin: 0; +} + +#available-widgets .widget:nth-child(odd) { + clear: both; +} + +#available-widgets .widget .widget-description { + display: block; + padding: 10px 15px; + font-size: 12px; +} + +#available-widgets #widget-list { position: relative; } -.placemat h4 { - text-align: center; +/* Inactive Sidebars */ +#widgets-left .inactive-sidebar { + clear: both; + width: 100%; + background: transparent; + padding: 0; + margin: 0 0 20px 0; + border: none; + -webkit-box-shadow: none; + box-shadow: none; } -.placemat span { - background-color: #ffe; - border: 1px solid #ccc; - padding: 0 10px 10px; - position: absolute; - text-align: justify; +#widgets-left .inactive-sidebar.first { + margin-top: 40px; +} + +/* Not sure what this is for... */ +div#widgets-left .inactive-sidebar .widget.expanded { + left: auto; +} + +.widget-title-action { + float: right; + position: relative; } -#palettediv { - border: 1px solid #bbb; - background-color: #f0f8ff; - height:auto; - margin-top: 10px; - padding-bottom: 10px; +div#widgets-left .inactive-sidebar .widgets-sortables { + min-height: 42px; + padding: 0; + background: transparent; + margin: 0; + position: relative; } -#palettediv:after, #zones:after, .dropzone:after { +/* Widgets Right */ + +div#widgets-right:after { content: "."; display: block; height: 0; @@ -126,111 +231,357 @@ body { visibility: hidden; } -#palettediv, #zones, .dropzone { - display: block; - min-height: 1px; +div#widgets-right .sidebars-column-1, +div#widgets-right .sidebars-column-2 { + max-width: 450px; } -* html #palettediv, * html #zones, * html .dropzone { - height: 1%; +div#widgets-right .widgets-holder-wrap { + margin: 10px 0 0 0; } -#palettediv h3 { - text-align: center; - color: #333; - min-height: 1px; +div#widgets-right .sidebar-description { + min-height: 20px; + margin-top: -5px; } -#palettediv ul { - padding: 0 0 0 10px; +div#widgets-right .sidebar-name h3 { + padding: 15px 7px; } -#palettediv .module { - margin-right: 10px; - float: left; - width: 120px; +div#widgets-right .sidebar-name .sidebar-name-arrow:before { + right: 0; + top: 4px; } -#palettediv .handle { - height: 40px; - font-size: 90%; - width: 110px; - padding: 0 5px; +div#widgets-right .widget-top { + padding: 0; } -#palettediv .popper { - visibility: hidden; +div#widgets-right .widgets-sortables { + padding: 0 8px; + margin-bottom: 9px; + position: relative; + min-height: 123px; } -* html #palettediv ul { - margin: 0; - padding: 0 0 0 10px; +div#widgets-right .closed .widgets-sortables { + min-height: 0; + margin-bottom: 0; } -#controls { - height: 0px; +.sidebar-name .spinner { + float: none; + position: relative; + top: -2px; + margin: -5px 5px; } -.control { - position: absolute; +/* Dragging a widget over a closed sidebar */ +#widgets-right .widgets-holder-wrap.widget-hover { + border-color: #777; + -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3); + box-shadow: 0 1px 2px rgba(0,0,0,0.3); +} + +/* Accessibility Mode */ +.widgets_access #widgets-left .widget .widget-top { + cursor: auto; +} + +.widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description, +.widgets_access #wpwrap .widgets-holder-wrap.closed .widget, +.widgets_access #wpwrap .widget-control-edit { display: block; - background: #f9fcfe; - padding: 0; } -.controlhandle { - cursor: move; - background-color: #6da6d1; - border-bottom: 2px solid #448abd; - color: #333; +.widgets_access #widgets-left .widget .widget-top:hover, +.widgets_access #widgets-right .widget .widget-top:hover { + border-color: #ddd; +} + +#available-widgets .widget-control-edit .edit, +#widgets-left .inactive-sidebar .widget-control-edit .add, +#widgets-right .widget-control-edit .add { + display: none; +} + +.widget-control-edit { display: block; - margin: 0 0 5px; - padding: 4px; - font-size: 120%; + color: #666; + background: #EEE; + padding: 0 15px; + line-height: 43px; + border-left: 1px solid #DDD; } -.controlcloser { - cursor: pointer; - font-size: 120%; +#widgets-left .widget-control-edit:hover, +#widgets-right .widget-control-edit:hover { + color: #fff; + background: #444; + border-left: 0; + outline: 1px solid #444; +} + +.widgets-holder-wrap .sidebar-name, +.widgets-holder-wrap .sidebar-description { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.editwidget { + margin: 0 auto; +} + +.editwidget .widget-inside { display: block; - position: absolute; - top: 2px; - right: 8px; - padding: 0 3px; - font-weight: bold; + padding: 0 15px; } -.controlform { - margin: 20px 30px; +.editwidget .widget-control-actions { + margin-top: 20px; } -.controlform p { - text-align: center; +.js .widgets-holder-wrap.closed .widget, +.js .widgets-holder-wrap.closed .sidebar-description, +.js .closed br.clear { + display: none; } -.control .checkbox { - border: none; - background: transparent; +.js .widgets-holder-wrap.closed .widget.ui-sortable-helper { + display: block; } -.hidden { +/* Hide Widget Settings by Default */ +.widget-inside, +.widget-description { display: none; } -#shadow { - background: black; +.widget-inside { + background: #fff; +} + +/* Dragging widgets over the available widget area show's a "Deactivate" message */ +#removing-widget { display: none; - position: absolute; - top: 0px; - left: 0px; - width: 100%; + font-weight: normal; + padding-left: 15px; + font-size: 12px; + line-height: 1; + color: black; +} + +.js #removing-widget { + color: #00a0d2; +} + +.widget-control-noform, +#access-off, +.widgets_access .widget-action, +.widgets_access .sidebar-name-arrow, +.widgets_access #access-on, +.widgets_access .widget-holder .description, +.no-js .widget-holder .description { + display: none; +} + +.widgets_access .widget-holder, +.widgets_access #widget-list { + padding-top: 10px; +} + +.widgets_access #access-off { + display: inline; +} + +.widgets_access .sidebar-name, +.widgets_access .widget .widget-top { + cursor: default; +} + + +/* Widgets Area Chooser */ +.widget-liquid-left #widgets-left.chooser #available-widgets .widget, +.widget-liquid-left #widgets-left.chooser .inactive-sidebar { + -webkit-transition: opacity 0.1s linear; + transition: opacity 0.1s linear; +} + +.widget-liquid-left #widgets-left.chooser #available-widgets .widget, +.widget-liquid-left #widgets-left.chooser .inactive-sidebar { + /* -webkit-filter: blur(1px); */ + opacity: 0.2; + pointer-events: none; +} + +.widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question { + /* -webkit-filter: none; */ + opacity: 1; + pointer-events: auto; +} + +.widgets-chooser ul, +#widgets-left .widget-in-question .widget-top, +#available-widgets .widget-top:hover, +div#widgets-right .widget-top:hover, +#widgets-left .widget-top:hover { + border-color: #999; + -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1); + box-shadow: 0 1px 2px rgba(0,0,0,0.1); +} + +.widgets-chooser ul.widgets-chooser-sidebars { + margin: 0; + list-style-type: none; + max-height: 300px; + overflow: auto; +} + +.widgets-chooser { + display: none; +} + +.widgets-chooser ul { + border: 1px solid #ccc; +} + +.widgets-chooser li { + padding: 10px 15px 10px 35px; + border-bottom: 1px solid #ccc; + background: #fff; + margin: 0; + cursor: pointer; + outline: none; + position: relative; + -webkit-transition: background 0.2s ease-in-out; + transition: background 0.2s ease-in-out; +} + +.widgets-chooser li:hover, +.widgets-chooser li:focus { + background: rgba(255,255,255,0.7); } -#dragHelper { +.widgets-chooser li:focus:before { + content: '\f147'; + display: block; + -webkit-font-smoothing: antialiased; + font: normal 26px/1 'dashicons'; + color: #999; position: absolute; + top: 7px; + left: 5px; +} + +.widgets-chooser li:last-child { + border: none; +} + +.widgets-chooser li.widgets-chooser-selected { + background: #00a0d2; + color: #fff; } -#dragHelper li.module { +.widgets-chooser li.widgets-chooser-selected:before, +.widgets-chooser li.widgets-chooser-selected:focus:before { + content: '\f147'; display: block; - float: left; + -webkit-font-smoothing: antialiased; + font: normal 26px/1 'dashicons'; + color: #fff; + position: absolute; + top: 7px; + left: 5px; +} + +.widgets-chooser .widgets-chooser-actions { + padding: 10px 0 12px 0; + text-align: center; +} + +.widgets-chooser button { + margin-right: 5px; +} + +#available-widgets .widget .widget-top { + cursor: pointer; +} + +#available-widgets .widget.ui-draggable-dragging .widget-top { + cursor: move; +} + +/* =Media Queries +-------------------------------------------------------------- */ + +@media screen and (max-width: 480px) { + div.widget-liquid-left { + width: 100%; + float: none; + border-right: none; + padding-right: 0; + } + + #widgets-left .sidebar-name { + margin-right: 0; + } + + #widgets-left #available-widgets .widget-top { + margin-right: 0; + } + + #widgets-left .inactive-sidebar .widgets-sortables { + margin-right: 0; + } + + div.widget-liquid-right { + width: 100%; + float: none; + } + + div.widget { + margin: 0 auto 10px !important; + max-width: 480px; + } +} + +@media screen and (max-width: 320px) { + div.widget { + max-width: 320px; + } +} + +@media only screen and (min-width: 1250px) { + #widgets-left #available-widgets .widget { + width: 49%; + float: left; + } + + .widget.ui-draggable-dragging { + min-width: 49%; + } + + #widgets-left #available-widgets .widget:nth-child(even) { + float: right; + } + + #widgets-right .sidebars-column-1, + #widgets-right .sidebars-column-2 { + float: left; + width: 49%; + } + + #widgets-right .sidebars-column-1 { + margin-right: 2%; + } + + #widgets-right.single-sidebar .sidebars-column-1, + #widgets-right.single-sidebar .sidebars-column-2 { + float: none; + width: 100%; + margin: 0; + } }