Skip to content

Commit a101719

Browse files
committed
fix 一覧・ナビゲーション周りのスタイル調整
1 parent 2c3590c commit a101719

File tree

8 files changed

+36
-34
lines changed

8 files changed

+36
-34
lines changed

src/develop/_layouts/two-column.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<div class="container py-16 md:py-20">
3535
@section("topicpath")
3636
<!-- BEGIN_MODULE Touch_NotTop -->
37-
<div class="mb-10">
37+
<div class="mb-4">
3838
@include("/include/topicpath.html")
3939
</div>
4040
<!-- END_MODULE Touch_NotTop -->

src/develop/include/entry/summary-card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- END_MODULE Touch_Keyword -->
1212

1313
<!-- BEGIN unit:loop -->
14-
<div class="grid grid-cols-12 pb-10 sm:gap-x-8 gap-y-16">
14+
<div class="grid grid-cols-12 pb-10 gap-8">
1515
<!-- BEGIN entry:loop -->
1616
<div class="flex flex-col items-start space-y-3 col-span-12 {{column_class|default('sm:col-span-6')}}">
1717
<a href="{url}" class="block w-full hover:opacity-70">

src/develop/include/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<header class="max-lg:sticky top-0 left-0 z-10 w-full bg-white">
1+
<header class="max-lg:sticky top-0 left-0 z-10 w-full shadow-sm bg-white">
22
<div class="container">
3-
<div class="flex items-center justify-between gap-x-4 w-full h-14 leading-6 text-gray-900">
3+
<div class="flex items-center justify-between gap-x-4 w-full leading-6 text-gray-900">
44
<!-- BEGIN_MODULE Blog_Field ctx="bid/1" -->
55

66
<div class="font-extrabold lg:w-auto text-2xl md:mb-0">

src/develop/include/htmx/swap-index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<!-- タグフィルター -->
2+
<div class="mb-10">
23
@include("/include/tag/filter.html")
4+
</div>
35

