From 6c29ccee40843c85e70f8daa5ed5abe5f53287c7 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 12 Feb 2012 11:25:58 +0000 Subject: [PATCH] split extension styles, so other themes can use them better --- ext/comment/style.css | 27 +++++++++++++++ ext/setup/style.css | 37 ++++++++++++++++++++ ext/view/style.css | 12 +++++++ themes/default/style.css | 73 ---------------------------------------- 4 files changed, 76 insertions(+), 73 deletions(-) create mode 100644 ext/comment/style.css create mode 100644 ext/setup/style.css create mode 100644 ext/view/style.css diff --git a/ext/comment/style.css b/ext/comment/style.css new file mode 100644 index 00000000..9a0c00cd --- /dev/null +++ b/ext/comment/style.css @@ -0,0 +1,27 @@ + +#comments P { + text-align: left; + width: 150px; + max-width: 150px; + overflow: hidden; +} +.comment { + text-align: left; + position: relative; +} +.comment .info { + visibility: hidden; + text-align: center; + padding: 8px; + background: #DDD; + border: 1px solid #CCC; + position: absolute; + top: 0px; + right: 0px; + z-index: 1; + box-shadow: 0px 0px 4px #000; + border-radius: 4px; +} +.comment:hover .info { + visibility: visible; +} diff --git a/ext/setup/style.css b/ext/setup/style.css new file mode 100644 index 00000000..6e758563 --- /dev/null +++ b/ext/setup/style.css @@ -0,0 +1,37 @@ +.setupblocks { + column-width: 400px; + -moz-column-width: 400px; + -webkit-column-width: 400px; + max-width: 1200px; + margin: auto; +} +.setupblocks .rr { + break-inside: avoid; + -moz-break-inside: avoid; + -webkit-break-inside: avoid; + column-break-inside: avoid; + -moz-column-break-inside: avoid; + -webkit-column-break-inside: avoid; +} +.setupblock { + text-align: center; + width: 100%; +} +.setupblock TEXTAREA { + width: 100%; + font-size: 0.75em; + resize: vertical; +} + +.helpable { + border-bottom: 1px dashed gray; +} + +.ok { + background: #AFA; +} +.bad { + background: #FAA; +} + + diff --git a/ext/view/style.css b/ext/view/style.css new file mode 100644 index 00000000..659c794f --- /dev/null +++ b/ext/view/style.css @@ -0,0 +1,12 @@ + +.image_info TD { + text-align: left; +} +.image_info TD:first-child { + text-align: right; + padding-right: 4px; +} +.image_info .edit { + display: none; +} + diff --git a/themes/default/style.css b/themes/default/style.css index b28d7eb7..d6ccc9a2 100644 --- a/themes/default/style.css +++ b/themes/default/style.css @@ -121,33 +121,6 @@ UL { padding: 0px; } -#comments P { - text-align: left; - width: 150px; - max-width: 150px; - overflow: hidden; -} -.comment { - text-align: left; - position: relative; -} -.comment .info { - visibility: hidden; - text-align: center; - padding: 8px; - background: #DDD; - border: 1px solid #CCC; - position: absolute; - top: 0px; - right: 0px; - z-index: 1; - box-shadow: 0px 0px 4px #000; - border-radius: 4px; -} -.comment:hover .info { - visibility: visible; -} - .more:after { content: " >>>"; } @@ -200,42 +173,6 @@ UL { padding: 8px 4px 8px 4px; } -.setupblocks { - column-width: 400px; - -moz-column-width: 400px; - -webkit-column-width: 400px; - max-width: 1200px; - margin: auto; -} -.setupblocks .rr { - break-inside: avoid; - -moz-break-inside: avoid; - -webkit-break-inside: avoid; - column-break-inside: avoid; - -moz-column-break-inside: avoid; - -webkit-column-break-inside: avoid; -} -.setupblock { - text-align: center; - width: 100%; -} -.setupblock TEXTAREA { - width: 100%; - font-size: 0.75em; - resize: vertical; -} - -.helpable { - border-bottom: 1px dashed gray; -} - -.ok { - background: #AFA; -} -.bad { - background: #FAA; -} - #nav .thumbblock { float: none; height: auto; @@ -265,13 +202,3 @@ UL { margin: auto; } -.image_info TD { - text-align: left; -} -.image_info TD:first-child { - text-align: right; - padding-right: 4px; -} -.image_info .edit { - display: none; -}