integrate some of Freeplay's Ck userstyles
This commit is contained in:
parent
c0cf1e2bf4
commit
a623948e53
4 changed files with 54 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "13.0.6",
|
"version": "13.0.7",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -424,9 +424,11 @@ function readPromo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
> .article {
|
> .article {
|
||||||
display: flex;
|
|
||||||
padding: 28px 32px 18px;
|
padding: 28px 32px 18px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
display: grid;
|
||||||
|
align-items: center;
|
||||||
|
grid-template-columns: 58px;
|
||||||
|
|
||||||
@media (pointer: coarse) {
|
@media (pointer: coarse) {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
@ -436,20 +438,42 @@ function readPromo() {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 14px 8px 0;
|
margin: 0 14px 8px 0;
|
||||||
width: 52px;
|
grid-row: 1 / span 2;
|
||||||
height: 52px;
|
width: 48px;
|
||||||
position: sticky;
|
height: 48px;
|
||||||
|
position: relative;
|
||||||
/* For some reason this breaks avatar
|
/* For some reason this breaks avatar
|
||||||
positions on notes, commenting it for now */
|
positions on notes, commenting it for now */
|
||||||
/* top: var(--stickyTop, 0px); */
|
/* top: var(--stickyTop, 0px); */
|
||||||
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .main {
|
> .main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
display: contents;
|
||||||
|
|
||||||
|
> .header {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .name, .info {
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .username, .ticker {
|
||||||
|
grid-row: 2;
|
||||||
|
font-size: .9em;
|
||||||
|
align-self: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
> .body {
|
> .body {
|
||||||
|
margin-top: .2em;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-inline: -100px;
|
||||||
|
padding-inline: 100px;
|
||||||
|
|
||||||
> .cw {
|
> .cw {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -405,19 +405,28 @@ if (appearNote.replyId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
> .article {
|
> .article {
|
||||||
padding: 32px;
|
padding: 28px 32px 18px;
|
||||||
font-size: 1.2em;
|
cursor: pointer;
|
||||||
|
display: grid;
|
||||||
|
align-items: center;
|
||||||
|
grid-template-columns: 58px;
|
||||||
|
|
||||||
> .header {
|
> .header {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
display: contents;
|
||||||
|
|
||||||
> .avatar {
|
> .avatar {
|
||||||
display: block;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
width: 52px;
|
display: block;
|
||||||
height: 52px;
|
margin: 0 14px 8px 0;
|
||||||
|
grid-row: 1 / span 2;
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .body {
|
> .body {
|
||||||
|
@ -427,6 +436,10 @@ if (appearNote.replyId) {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
|
margin-top: .2em;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-inline: -100px;
|
||||||
|
padding-inline: 100px;
|
||||||
|
|
||||||
> .top {
|
> .top {
|
||||||
> .name {
|
> .name {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { } from 'vue';
|
import { } from 'vue';
|
||||||
import * as misskey from 'calckey-js';
|
import type * as misskey from 'calckey-js';
|
||||||
import MkVisibility from '@/components/MkVisibility.vue';
|
import MkVisibility from '@/components/MkVisibility.vue';
|
||||||
import { notePage } from '@/filters/note';
|
import { notePage } from '@/filters/note';
|
||||||
import { userPage } from '@/filters/user';
|
import { userPage } from '@/filters/user';
|
||||||
|
@ -32,6 +32,12 @@ defineProps<{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
justify-self: flex-end;
|
||||||
|
padding: .1em .7em;
|
||||||
|
border-radius: 100px;
|
||||||
|
background-color: var(--bg);
|
||||||
|
font-size: .8em;
|
||||||
|
text-shadow: 0 2px 2px black;
|
||||||
|
|
||||||
> .name {
|
> .name {
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
|
|
Loading…
Reference in a new issue