diff options
| author | 2022-04-11 10:31:04 +0200 | |
|---|---|---|
| committer | 2022-04-11 10:31:04 +0200 | |
| commit | 5e28bf8b403205642cf09aad5ef47ed1aa781a5d (patch) | |
| tree | 23e47d360f5cffb05febe379dc6eb4d1562f9edb /p/themes/base-theme/template.css | |
| parent | 2aba861bc983555faf6dd96c5daa4e40e5328c54 (diff) | |
Improved: slider (#4297)
* CSS
* thin scrollbar
* fix whitespaces in CSS
* fix CSS order
Diffstat (limited to 'p/themes/base-theme/template.css')
| -rw-r--r-- | p/themes/base-theme/template.css | 46 |
1 files changed, 41 insertions, 5 deletions
diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index 8b35175e4..989ce74af 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -160,8 +160,42 @@ input, select, textarea { font-size: 0.8rem; } +input.w50, +select.w50, +textarea.w50 { + min-width: 50%; + box-sizing: border-box; +} + +input.w100, +select.w100, +textarea.w100 { + width: 100%; + box-sizing: border-box; +} + +.stick.w50 { + width: 50%; +} + +.stick.w100 { + width: 100%; +} + +.stick.w50 input, +.stick.w100 input { + width: 100%; +} + +.stick.w100 input + .btn { + width: 29px; + padding-left: 3px; + padding-right: 3px; + text-align: center; +} + textarea[rows="2"] { - height: 3em; + height: 4em; } textarea:invalid { @@ -1397,17 +1431,18 @@ br { /*=== Slider */ #slider { + background: #fff; + width: 0; position: fixed; top: 0; bottom: 0; - left: 100%; right: 0; + right: 0; overflow: auto; - background: #fff; border-left: 1px solid #aaa; - transition: left 200ms linear; + transition: width 200ms linear; } #slider.active { - left: 40%; + width: 750px; } #close-slider { @@ -1832,6 +1867,7 @@ input:checked + .slide-container .properties { #slider.active { left: 0; top: 50px; + width: 100%; } #close-slider img { |
