Skip to content

Commit

Permalink
add compact theme with floated action bar
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo committed Sep 2, 2018
1 parent aa515ea commit f2490fb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/styles/compact.scss
@@ -0,0 +1,2 @@
@import 'application';
@import 'compact/diff';
17 changes: 17 additions & 0 deletions app/javascript/styles/compact/diff.scss
@@ -0,0 +1,17 @@
// compact.scss
.status__action-bar {
position: absolute;
opacity: 0;
bottom: -1px;
left: 0;
right: 0;
justify-content: center;
max-height: 2px;
padding-top: 2px;
&:hover {
opacity: 0.9;
background-color: black;
max-height: 26px;
z-index: 2;
}
}
1 change: 1 addition & 0 deletions config/locales/en.yml
Expand Up @@ -868,6 +868,7 @@ en:
contrast: High contrast
default: Mastodon
mastodon-light: Mastodon (light)
compact: Compact
time:
formats:
default: "%b %d, %Y, %H:%M"
Expand Down
1 change: 1 addition & 0 deletions config/locales/ja.yml
Expand Up @@ -861,6 +861,7 @@ ja:
contrast: ハイコントラスト
default: Mastodon
mastodon-light: Mastodon (ライト)
compact: コンパクト
time:
formats:
default: "%Y年%m月%d日 %H:%M"
Expand Down
1 change: 1 addition & 0 deletions config/themes.yml
@@ -1,3 +1,4 @@
default: styles/application.scss
contrast: styles/contrast.scss
mastodon-light: styles/mastodon-light.scss
compact: styles/compact.scss

0 comments on commit f2490fb

Please sign in to comment.