/** * @author Federico "Lox" Lucignano * * Styles for the creation/editing UI of TopLists extension, Oasis skin */ @import "skins/shared/color"; @import "skins/shared/mixins/clearfix"; @import "skins/shared/mixins/gradient"; @import "skins/shared/mixins/menus"; @import "skins/shared/mixins/forms"; @import "mixins"; //variables @input-height: 40px; @input-width: 282px; @big-square-button-side: 32px; @image-frame-width: 120px; @image-frame-height: (@image-frame-width * 2) / 3; @image-thumb-small-width: 60px; @image-thumb-small-height: (@image-thumb-small-width * 2) / 3; @item-height: 40px; @item-number-width: 50px; @item-number-margin-right: 10px; #toplists-loading-screen { @include blockInput; } #toplist-editor { @include error; width: 465px; margin: 0; padding: 0; .sprite { vertical-align: middle; position: static; } small { font-size: smaller; } div.InputSet { margin-bottom: 20px; .error { width: @input-width; } } div.AutoCompleteWrapper { position: relative; .autocomplete { @include menu-regular; margin-top: 2px; position: relative; width: 270px; z-index: 10; div { font-size: 14px; padding: 4px 4px 2px; } .selected { background: @color-menu-highlight; } } } label { display: block; span.small { font-size: 9px; } } input[type="text"] { @include input-field; } input[type="text"], div.InputDisabled { width: @input-width; height: @input-height; line-height: @input-height; } .ImageBrowser { float: right; position: relative; top: 45px; z-index: 1; cursor: default; .frame { border: 1px solid @color-page-border; .NoPicture, img { @include centered(@image-frame-height); width: @image-frame-width; height: @image-frame-height; margin: 5px; } .NoPicture { background-color: @color-module-shadow; display: table-cell; vertical-align: middle; line-height: 15px; max-height: 80px; span { padding: 0 10px; } } } .wikia-chiclet-button { @include centered(@big-square-button-side); position: absolute; top: (@image-frame-height - @big-square-button-side + 10px) / 2; left: - (@big-square-button-side) / 2; width: @big-square-button-side; margin: 0; padding: 0; } } #template-items-list { dislay: none; } .ItemsList { list-style: none; margin: 40px 0 0 0; overflow-x: hidden; // fix jQuery UI sortable() webkit fixed position bug - BugID: 33896 padding: 0; li { min-height: @item-height; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed @color-page-border; div { float:left; } &.ItemTemplate { display: none; } .ItemNumber { @include centered(@item-height, left); width: @item-number-width; font: { color: @color-module-shadow; size: 20px; weight: bold; } margin-right: @item-number-margin-right; } .ItemName { @include centered(@item-height); background-color: @color-module-shadow; border: 1px solid @color-page-border; border-radius: 5px; display: inline; padding: 2px 10px 0 10px; input[type="text"] { @include input-field; width: 290px; height: 20px; border: 1px solid @color-page-border; line-height: 20px; } } .ItemRemove { @include tool(15px); } .ItemDrag { @include tool(10px , move); } p { clear: both; margin-left:70px; } } .DragPlaceholder { background-color: @color-menu-highlight; } } .AddControls { margin: { left: @item-number-width + @item-number-margin-right; bottom: 80px; } a { cursor: pointer; &:hover { text-decoration: none; } &.wikia-chiclet-button { @include centered(@big-square-button-side); width: @big-square-button-side; } } label { @include centered(@big-square-button-side); margin-left: 10px; display: inline; } } .FormButtons { float: right; a.secondary { margin-right: 20px; } } } #image-browser-dialog { position: relative; .selected { @include centered(@image-frame-height); display: block; border: 1px solid @color-page-border; width: @image-frame-width; height: @image-frame-height; padding: 2px; margin: 3px 3px 14px 3px; cursor: default; } div.selected { background-color: @color-module-shadow; display: table-cell; vertical-align: middle; line-height: 15px; max-height: 86px; } ul { @include clearfix; display: block; padding: 10px 0 10px 0; margin: 0; border-top: 1px solid @color-page-border; border-bottom: 1px solid @color-page-border; li { float: left; margin: 3px; img, div.NoPicture { @include centered(@image-thumb-small-height); border: 1px solid @color-page-border; width: @image-thumb-small-width; height: @image-thumb-small-height; max-height: @image-thumb-small-height; padding: 2px; font-size: 9px; overflow: hidden; } div.NoPicture { background-color: @color-module-shadow; cursor: pointer; display: table-cell; vertical-align: middle; line-height: 15px; span { } } } } form { @include error; position: relative; .BlockInput { display: none; background-color: @color-page; opacity: .75; position:absolute; top: 0; width: 100%; height: 100%; } label { display: block; } div { text-align: center; div.button { margin: 10px 0 10px 0; position: relative; overflow: hidden; input { cursor: pointer; height: 100%; left: 0; opacity: 0; position: absolute; top: 0; width: 100%; } } } p.error { text-align: center; } } }