MediaWiki: Tweeki.css: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
--links-grey: #415262; | --links-grey: #415262; | ||
--links-orange: #ee7802; | --links-orange: #ee7802; | ||
} | |||
@supports (font-variation-settings: normal) { | |||
@font-face { | |||
font-family: 'Open Sans'; | |||
src: url('/resources/assets/OpenSans-VariableFont_wdth,wght.ttf') format("truetype-variations"); | |||
font-weight: 300 800; | |||
font-stretch: 75% 150%; | |||
} | |||
} | } | ||
Line 28: | Line 37: | ||
border-bottom: 1px solid var(--links-blue); | border-bottom: 1px solid var(--links-blue); | ||
} | } | ||
.skin-tweeki #content #dct-profile a.external::after { | .skin-tweeki #content #dct-profile a.external::after { | ||
content: "\1F865"; | content: "\1F865"; | ||
Line 34: | Line 44: | ||
transition: all 300ms ease-in-out; | transition: all 300ms ease-in-out; | ||
} | } | ||
.skin-tweeki #content #dct-profile a.external:hover::after { | .skin-tweeki #content #dct-profile a.external:hover::after { | ||
transform: translate(15%, -15%); | transform: translate(15%, -15%); | ||
Line 45: | Line 56: | ||
#dct-profile h6 { | #dct-profile h6 { | ||
color: var(--links-blue); | color: var(--links-blue); | ||
font-family: 'Open Sans'; | |||
} | } | ||
#dct-profile > section { | #dct-profile>section { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
padding: 1em 1em 1em 0; | padding: 1em 1em 1em 0; | ||
Line 60: | Line 72: | ||
position: relative; | position: relative; | ||
} | } | ||
.anim-border::after { | .anim-border::after { | ||
content: ""; | content: ""; | ||
Line 73: | Line 86: | ||
transform: scaleX(0); | transform: scaleX(0); | ||
} | } | ||
body.loaded .anim-border::after { | body.loaded .anim-border::after { | ||
transform: scaleX(1); | transform: scaleX(1); | ||
Line 88: | Line 102: | ||
} | } | ||
#dct-profile .dct-info > div { | #dct-profile .dct-info>div { | ||
margin-bottom: 2.5em; | margin-bottom: 2.5em; | ||
} | } | ||
Line 104: | Line 118: | ||
#dct-profile { | #dct-profile { | ||
grid-template: | grid-template: | ||
"meta" | |||
"desc" | |||
"info" | |||
"func" | |||
"more" | |||
} | } | ||
Line 120: | Line 134: | ||
} | } | ||
#dct-profile .dct-info > div { | #dct-profile .dct-info>div { | ||
margin: 0; | margin: 0; | ||
} | } | ||
} | } | ||
/* DCT PROFILE END */ | /* DCT PROFILE END */ |
Revision as of 16:28, 12 May 2022
/* CSS placed here will affect users of the Tweeki skin */ :root { --links-blue: #1980c3; --links-cyan: #34b8b8; --links-grey: #415262; --links-orange: #ee7802; } @supports (font-variation-settings: normal) { @font-face { font-family: 'Open Sans'; src: url('/resources/assets/OpenSans-VariableFont_wdth,wght.ttf') format("truetype-variations"); font-weight: 300 800; font-stretch: 75% 150%; } } /* DCT PROFILE START */ #dct-profile { --dct-border: 2px solid var(--links-blue); margin-bottom: 3em; display: grid; grid-template: "meta meta" "desc info" "func info" "more info" / 2fr 1fr; } /* TODO: Generalize link formatting later (remove #dct-profile) */ .skin-tweeki #content #dct-profile a.external { background: initial; padding: 0; text-decoration: none; border-bottom: 1px solid var(--links-blue); } .skin-tweeki #content #dct-profile a.external::after { content: "\1F865"; padding-left: .4em; display: inline-block; transition: all 300ms ease-in-out; } .skin-tweeki #content #dct-profile a.external:hover::after { transform: translate(15%, -15%); } #dct-profile h1, #dct-profile h2, #dct-profile h3, #dct-profile h4, #dct-profile h5, #dct-profile h6 { color: var(--links-blue); font-family: 'Open Sans'; } #dct-profile>section { box-sizing: border-box; padding: 1em 1em 1em 0; } #dct-profile .dct-meta { grid-area: meta; /* border-bottom: var(--dct-border); */ } .anim-border { position: relative; } .anim-border::after { content: ""; display: block; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background-color: var(--links-blue); transition: all 500ms ease-in-out; transform-origin: left; transform: scaleX(0); } body.loaded .anim-border::after { transform: scaleX(1); } #dct-profile .dct-desc { grid-area: desc; /* border-bottom: var(--dct-border); */ } #dct-profile .dct-info { grid-area: info; border-left: var(--dct-border); padding-left: 1em; } #dct-profile .dct-info>div { margin-bottom: 2.5em; } #dct-profile .dct-func { grid-area: func; /* border-bottom: var(--dct-border); */ } #dct-profile .dct-more { grid-area: more; } @media only screen and (orientation: portrait) { #dct-profile { grid-template: "meta" "desc" "info" "func" "more" } #dct-profile .dct-info { border-left: 0 none; border-bottom: var(--dct-border); padding-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10em, 1fr)); gap: 1em 1em; } #dct-profile .dct-info>div { margin: 0; } } /* DCT PROFILE END */