コンテンツにスキップ

現在、全3219曲を聴きながらリンク集を作成中のサグラダ・ファミリア サイトです。
情報の誤りやお問い合わせは、管理人 X までお寄せください。
✨ オススメのプレイリストやセトリを教えて下さい ✨

「MediaWiki:Common.css」の版間の差分

今日も推しが尊いですね。― ハロプロ・サブスク非公式リンク集
ページの作成:「--- ロゴの重なり防止設定 ---: 1. PC・スマホ共通:ロゴが枠からはみ出さないようにする: .mw-logo-wordmark { height: auto !important; max-height: 32px; ヘッダーの高さに合わせる: width: auto !important; } 2. スマホ(画面幅が720px以下)の場合の特別ルール: @media screen and (max-width: 720px) { /* ロゴをさらに小さくして、検索窓とのスペースを作る *…」
 
編集の要約なし
 
(同じ利用者による、間の16版が非表示)
1行目: 1行目:
/* --- ロゴの重なり防止設定 --- */
/* --- 1. Googleがロゴの前に割り込ませる「巨大な箱」を完全消去 --- */
.google-auto-placed,
.vector-header-start > .google-auto-placed {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
 
/* --- 2. PC版(1000px以上)のロゴサイズを200pxに固定 --- */
@media screen and (min-width: 1000px) {
    /* ロゴの外枠 */
    .vector-header-start {
        height: 200px !important; /* ここでヘッダーの高さを確保 */
    }


/* 1. PC・スマホ共通:ロゴが枠からはみ出さないようにする */
    .mw-logo, .vector-logo {
.mw-logo-wordmark {
        width: 200px !important;
    height: auto !important;
        height: 200px !important;
    max-height: 32px; /* ヘッダーの高さに合わせる */
        max-width: 200px !important;
    width: auto !important;
    }
 
    /* ロゴ画像そのもの */
    .mw-logo-icon, .mw-logo-wordmark, .mw-wiki-logo {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        background-size: contain !important;
    }
}
}


/* 2. スマホ(画面幅が720px以下)の場合の特別ルール */
/* --- 3. モバイル版(999px以下)のロゴを100pxに固定 --- */
@media screen and (max-width: 720px) {
@media screen and (max-width: 999px) {
     /* ロゴをさらに小さくして、検索窓とのスペースを作る */
     .mw-logo, .vector-logo, .mw-logo-icon, .mw-logo-wordmark {
    .mw-logo-wordmark {
         width: 100px !important;
         max-height: 24px;  
        height: 100px !important;
         max-width: 150px; /* 横幅を制限して検索窓を逃がす */
         max-width: 100px !important;
        background-size: contain !important;
     }
     }
   
}
    /* もしこれでも被るなら、スマホだけロゴを非表示にする場合は以下(予備)
 
    .mw-logo-wordmark { display: none; }
/* --- 4. 念のため広告が被らないようにヘッダーを最前面へ --- */
    */
.vector-header-container {
    z-index: 1000 !important;
    background: white !important;
}
#siteSub { display: inline !important; }
 
/* --- YouTubeをレスポンシブにする --- */
 
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
margin-bottom: 20px;
}
 
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
border: 0;
}
}

2026年2月27日 (金) 23:45時点における最新版

/* --- 1. Googleがロゴの前に割り込ませる「巨大な箱」を完全消去 --- */
.google-auto-placed, 
.vector-header-start > .google-auto-placed {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- 2. PC版(1000px以上)のロゴサイズを200pxに固定 --- */
@media screen and (min-width: 1000px) {
    /* ロゴの外枠 */
    .vector-header-start {
        height: 200px !important; /* ここでヘッダーの高さを確保 */
    }

    .mw-logo, .vector-logo {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
    }

    /* ロゴ画像そのもの */
    .mw-logo-icon, .mw-logo-wordmark, .mw-wiki-logo {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        background-size: contain !important;
    }
}

/* --- 3. モバイル版(999px以下)のロゴを100pxに固定 --- */
@media screen and (max-width: 999px) {
    .mw-logo, .vector-logo, .mw-logo-icon, .mw-logo-wordmark {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        background-size: contain !important;
    }
}

/* --- 4. 念のため広告が被らないようにヘッダーを最前面へ --- */
.vector-header-container {
    z-index: 1000 !important;
    background: white !important;
}
#siteSub { display: inline !important; }

/* --- YouTubeをレスポンシブにする --- */

.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
margin-bottom: 20px;
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
border: 0;
}