summaryrefslogtreecommitdiff
path: root/src/client/style.scss
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-10 12:40:50 +0900
committerGitHub <noreply@github.com>2021-04-10 12:40:50 +0900
commitd3fe02fb3e8dd7bfc45c246d54d45acccd5959c7 (patch)
tree4cd72e5e5868e89ef3dd83ada99495da2bd7cd85 /src/client/style.scss
parentFix punycode deprecation warning (#7426) (diff)
downloadmisskey-d3fe02fb3e8dd7bfc45c246d54d45acccd5959c7.tar.gz
misskey-d3fe02fb3e8dd7bfc45c246d54d45acccd5959c7.tar.bz2
misskey-d3fe02fb3e8dd7bfc45c246d54d45acccd5959c7.zip
Default UI redesign (#7429)
* wip * wip * wip * wip * Update default.sidebar.vue * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update sticky-sidebar.ts * wip * wip * Update messaging-room.form.vue * Update timeline.vue
Diffstat (limited to 'src/client/style.scss')
-rw-r--r--src/client/style.scss91
1 files changed, 36 insertions, 55 deletions
diff --git a/src/client/style.scss b/src/client/style.scss
index b6a83d967e..f2a3682e47 100644
--- a/src/client/style.scss
+++ b/src/client/style.scss
@@ -242,11 +242,21 @@ hr {
//border: var(--panelBorder);
box-shadow: var(--panelShadow);
overflow: hidden;
+ overflow: clip;
+}
+
+._block {
+ @extend ._panel;
+}
+
+._isolated {
+ margin: var(--margin) 0;
}
._card {
@extend ._panel;
+ // TODO: _cardTitle に
> ._title {
margin: 0;
padding: 22px 32px;
@@ -262,6 +272,7 @@ hr {
}
}
+ // TODO: _cardContent に
> ._content {
padding: 32px;
@@ -274,12 +285,13 @@ hr {
}
& + ._content {
- border-top: solid 1px var(--divider);
+ border-top: solid 0.5px var(--divider);
}
}
+ // TODO: _cardFooter に
> ._footer {
- border-top: solid 1px var(--divider);
+ border-top: solid 0.5px var(--divider);
padding: 24px 32px;
@media (max-width: 500px) {
@@ -288,26 +300,6 @@ hr {
}
}
-._noGap_ ._list_ {
- @extend ._panel;
-
- > * {
- margin: 0 !important;
- border: none;
- border-bottom: solid 1px var(--divider);
- border-radius: 0;
- box-shadow: none;
- }
-}
-
-._inContainer_ ._list_ > * {
- margin: 0 !important;
- border: none;
- border-bottom: solid 1px var(--divider);
- border-radius: 0;
- box-shadow: none;
-}
-
._borderButton {
@extend ._button;
display: block;
@@ -315,7 +307,7 @@ hr {
padding: 10px;
box-sizing: border-box;
text-align: center;
- border: solid 1px var(--divider);
+ border: solid 0.5px var(--divider);
border-radius: var(--radius);
&:active {
@@ -329,47 +321,36 @@ hr {
contain: content;
}
-._section {
- padding: var(--section-padding, 32px);
-
- &:empty {
- display: none;
- }
+._root {
+ box-sizing: border-box;
+ margin: var(--root-margin, 32px) auto;
+ max-width: min(var(--baseContentWidth), calc(100% - (var(--root-margin, 32px) * 2)));
- &:not(:empty) + ._section {
- border-top: solid 1px var(--divider);
+ ._hr {
+ margin: var(--margin) calc(var(--root-margin, 32px) * -1);
}
@media (max-width: 500px) {
- padding: var(--section-padding, 10px);
-
- > ._title {
- font-size: 1.1em;
- font-weight: bold;
- }
- }
-
- > ._title,
- > ._content {
- box-sizing: border-box;
- max-width: var(--baseContentWidth);
- margin: 0 auto;
+ --root-margin: 10px;
}
+}
- > ._title {
- margin-bottom: 24px;
- font-weight: bold;
- }
+._flat_ {
+ --root-margin: 0;
+ --baseContentWidth: 100%;
+ --panelShadow: none;
- &._fitBottom {
- padding-bottom: 0;
+ ._block {
+ //border-top: solid 0.5px var(--divider);
+ //border-bottom: solid 0.5px var(--divider);
+ border-radius: 0;
+ box-shadow: none;
}
-}
-._narrow_ ._section {
- > ._title {
- padding: 8px;
- font-size: 1em;
+ @media (max-width: 500px) {
+ ._root {
+ --root-margin: 0;
+ }
}
}