Add instance-ticker theme

This commit is contained in:
noellabo 2019-02-09 14:45:08 +09:00
parent ee5b2abf67
commit dbbbe9bcbe
16 changed files with 79 additions and 1 deletions

View file

@ -0,0 +1,4 @@
@import 'contrast/variables';
@import 'application';
@import 'contrast/diff';
@import url("https://inst.ance.tk/css/0.css");

View file

@ -0,0 +1,4 @@
@import 'mastodon-light/variables';
@import 'application';
@import 'mastodon-light/diff';
@import url("https://inst.ance.tk/css/0.css");

View file

@ -0,0 +1,2 @@
@import 'application';
@import url("https://inst.ance.tk/css/0.css");

View file

@ -0,0 +1,4 @@
@import 'contrast/variables';
@import 'application';
@import 'contrast/diff';
@import url("https://inst.ance.tk/css/1.css");

View file

@ -0,0 +1,4 @@
@import 'mastodon-light/variables';
@import 'application';
@import 'mastodon-light/diff';
@import url("https://inst.ance.tk/css/1.css");

View file

@ -0,0 +1,2 @@
@import 'application';
@import url("https://inst.ance.tk/css/1.css");

View file

@ -0,0 +1,4 @@
@import 'contrast/variables';
@import 'application';
@import 'contrast/diff';
@import url("https://inst.ance.tk/css/2.css");

View file

@ -0,0 +1,4 @@
@import 'mastodon-light/variables';
@import 'application';
@import 'mastodon-light/diff';
@import url("https://inst.ance.tk/css/2.css");

View file

@ -0,0 +1,2 @@
@import 'application';
@import url("https://inst.ance.tk/css/2.css");

View file

@ -0,0 +1,4 @@
@import 'contrast/variables';
@import 'application';
@import 'contrast/diff';
@import url("https://inst.ance.tk/css/3.css");

View file

@ -0,0 +1,4 @@
@import 'mastodon-light/variables';
@import 'application';
@import 'mastodon-light/diff';
@import url("https://inst.ance.tk/css/3.css");

View file

@ -0,0 +1,2 @@
@import 'application';
@import url("https://inst.ance.tk/css/3.css");

View file

@ -16,13 +16,15 @@ media_host ||= host_to_url(ENV['S3_CLOUDFRONT_HOST'])
media_host ||= host_to_url(ENV['S3_HOSTNAME']) if ENV['S3_ENABLED'] == 'true'
media_host ||= assets_host
instance_ticker_host = 'https://inst.ance.tk'
Rails.application.config.content_security_policy do |p|
p.base_uri :none
p.default_src :none
p.frame_ancestors :none
p.font_src :self, assets_host
p.img_src :self, :https, :data, :blob, assets_host
p.style_src :self, assets_host
p.style_src :self, assets_host, instance_ticker_host
p.media_src :self, :https, :data, assets_host
p.frame_src :self, :https
p.manifest_src :self, assets_host

View file

@ -1524,6 +1524,18 @@ en:
themes:
contrast: Mastodon (High contrast)
default: Mastodon (Dark)
instance-ticker-type-0-contrast: Mastodon instance ticker Type-0 (High contrast)
instance-ticker-type-0-light: Mastodon instance ticker Type-0 (Light)
instance-ticker-type-0: Mastodon instance ticker Type-0 (Dark)
instance-ticker-type-1-contrast: Mastodon instance ticker Type-1 (High contrast / Favicon Images Style)
instance-ticker-type-1-light: Mastodon instance ticker Type-1 (Light / Favicon Images Style)
instance-ticker-type-1: Mastodon instance ticker Type-1 (Dark / Favicon Images Style)
instance-ticker-type-2-contrast: Mastodon instance ticker Type-2 (High contrast / Favicon Images(White Back) Style)
instance-ticker-type-2-light: Mastodon instance ticker Type-2 (Light / Favicon Images(White Back) Style)
instance-ticker-type-2: Mastodon instance ticker Type-2 (Dark / Favicon Images(White back) Style)
instance-ticker-type-3-contrast: Mastodon instance ticker Type-3 (High contrast / Favicon Images(Black Back) Style)
instance-ticker-type-3-light: Mastodon instance ticker Type-3 (Light / Favicon Images(Black Back) Style)
instance-ticker-type-3: Mastodon instance ticker Type-3 (Dark / Favicon Images(Black back) Style)
mastodon-light: Mastodon (Light)
time:
formats:

View file

@ -1427,6 +1427,18 @@ ja:
themes:
contrast: Mastodon (ハイコントラスト)
default: Mastodon (ダーク)
instance-ticker-type-0-contrast: Mastodon instance ticker Type-0 (ハイコントラスト)
instance-ticker-type-0-light: Mastodon instance ticker Type-0 (ライト)
instance-ticker-type-0: Mastodon instance ticker Type-0 (ダーク)
instance-ticker-type-1-contrast: Mastodon instance ticker Type-1 (ハイコントラスト / Favicon Images)
instance-ticker-type-1-light: Mastodon instance ticker Type-1 (ライト / Favicon Images)
instance-ticker-type-1: Mastodon instance ticker Type-1 (ダーク / Favicon Images)
instance-ticker-type-2-contrast: Mastodon instance ticker Type-2 (ハイコントラスト / Favicon Images(White Back))
instance-ticker-type-2-light: Mastodon instance ticker Type-2 (ライト / Favicon Images(White Back))
instance-ticker-type-2: Mastodon instance ticker Type-2 (ダーク / Favicon Images(White Back))
instance-ticker-type-3-contrast: Mastodon instance ticker Type-3 (ハイコントラスト / Favicon Images(Black Back))
instance-ticker-type-3-light: Mastodon instance ticker Type-3 (ライト / Favicon Images(Black Back))
instance-ticker-type-3: Mastodon instance ticker Type-3 (ダーク / Favicon Images(Black Back))
mastodon-light: Mastodon (ライト)
time:
formats:

View file

@ -1,3 +1,15 @@
default: styles/application.scss
contrast: styles/contrast.scss
mastodon-light: styles/mastodon-light.scss
instance-ticker-type-0: styles/instance-ticker-type-0.scss
instance-ticker-type-1: styles/instance-ticker-type-1.scss
instance-ticker-type-2: styles/instance-ticker-type-2.scss
instance-ticker-type-3: styles/instance-ticker-type-3.scss
instance-ticker-type-0-contrast: styles/instance-ticker-type-0-contrast.scss
instance-ticker-type-1-contrast: styles/instance-ticker-type-1-contrast.scss
instance-ticker-type-2-contrast: styles/instance-ticker-type-2-contrast.scss
instance-ticker-type-3-contrast: styles/instance-ticker-type-3-contrast.scss
instance-ticker-type-0-light: styles/instance-ticker-type-0-light.scss
instance-ticker-type-1-light: styles/instance-ticker-type-1-light.scss
instance-ticker-type-2-light: styles/instance-ticker-type-2-light.scss
instance-ticker-type-3-light: styles/instance-ticker-type-3-light.scss