コピペ用CSS集

スムーススクロール
html {
	scroll-behavior: smooth;
}
リストスタイル四角
list-style: square;
リストスタイルデフォルト内側
list-style: inside;
first-child
first-child {
last-child
last-child
before
:before {
	position: absolute;
	content: '';
	top: 0;
上下センターのCSS(例:15vwの高さ/2)
padding-top: calc(15vw / 2);
縦文字

	-ms-writing-mode: tb-rl;
	writing-mode: vertical-rl;
1番目以降の要素
:nth-child(2) {
}
三角形(上・左下・右下)
clip-path: polygon(100% 0, 50% 100%, 0 100%);
強制的に適用
!important;
importantに似たような変更疑似クラス
:has()
phpのコード
テーマまでのURL
?php bloginfo('template_directory'); ?
サイトのURL
?php echo esc_url( home_url('') ); ?
robotの設定
nofollow
all
横幅を100%にする
width: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;

ビジュアルコードエディターで余計な行を削除する
[置換]
上段 ^\n
下段 未入力(空白)