This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/themes/default/style.css

237 lines
4.4 KiB
CSS
Raw Normal View History

2023-08-16 12:28:28 +00:00
:root {
color-scheme: light dark;
2023-08-16 12:28:28 +00:00
--page: #EEE;
--text: #000;
--link-default: #0000EE;
--link-visited: #551A8B;
--title: #BBB;
--title-border: #AAA;
--header: #CCC;
--header-border: #BBB;
--block: #DDD;
--block-border: #CCC;
--zebra-border: #CCC;
--zebra-header: #DDD;
--zebra-odd: #EFEFEF;
--zebra-even: #E0E0E0;
}
@media (prefers-color-scheme: dark) {
:root {
--page: #222;
--text: #CCC;
2023-08-16 15:08:38 +00:00
--link-default: #BBF;
--link-visited: #EAF;
2023-08-16 12:28:28 +00:00
2023-08-16 15:08:38 +00:00
--title: #333;
--title-border: #555;
2023-08-16 12:28:28 +00:00
2023-08-16 15:08:38 +00:00
--header: #444;
--header-border: #666;
2023-08-16 12:28:28 +00:00
2023-08-16 15:08:38 +00:00
--block: #555;
--block-border: #777;
2023-08-16 12:28:28 +00:00
--zebra-border: #777;
--zebra-header: #444;
--zebra-odd: #555;
--zebra-even: #666;
}
}
2009-07-06 11:31:40 +00:00
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2010-04-20 01:24:36 +00:00
* things common to all pages *
2009-07-06 11:31:40 +00:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
:root {
font-size: 14px;
font-family: sans-serif;
}
2009-07-06 11:31:40 +00:00
2024-01-08 21:24:41 +00:00
HEADER H1 {
max-height: 3em;
overflow: hidden;
}
2009-07-06 11:31:40 +00:00
BODY {
2023-08-16 12:28:28 +00:00
background: var(--page);
color: var(--text);
2020-03-13 09:23:54 +00:00
margin: 0;
2009-07-06 11:31:40 +00:00
}
H1 {
2023-08-16 12:28:28 +00:00
background: var(--title);
border: 1px solid var(--title-border);
2009-07-06 11:31:40 +00:00
text-align: center;
}
H1 A {
2023-08-16 12:28:28 +00:00
color: var(--text);
2009-07-06 11:31:40 +00:00
}
H3 {
text-align: center;
2020-03-13 09:23:54 +00:00
margin: 0;
2009-07-06 11:31:40 +00:00
}
2012-03-12 02:45:39 +00:00
SECTION>H3 {
2023-08-16 12:28:28 +00:00
background: var(--header);
border: 1px solid var(--header-border);
2010-04-20 01:24:36 +00:00
}
2012-03-12 05:31:19 +00:00
SECTION>.blockbody, .comment, .setupblock {
2023-08-16 12:28:28 +00:00
background: var(--block);
border: 1px solid var(--block-border);
2010-04-20 01:24:36 +00:00
}
2012-03-12 05:31:19 +00:00
SECTION>.blockbody, H1, SECTION>H3, FOOTER, .comment, .setupblock {
2010-04-20 01:24:36 +00:00
margin: 8px;
padding: 8px;
2023-08-16 12:28:28 +00:00
border-radius: 12px;
box-shadow: 2px 2px 6px rgba(0,0,0,0.6);
2010-04-20 01:24:36 +00:00
}
2009-07-06 11:31:40 +00:00
THEAD {
font-weight: bold;
}
TD {
vertical-align: top;
text-align: center;
}
2023-08-16 12:28:28 +00:00
TABLE.zebra {border-spacing: 0; border: 2px solid var(--zebra-border);}
2009-07-06 11:31:40 +00:00
TABLE.zebra TD, TABLE.zebra TH {vertical-align: middle; padding: 4px;}
2024-02-24 16:31:02 +00:00
TABLE.zebra THEAD {position: sticky;top: 0;}
TABLE.zebra THEAD TR:last-child TD, TABLE.zebra TR:last-child THEAD TH {border-bottom: 2px solid var(--zebra-border);}
TABLE.zebra TFOOT TR:first-child TD, TABLE.zebra TFOOT TR:first-child TH {border-top: 2px solid var(--zebra-border);}
2023-08-16 12:28:28 +00:00
TABLE.zebra TR TD {border-bottom: 1px solid var(--zebra-header);}
TABLE.zebra TR:nth-child(odd) {background: var(--zebra-odd);}
TABLE.zebra TR:nth-child(even) {background: var(--zebra-even);}
2009-07-06 11:31:40 +00:00
2012-03-11 16:18:37 +00:00
FOOTER {
2009-07-06 11:31:40 +00:00
clear: both;
font-size: 0.7rem;
2009-07-06 11:31:40 +00:00
text-align: center;
2023-08-16 12:28:28 +00:00
background: var(--title);
border: 1px solid var(--title-border);
2009-07-06 11:31:40 +00:00
}
2023-08-16 12:28:28 +00:00
A {
text-decoration: none;
color: var(--link-default);
}
A:hover {
text-decoration: underline;
}
A:visited {
color: var(--link-visited);
}
2009-07-06 11:31:40 +00:00
UL {
text-align: left;
}
2024-06-11 15:02:52 +00:00
CODE {
background: #BBB;
font-size: 0.9rem;
}
2009-07-06 11:31:40 +00:00
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* the navigation bar, and all its blocks *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2012-03-11 16:18:37 +00:00
NAV {
2009-07-06 11:31:40 +00:00
width: 200px;
float: left;
text-align: center;
margin-left: 16px;
}
2012-03-11 16:18:37 +00:00
NAV .blockbody {
font-size: 0.85rem;
2009-07-06 11:31:40 +00:00
text-align: center;
2010-04-20 01:24:36 +00:00
overflow: hidden;
2009-07-06 11:31:40 +00:00
}
2012-03-11 16:18:37 +00:00
NAV TABLE {
2012-03-12 02:17:38 +00:00
width: 100%;
2009-07-06 11:31:40 +00:00
}
2012-03-11 16:18:37 +00:00
NAV INPUT {
2009-07-06 11:31:40 +00:00
width: 100%;
}
2012-03-11 16:18:37 +00:00
NAV SELECT {
2009-07-06 11:31:40 +00:00
width: 100%;
}
2016-09-06 07:18:36 +00:00
TABLE.tag_list {
border-collapse: collapse;
}
TABLE.tag_list>THEAD {
display: none;
}
TABLE.tag_list>TBODY>TR>TD {
display: inline;
padding: 0;
}
TABLE.tag_list>TBODY>TR>TD:after {
content: " ";
2016-09-06 07:18:36 +00:00
}
2009-07-06 11:31:40 +00:00
.more:after {
content: " >>>";
}
.tag_count:before {
content: "(";
}
.tag_count:after {
content: ")";
}
2012-03-12 04:59:56 +00:00
#paginator .blockbody {
background: none;
border: none;
box-shadow: none;
2009-07-06 11:31:40 +00:00
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* the main part of each page *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2012-03-11 16:18:37 +00:00
ARTICLE {
2009-07-06 11:31:40 +00:00
margin-left: 226px;
margin-right: 16px;
2012-03-06 15:38:42 +00:00
margin-top: 16px;
2009-07-06 11:31:40 +00:00
text-align: center;
height: 1%;
}
2012-03-11 16:18:37 +00:00
ARTICLE TABLE {
2009-07-06 11:31:40 +00:00
width: 90%;
margin: auto;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* specific page types *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#short-wiki-description > .blockbody {
padding-bottom: 15px;
}
#short-wiki-description h2 {
margin: 0 0 0.4em;
}
2009-07-06 11:31:40 +00:00
#pagelist {
margin-top: 32px;
}
2012-03-12 03:28:08 +00:00
.thumb IMG {
2023-08-16 12:28:28 +00:00
border: 1px solid var(--block-border);
background: var(--block);
2012-03-12 03:28:08 +00:00
padding: 8px;
2023-08-16 12:28:28 +00:00
border-radius: 12px;
box-shadow: 2px 2px 6px rgba(0,0,0,0.6);
2012-03-12 03:28:08 +00:00
}
2024-01-04 14:07:52 +00:00
2024-01-04 14:17:55 +00:00
/* example of how to apply specific styles to specific thumbs for specific userclasses */
2024-01-04 14:07:52 +00:00
/*
BODY[data-userclass="anonymous"] .thumb[data-rating="e"] IMG {
filter: blur(5px);
}
*/