-
Notifications
You must be signed in to change notification settings - Fork 0
/
city.css
154 lines (130 loc) · 2.96 KB
/
city.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
:root {
--header-bg-color-tokyo: #00657F;
--header-bg-color-kyoto: #AF6F5D;
--header-bg-color-yokohama: #080623;
--root-bg-color: #202124;
--main-bg-color: #d1d5d7;
--material-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
}
html,
body {
width: 100%;
margin: 0px;
padding: 0px;
font-family: Segoe UI, system-ui, -apple-system, sans-serif;
background-color: var(--main-bg-color);
max-width: 600px;
overflow-x: hidden;
}
html {
background-color: var(--root-bg-color);
}
body {
margin-left: calc(50vw - 50%);
}
.global-header {
position: relative;
width: 100%;
height: 50px;
background-color: var(--header-bg-color-tokyo);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
box-shadow: var(--material-box-shadow);
@container style(--theme: tokyo) {
background-color: var(--header-bg-color-tokyo);
}
@container style(--theme: kyoto) {
background-color: var(--header-bg-color-kyoto);
}
@container style(--theme: yokohama) {
background-color: var(--header-bg-color-yokohama);
}
.global-header-title {
cursor: pointer;
}
.back {
position: absolute;
left: 20px;
cursor: pointer;
}
}
.header-container {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.header {
height: 200px;
display: grid;
grid-template-columns: 70px 1fr;
grid-gap: 20px;
.header-img>img {
width: 100%;
border-radius: 50%;
view-transition-name: transition-trigger;
}
.transition-bg-to {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: var(--header-bg-color-tokyo);
position: absolute;
z-index: -1;
view-transition-name: transition-bg;
@container style(--theme: tokyo) {
background-color: var(--header-bg-color-tokyo);
}
@container style(--theme: kyoto) {
background-color: var(--header-bg-color-kyoto);
}
@container style(--theme: yokohama) {
background-color: var(--header-bg-color-yokohama);
}
}
.header-title h1 {
font-size: 1em;
color: #313131;
}
}
& div {
display: flex;
align-items: center;
justify-content: center;
}
}
.article-container {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.article {
width: 90%;
& img {
width: 100%;
margin-top: 10px;
margin-bottom: 10px;
}
& p {
color: #2f2f2f;
}
}
}
::view-transition-group(transition-bg) {
animation-duration: 0.6s;
animation-timing-function: cubic-bezier(.09, .67, .06, 1.03);
z-index: 97;
}
::view-transition-group(transition-trigger) {
animation-duration: 0.5s;
animation-timing-function: cubic-bezier(.09, .67, .06, 1.03);
z-index: 99;
}
::view-transition-old(*),
::view-transition-new(*) {
/* Make the height the same as the group,
meaning the view size might not match its aspect-ratio. */
height: 100%;
}