Skip to content

Commit a81fb59

Browse files
committed
iframeとカテゴリのスタイル
1 parent 4998f75 commit a81fb59

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

blocks/linkcard/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function OR_linkcard($attributes)
2323
preg_match("/<title>(.*?)</title>/", $page, $res);
2424
$tags = get_meta_tags($url);
2525
$description = @$tags["description"] ? $tags["description"] : "NULL";
26-
$title = $res[1];
26+
$title = $res[1] ? $res[1] : $url;
2727
$html = "";
2828
$html .=
2929
'<a href="' .

inc/customizer.php

-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ function or_customize($wp_customize)
322322
]);
323323

324324
$wp_customize->add_setting("or_sns_services", [
325-
"default" => ["twitter", "facebook", "hatena", "pocket", "line", "url"],
326325
"sanitize_callback" => "OR_sanitize_multiple_checkbox",
327326
]);
328327
$wp_customize->add_control(

style.css

+21-3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ a {
3232
a:hover {
3333
opacity: 0.7;
3434
}
35+
iframe {
36+
height:100%;
37+
width:100%;
38+
position: absolute;
39+
}
40+
.wp-block-embed__wrapper {
41+
position: relative;
42+
padding-bottom: 56.25%;
43+
height:0;
44+
}
3545

3646
/* header */
3747
header {
@@ -349,6 +359,10 @@ main {
349359
text-align: left;
350360
margin-top: 2em;
351361
margin-bottom: 2em;
362+
display: block;
363+
overflow-x: scroll;
364+
white-space: nowrap;
365+
-webkit-overflow-scrolling: touch;
352366
}
353367
.content.article thead {
354368
border-style: solid;
@@ -357,11 +371,11 @@ main {
357371
border-bottom-color: #d1d5db;
358372
}
359373
.content.article table th {
360-
padding-right: 0.5rem;
374+
padding-right: 0.75rem;
361375
padding-bottom: 1rem;
362376
}
363377
.content.article table td {
364-
padding: 1rem 0.5rem;
378+
padding: 1rem 0.75rem;
365379
padding-left: 0;
366380
}
367381
.content.article table tr {
@@ -559,7 +573,8 @@ a.url:not(cite a) {
559573
display: flex;
560574
flex-direction: row;
561575
align-items: center;
562-
gap:1rem;
576+
flex-wrap: wrap;
577+
gap:0.25rem 1rem;
563578
}
564579
.content.article .author .details p {
565580
font-size: 1.25rem;
@@ -670,6 +685,9 @@ li.widget {
670685
.widget .wp-block-latest-comments {
671686
padding: 0;
672687
}
688+
.widget .cat-item .children {
689+
margin-left:1rem;
690+
}
673691

674692
/* pagination */
675693
.pagination {

0 commit comments

Comments
 (0)