46
@include("/include/entry/summary-card.html", {
57
"ctx": "cid/%{CID}/page/%{PAGE}/%{DATE_YEAR}/%{DATE_MONTH}/keyword/%{KEYWORD}/tag/%{TAG}/"

src/develop/include/parts/navigation-pc.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<ul class="flex flex-wrap items-center list-none leading-6">
2-
<li class="py-2.5 font-medium text-center group">
3-
<a href="%{HOME_URL}" class="inline-flex items-center gap-2 px-5 py-2 hover:opacity-70">
1+
<ul class="flex flex-wrap items-center list-none leading-6 [&>li>a.stay]:border-b-2 [&>li>a.stay]:border-solid [&>li>a.stay]:border-indigo-600">
2+
<li class="mx-5 font-medium text-center group">
3+
<a href="%{HOME_URL}" class="<!-- BEGIN_IF [%{CCD}/neq/contact/_and_/%{ECD}/neq/profile.html] -->stay<!-- END_IF --> flex items-center gap-2 py-4 hover:opacity-70">
44
<span>Blogs</span>
55
<span class="text-gray-400 transition-transform group-hover:-rotate-180">
66
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-3">
@@ -22,13 +22,13 @@ <h2 class="inline-block mr-12 pr-12 py-2 border-r border-gray-200 font-normal">B
2222
</div>
2323
</div>
2424
</li>
25-
<li class=" my-3 font-medium text-center">
26-
<a href="%{HOME_URL}profile.html" class="px-5 py-2 no-underline bg-transparent rounded-full cursor-pointer hover:opacity-70">
25+
<li class="mx-5 font-medium text-center">
26+
<a href="%{HOME_URL}profile.html" class="js-link_match_location-full block py-4 no-underline hover:opacity-70">
2727
<span>Profile</span>
2828
</a>
2929
</li>
30-
<li class=" my-3 font-medium text-center">
31-
<a href="%{HOME_URL}contact.html" class="pl-5 py-2 no-underline bg-transparent rounded-full cursor-pointer hover:opacity-70">
30+
<li class="ml-5 font-medium text-center">
31+
<a href="%{HOME_URL}contact/" class="js-link_match_location-category block py-4 no-underline hover:opacity-70">
3232
<span>Contact</span>
3333
</a>
3434
</li>
Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
<!-- BEGIN_MODULE Tag_Filter id="{{module_id}}" -->
22
<!-- BEGIN tagBox -->
3-
<div class="mb-8">
4-
<p class="flex flex-wrap gap-2 text-xl font-bold"><!-- BEGIN selected:loop -->
5-
<span class="inline-flex items-start">#{name}</span>
6-
<!-- END selected:loop -->の検索結果</p>
3+
<p class="flex flex-wrap gap-3 text-gray-900 text-2xl font-bold"><!-- BEGIN selected:loop -->
4+
<span>#{name}</span>
5+
<!-- END selected:loop -->の検索結果</p>
76

8-
<!-- BEGIN choice:veil -->
9-
<div class="mt-3">
10-
<h2 class="text-gray-500">さらに絞り込む</h2>
11-
<ul class="flex flex-wrap gap-4 font-bold mt-2">
12-
<!-- BEGIN choice:loop -->
13-
<li>
14-
<a href="{url}" class="hover:opacity-70"
15-
hx-push-url="{url}"
16-
hx-get="{url}tpl/include/htmx/swap-index.html"
17-
hx-target="#swap-htmx"
18-
hx-swap="innerHTML"
19-
>#{name}</a>
20-
</li>
21-
<!-- END choice:loop -->
22-
</ul>
23-
</div>
24-
<!-- END choice:veil -->
25-
</p>
7+
<!-- BEGIN choice:veil -->
8+
<div class="mt-4">
9+
<h2 class="text-gray-500">さらに絞り込む</h2>
10+
<ul class="flex flex-wrap gap-x-4 gap-y-1.5 mt-2">
11+
<!-- BEGIN choice:loop -->
12+
<li>
13+
<a href="{url}" class="text-gray-900 hover:opacity-70"
14+
hx-push-url="{url}"
15+
hx-get="{url}tpl/include/htmx/swap-index.html"
16+
hx-target="#swap-htmx"
17+
hx-swap="innerHTML"
18+
>#{name}</a>
19+
</li>
20+
<!-- END choice:loop -->
21+
</ul>
2622
</div>
23+
<!-- END choice:veil -->
2724
<!-- END tagBox -->
2825
<!-- END_MODULE Tag_Filter -->

src/develop/include/topicpath.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- BEGIN_MODULE Topicpath id="{{module_id}}" -->
22
<nav aria-label="現在のページ">
3-
<ol class="inline-flex items-center flex-wrap mb-3 text-sm text-neutral-500 [&_.active-breadcrumb]:text-neutral-500/80 sm:mb-0">
3+
<ol class="inline-flex items-center flex-wrap text-sm text-neutral-500 [&_.active-breadcrumb]:text-neutral-500/80">
44
<!-- BEGIN blog:loop -->
55
<li class="flex items-center h-full"><!-- BEGIN blog:glue --><span class="mx-2 text-gray-400">/</span><!-- END blog:glue --><a href="{url}" class="py-1 hover:text-neutral-900">{name}</a></li>
66
<!-- END blog:loop --><!-- BEGIN category:loop -->

src/develop/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@extends("/_layouts/two-column.html")
22

33
@section("main")
4+
<!-- BEGIN_MODULE Touch_Category -->
5+
<h2 class="text-gray-900 font-bold text-2xl mb-10">%{CATEGORY_NAME}</h2>
6+
<!-- END_MODULE Touch_Category -->
47
<div id="swap-htmx">
58
@include("/include/htmx/swap-index.html")
69
</div>

0 commit comments

Comments
 (0)