BetterTwitFix/static/style.css

429 lines
6.4 KiB
CSS
Raw Normal View History

2022-03-07 13:54:34 +01:00
@font-face {
font-family: NotoColorEmojiLimited;
unicode-range: U+1F1E6-1F1FF;
src: url("https://fxtwitter.com/font.ttf");
}
2022-03-07 13:54:34 +01:00
:root {
--ios-height: 100vh;
--top-height: calc(4.5vh + 1.25vw);
}
2022-03-07 13:54:34 +01:00
body {
2022-03-07 13:54:34 +01:00
margin: 0;
width: 100vw;
height: 100vh;
height: var(--ios-height);
overflow: hidden;
}
2022-03-07 13:54:34 +01:00
a {
2022-03-07 13:54:34 +01:00
color: unset;
text-decoration: unset;
}
a,
a:link,
a:focus,
a:visited,
a:active,
a:-webkit-any-link,
:link {
2022-03-07 13:54:34 +01:00
color: unset;
text-decoration: unset;
}
a:hover {
2022-03-07 13:54:34 +01:00
color: #8ebf42;
}
::-webkit-scrollbar {
width: 1vmin;
2022-03-07 13:54:34 +01:00
}
::-webkit-scrollbar-track {
background: #171717;
border-radius: .5vmin;
margin: 2vmin 0 2vmin;
}
::-webkit-scrollbar-thumb {
background: #e8e8e8;
border-radius: .5vmin;
}
::-webkit-scrollbar-thumb:hover {
background: #8ebf42;
}
::selection {
color: #171717;
background-color: #e8e8e8;
}
.base {
2022-03-07 13:54:34 +01:00
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
font-family: 'Paytone One', 'NotoColorEmojiLimited', sans-serif;
2022-03-07 13:54:34 +01:00
background-color: #222222;
color: #e8e8e8;
}
.top {
2022-03-07 13:54:34 +01:00
height: var(--top-height);
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
box-sizing: border-box;
font-size: 7vmin;
2022-03-07 13:54:34 +01:00
padding: 1vmin 0 1vmin;
/*margin: 0 20vw 0;
border-bottom: #e8e8e8 .1vmin solid;*/
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px 0px;
}
.top:hover {
2022-03-07 13:54:34 +01:00
color: #8ebf42;
cursor: pointer;
}
2022-03-07 13:54:34 +01:00
.bottom {
flex: 1;
display: flex;
flex-direction: row;
}
.tweetCont {
2022-03-07 13:54:34 +01:00
flex: 2;
padding: calc(1vh + .25vw) 10% 0;
2022-03-07 13:54:34 +01:00
overflow-y: auto;
max-height: calc(var(--ios-height) - var(--top-height) - calc(1vh + .25vw));
2022-03-07 13:54:34 +01:00
}
.tweet {
2022-03-07 13:54:34 +01:00
display: flex;
position: relative;
flex-direction: column;
background-color: #171717;
margin: 0 0 calc(2vh + .5vw);
2022-03-07 13:54:34 +01:00
padding: 1vmin 0 1vmin;
box-shadow: rgba(0, 0, 0, 0.4) 0px 4px 7px;
font-size: 18px;
}
.side {
2022-03-07 13:54:34 +01:00
flex: 1;
overflow-y: auto;
max-height: calc(var(--ios-height) - var(--top-height) - calc(1vh + .25vw));
2022-03-07 13:54:34 +01:00
}
.by {
2022-03-07 13:54:34 +01:00
color: #8ebf42;
}
.by:hover {
2022-03-07 13:54:34 +01:00
color: #F74843;
}
2022-03-07 13:54:34 +01:00
/* Tweet */
.desc {
padding: 0 calc(1.5vh + .25vw) 0;
2022-03-07 13:54:34 +01:00
}
.auth,
.meta {
2022-03-07 13:54:34 +01:00
display: flex;
flex-direction: row;
gap: 1%;
font-size: 1.2em;
padding: 0 calc(.5vh + .125vw) 0;
2022-03-07 13:54:34 +01:00
}
.aname {
2022-03-07 13:54:34 +01:00
display: flex;
flex-direction: column;
justify-content: space-evenly;
}
.aname,
.type {
2022-03-07 13:54:34 +01:00
flex: 1;
}
.type {
2022-03-07 13:54:34 +01:00
text-align: right;
margin: auto 2% auto;
}
.aimage {
2022-03-07 13:54:34 +01:00
border-radius: 50%;
border: #8ebf42 .3vmin solid;
height: 100%;
width: auto;
margin: auto;
/* No Drag */
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
}
.nsfw {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.ncont {
position: absolute;
z-index: 1;
bottom: 20%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2vmin;
background-color: #17171788;
border-radius: .5vmin;
padding: 1vw;
}
.ninfo {
text-align: center;
}
.nshow {
padding: 1vh 1vw;
background-color: #171717;
border: solid .5vmin #8ebf42;
color: #e8e8e8;
border-radius: .5vmin;
transition-duration: .2s;
transition-timing-function: ease-in-out;
cursor: pointer;
user-select: none;
font-size: 1em;
}
.nshow:hover {
transform: scale(1.1);
border: solid .5vmin #bf4242;
}
.nshow:active {
transform: scale(.98);
}
.nsfw .media {
filter: blur(30px);
}
.noff div:not(.imgCont) {
display: none;
}
.noff .media {
display: unset;
filter: unset;
}
.imgCont {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
}
.imgCont .media {
max-width: 50%;
max-height: 35vh;
}
.media {
2022-03-07 13:54:34 +01:00
box-sizing: border-box;
width: 100%;
height: auto;
max-height: 60vh;
object-fit: scale-down;
background-color: black;
2022-03-07 13:54:34 +01:00
}
.quote {
2022-03-07 13:54:34 +01:00
margin: auto;
width: 90%;
border-radius: .5vmin;
border: #222222 solid .5vmin;
padding: .5vmin;
}
.qname {
2022-03-07 13:54:34 +01:00
color: #8ebf42;
}
.cont,
.date {
2022-03-07 13:54:34 +01:00
margin: auto 0 auto;
2022-03-07 13:54:34 +01:00
}
.date {
2022-03-07 13:54:34 +01:00
margin-left: 2%;
}
.share {
2022-03-07 13:54:34 +01:00
margin-left: auto;
height: 2em;
transition-duration: .2s;
transition-timing-function: ease-in-out;
}
.share:hover {
2022-03-07 13:54:34 +01:00
transform: scale(.8);
}
.share:active {
2022-03-07 13:54:34 +01:00
transform: scale(2);
}
.auth,
.desc,
.quote {
2022-03-07 13:54:34 +01:00
margin-bottom: 2vmin;
}
/* Settings */
.settings,
.info {
2022-03-07 13:54:34 +01:00
font-size: 35px;
padding: 1vmin;
}
.settings {
user-select: none;
display: flex;
flex-direction: column;
}
.opt {
2022-03-07 13:54:34 +01:00
font-size: .49em;
user-select: none;
white-space: nowrap;
flex-wrap: nowrap;
2022-03-07 13:54:34 +01:00
}
.Iinner {
2022-03-07 13:54:34 +01:00
font-size: .5em;
}
2022-03-07 13:54:34 +01:00
/* Preview */
img:not(.previmg, .aimage) {
2022-03-07 13:54:34 +01:00
cursor: pointer;
transition-duration: .2s;
transition-timing-function: ease-in-out;
}
.previmgcont {
position: fixed;
display: flex;
justify-content: center;
flex-direction: column;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
z-index: 101;
background-color: #171717b7;
}
.previmg {
margin: auto;
cursor: zoom-out !important;
max-width: 100vw;
max-height: 100vh;
min-width: 100vw;
object-fit: contain;
}
/* Block */
#block {
position: fixed;
box-sizing: border-box;
width: 100%;
height: 100%;
z-index: 99;
background: #222222;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(1.75vh + .25vw);
text-align: center;
}
#block .warn {
2022-03-07 13:54:34 +01:00
font-size: 2em;
color: #F74843;
text-align: center;
}
.boptions {
2022-03-07 13:54:34 +01:00
display: flex;
flex-direction: row;
2022-03-07 13:54:34 +01:00
gap: 1.5vmin;
}
2022-03-07 13:54:34 +01:00
.boptions>div {
padding: 2vh 2vw;
border: solid .5vmin #c5c5c5;
color: #e8e8e8;
border-radius: .5vmin;
transition-duration: .15s;
transition-timing-function: ease-in-out;
cursor: pointer;
user-select: none;
font-size: 1em;
}
.boptions>div:hover {
transform: scale(1.02);
border: solid .5vmin #8ebf42;
}
.boptions>div:active {
transform: scale(.98);
}
@media (max-aspect-ratio: 4/4),
(max-height: 500px),
(max-width: 1100px) {
.side {
2022-03-07 13:54:34 +01:00
display: none;
}
.tweet {
2022-03-07 13:54:34 +01:00
font-size: 12px;
}
.tweetCont {
2022-03-07 13:54:34 +01:00
padding: 0 5% 0;
}
.boptions {
2022-03-07 13:54:34 +01:00
flex-direction: column;
}
}