summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-05-04 23:39:17 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-05-04 23:39:17 +0900
commit5e40930f11078331061d50f8763057ec4918e04b (patch)
tree3727274a5bf1ac586fa85daffe070e54b70a1b4c /src
parent12.80.1 (diff)
downloadmisskey-5e40930f11078331061d50f8763057ec4918e04b.tar.gz
misskey-5e40930f11078331061d50f8763057ec4918e04b.tar.bz2
misskey-5e40930f11078331061d50f8763057ec4918e04b.zip
Fix style
Diffstat (limited to 'src')
-rw-r--r--src/client/components/global/ad.vue21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/client/components/global/ad.vue b/src/client/components/global/ad.vue
index 53e6e8b8bb..124e94c12f 100644
--- a/src/client/components/global/ad.vue
+++ b/src/client/components/global/ad.vue
@@ -85,16 +85,16 @@ export default defineComponent({
background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, var(--ad) 8px, var(--ad) 14px );
> .main {
+ text-align: center;
+
> a {
- display: block;
+ display: inline-block;
position: relative;
- margin: 0 auto;
> img {
display: block;
- width: 100%;
- height: 100%;
object-fit: contain;
+ margin: auto;
}
> .menu {
@@ -106,23 +106,26 @@ export default defineComponent({
}
&.square {
- > a {
+ > a ,
+ > a > img {
max-width: min(300px, 100%);
- max-height: min(300px, 100%);
+ max-height: 300px;
}
}
&.horizontal {
padding: 8px;
- > a {
+ > a ,
+ > a > img {
max-width: min(600px, 100%);
- max-height: min(100px, 100%);
+ max-height: 100px;
}
}
&.vertical {
- > a {
+ > a ,
+ > a > img {
max-width: min(100px, 100%);
}
}