Skip to content

Commit

Permalink
Merge # 8904, 9210 to custom themes
Browse files Browse the repository at this point in the history
  • Loading branch information
yi0713 committed Nov 6, 2018
1 parent 7201287 commit 9e9543e
Show file tree
Hide file tree
Showing 9 changed files with 136 additions and 37 deletions.
2 changes: 1 addition & 1 deletion app/javascript/styles/application_light-blue.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'mastodon/mixins';
@import 'white/mixins';
@import 'light-blue/variables';
@import 'fonts/roboto';
@import 'fonts/roboto-mono';
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/application_light-grey.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'mastodon/mixins';
@import 'white/mixins';
@import 'light-grey/variables';
@import 'fonts/roboto';
@import 'fonts/roboto-mono';
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/application_pink.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'mastodon/mixins';
@import 'white/mixins';
@import 'pink/variables';
@import 'fonts/roboto';
@import 'fonts/roboto-mono';
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/application_white.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'mastodon/mixins';
@import 'white/mixins';
@import 'white/variables';
@import 'fonts/roboto';
@import 'fonts/roboto-mono';
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/application_yellow.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'mastodon/mixins';
@import 'white/mixins';
@import 'yellow/variables';
@import 'fonts/roboto';
@import 'fonts/roboto-mono';
Expand Down
43 changes: 43 additions & 0 deletions app/javascript/styles/white/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@mixin avatar-radius() {
border-radius: 4px;
background: transparent no-repeat;
background-position: 50%;
background-clip: padding-box;
}

@mixin avatar-size($size:48px) {
width: $size;
height: $size;
background-size: $size $size;
}

@mixin search-input() {
outline: 0;
box-sizing: border-box;
width: 100%;
border: none;
box-shadow: none;
font-family: inherit;
background: $ui-base-color;
color: $darker-text-color;
font-size: 14px;
margin: 0;

&::-moz-focus-inner {
border: 0;
}

&::-moz-focus-inner,
&:focus,
&:active {
outline: 0 !important;
}

&:focus {
background: darken($ui-base-color, 4%);
}

@media screen and (max-width: 600px) {
font-size: 16px;
}
}
89 changes: 62 additions & 27 deletions app/javascript/styles/white/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3022,6 +3022,26 @@ a.status-card.compact:hover {
display: block;
font-weight: 500;
margin-bottom: 10px;

.column-settings__hashtag-select {
&__control {
@include search-input();
}

&__multi-value {
background: darken($ui-base-color, 8%);
}

&__multi-value__label,
&__input {
color: $darker-text-color;
}

&__indicator-separator,
&__dropdown-indicator {
display: none;
}
}
}

.column-settings__row {
Expand Down Expand Up @@ -3473,36 +3493,10 @@ a.status-card.compact:hover {
}

.search__input {
outline: 0;
box-sizing: border-box;
display: block;
width: 100%;
border: none;
padding: 10px;
padding-right: 30px;
font-family: inherit;
background: $ui-base-color;
color: $darker-text-color;
font-size: 14px;
margin: 0;

&::-moz-focus-inner {
border: 0;
}

&::-moz-focus-inner,
&:focus,
&:active {
outline: 0 !important;
}

&:focus {
background: darken($ui-base-color, 4%);
}

@media screen and (max-width: 600px) {
font-size: 16px;
}
@include search-input();
}

.search__icon {
Expand Down Expand Up @@ -5344,6 +5338,47 @@ noscript {
}
}

.list-adder {
background: $ui-base-color;
flex-direction: column;
border-radius: 8px;
box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
width: 380px;
overflow: hidden;

@media screen and (max-width: 420px) {
width: 90%;
}

&__account {
background: darken($ui-base-color, 13%);
}

&__lists {
background: darken($ui-base-color, 13%);
height: 50vh;
border-radius: 0 0 8px 8px;
overflow-y: auto;
}

.list {
padding: 10px;
border-bottom: 1px solid darken($ui-base-color, 8%);
}

.list__wrapper {
display: flex;
}

.list__display-name {
flex: 1 1 auto;
overflow: hidden;
text-decoration: none;
font-size: 16px;
padding: 10px;
}
}

.focal-point-modal {
max-width: 80vw;
max-height: 80vh;
Expand Down
9 changes: 4 additions & 5 deletions app/javascript/styles/white/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ table {
}

html {
scrollbar-face-color: darken($ui-base-color, 4%);
scrollbar-track-color: rgba($base-overlay-background, 0.1);
scrollbar-color: darken($ui-base-color, 4%) transparent;
}

::-webkit-scrollbar {
Expand All @@ -64,17 +63,17 @@ html {
}

::-webkit-scrollbar-thumb {
background: darken($ui-base-color, 8%);
background: darken($ui-base-color, 4%);
border: 0px none $base-border-color;
border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
background: darken($ui-base-color, 12%);
background: darken($ui-base-color, 6%);
}

::-webkit-scrollbar-thumb:active {
background: darken($ui-base-color, 8%);
background: darken($ui-base-color, 4%);
}

::-webkit-scrollbar-track {
Expand Down
22 changes: 22 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@
"@emotion/babel-utils@^0.6.4":
version "0.6.9"
resolved "https://registry.yarnpkg.com/@emotion/babel-utils/-/babel-utils-0.6.9.tgz#bb074fadad65c443a575d3379488415fd194fc75"
integrity sha512-QN2+TP+x5QWuOGUv8TZwdMiF8PHgBQiLx646rKZBnakgc9gLYFi+gsROVxE6YTNHSaEv0fWsFjDasDyiWSJlDg==
dependencies:
"@emotion/hash" "^0.6.5"
"@emotion/memoize" "^0.6.5"
Expand All @@ -745,14 +746,17 @@
"@emotion/hash@^0.6.2", "@emotion/hash@^0.6.5":
version "0.6.5"
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.6.5.tgz#097729b84a5164f71f9acd2570ecfd1354d7b360"
integrity sha512-JlZbn5+adseTdDPTUkx/O1/UZbhaGR5fCLLWQDCIJ4eP9fJcVdP/qjlTveEX6mkNoJHWFbZ47wArWQQ0Qk6nMA==

"@emotion/memoize@^0.6.1", "@emotion/memoize@^0.6.5":
version "0.6.5"
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.6.5.tgz#f868c314b889e7c3d84868a1d1cc323fbb40ca86"
integrity sha512-n1USr7yICA4LFIv7z6kKsXM8rZJxd1btKCBmDewlit+3OJ2j4bDfgXTAxTHYbPkHS/eztHmFWfsbxW2Pu5mDqA==

"@emotion/serialize@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.9.0.tgz#ac5577cb98c7557c1a24a94cc101c5da6dc18322"
integrity sha512-ScuBRGxHCyAEN8YgQSsxtG5ddmP9+Of8WkxC7hidhGTxKhq3lgeCu5cFk2WdAMrpYgEd0U4g4QW/1YrCOGpAsA==
dependencies:
"@emotion/hash" "^0.6.5"
"@emotion/memoize" "^0.6.5"
Expand All @@ -762,18 +766,22 @@
"@emotion/stylis@^0.6.10":
version "0.6.12"
resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.6.12.tgz#3fb58220e0fc9e380bcabbb3edde396ddc1dfe6e"
integrity sha512-yS+t7l5FeYeiIyADyqjFBJvdotpphHb2S3mP4qak5BpV7ODvxuyAVF24IchEslW+A1MWHAhn5SiOW6GZIumiEQ==

"@emotion/stylis@^0.7.0":
version "0.7.0"
resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.7.0.tgz#4c30e6fccc9555e42fa6fef98b3bd0788b954684"
integrity sha512-DTq3Wo4p63JoogA5TaVKZHj7QcU32kRF+iKLWJnfGlIw4S+v90rVHX8pLQETKILWXk05iZ2b0KUKFMTAHYbytw==

"@emotion/unitless@^0.6.2", "@emotion/unitless@^0.6.6":
version "0.6.6"
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.6.6.tgz#988957ecd0a9be00ee9de27172f8c56d41595a93"
integrity sha512-zbd1vXRpGWCgDLsXqITReL+eqYJ95PYyWrVCCuMLBDb2LGA/HdxrZHJri6Fe+tKHihBOiCK1kbu+3Ij8aNEjzA==

"@emotion/utils@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.8.1.tgz#f3a81587ad8d0ef33cdad6f3b4310774fcc1053e"
integrity sha512-dEv1n+IFtlvLQ8/FsTOtBCC1aNT4B5abE8ODF5wk2tpWnjvgGNRMvHCeJGbVHjFfer4h8MH2w9c2/6eoJHclMg==

"@types/node@*":
version "10.9.4"
Expand Down Expand Up @@ -1442,6 +1450,7 @@ babel-messages@^6.23.0:
babel-plugin-emotion@^9.2.9:
version "9.2.9"
resolved "https://registry.yarnpkg.com/babel-plugin-emotion/-/babel-plugin-emotion-9.2.9.tgz#7b3c72fd6a333127abafe7fb693bcb421e7f5b9f"
integrity sha512-7yefD/nl7zaCaD281JY4zRbMhBE1GnI1/8i+UREjMPDfOSkIC/WEDY/fGKD21T2nnV9LH68OwIby+7l5yjNTpg==
dependencies:
"@babel/helper-module-imports" "^7.0.0"
"@emotion/babel-utils" "^0.6.4"
Expand Down Expand Up @@ -1510,6 +1519,7 @@ babel-plugin-react-intl@^3.0.0:
babel-plugin-syntax-jsx@^6.18.0:
version "6.18.0"
resolved "http://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=

babel-plugin-syntax-object-rest-spread@^6.13.0:
version "6.13.0"
Expand Down Expand Up @@ -2393,6 +2403,7 @@ create-ecdh@^4.0.0:
create-emotion@^9.2.6:
version "9.2.6"
resolved "https://registry.yarnpkg.com/create-emotion/-/create-emotion-9.2.6.tgz#f64cf1c64cf82fe7d22725d1d77498ddd2d39edb"
integrity sha512-4g46va26lw6DPfKF7HeWY3OI/qoaNSwpvO+li8dMydZfC6f6+ZffwlYHeIyAhGR8Z8C8c0H9J1pJbQRtb9LScw==
dependencies:
"@emotion/hash" "^0.6.2"
"@emotion/memoize" "^0.6.1"
Expand Down Expand Up @@ -2596,6 +2607,7 @@ csstype@^2.2.0:
csstype@^2.5.2:
version "2.5.7"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.7.tgz#bf9235d5872141eccfb2d16d82993c6b149179ff"
integrity sha512-Nt5VDyOTIIV4/nRFswoCKps1R5CD1hkiyjBE9/thNaNZILLEviVw9yWQw15+O+CpNjQKB/uvdcxFFOrSflY3Yw==

currently-unhandled@^0.4.1:
version "0.4.1"
Expand Down Expand Up @@ -3026,6 +3038,7 @@ emojis-list@^2.0.0:
emotion@^9.1.2:
version "9.2.9"
resolved "https://registry.yarnpkg.com/emotion/-/emotion-9.2.9.tgz#c2028705acc60a138ecb69d3fc1d2056764f61a1"
integrity sha512-G5qJxf8hVWzYWmfmYt6LDTaYd4SmW+urh3Ls/nx67w5wKFJ/HjOHVh7ms0hL0U2008hOWXct6zOSQDJGsGjoxA==
dependencies:
babel-plugin-emotion "^9.2.9"
create-emotion "^9.2.6"
Expand Down Expand Up @@ -3760,6 +3773,7 @@ find-cache-dir@^2.0.0:
find-root@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4"
integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==

find-up@^1.0.0:
version "1.1.2"
Expand Down Expand Up @@ -5894,6 +5908,7 @@ mem@^4.0.0:
memoize-one@^4.0.0:
version "4.0.2"
resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-4.0.2.tgz#3fb8db695aa14ab9c0f1644e1585a8806adc1aee"
integrity sha512-ucx2DmXTeZTsS4GPPUZCbULAN7kdPT1G+H49Y34JjbQ5ESc6OGhVxKvb1iKhr9v19ZB9OtnHwNnhUnNR/7Wteg==

memory-fs@^0.4.0, memory-fs@~0.4.1:
version "0.4.1"
Expand Down Expand Up @@ -6401,6 +6416,7 @@ nopt@^4.0.1:
nopt@~1.0.10:
version "1.0.10"
resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee"
integrity sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=
dependencies:
abbrev "1"

Expand Down Expand Up @@ -7856,6 +7872,7 @@ react-immutable-pure-component@^1.1.1:
react-input-autosize@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/react-input-autosize/-/react-input-autosize-2.2.1.tgz#ec428fa15b1592994fb5f9aa15bb1eb6baf420f8"
integrity sha512-3+K4CD13iE4lQQ2WlF8PuV5htfmTRLH6MDnfndHM6LuBRszuXnuyIfE7nhSKt8AzRBZ50bu0sAhkNMeS5pxQQA==
dependencies:
prop-types "^15.5.8"

Expand Down Expand Up @@ -7972,6 +7989,7 @@ react-router@^4.3.1:
react-select@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/react-select/-/react-select-2.0.0.tgz#7e7ba31eff360b37ffc52b343a720f4248bd9b3b"
integrity sha512-i2yWg8tbsY37iPimIvQ0TtIrAzxgGWQTRDZrZPQ2QVNkyHPxDartMkzf2x2Enm6wRkt9I5+pEKSIcvkwIkkiAQ==
dependencies:
classnames "^2.2.5"
emotion "^9.1.2"
Expand Down Expand Up @@ -8939,6 +8957,7 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
source-map@^0.7.2:
version "0.7.3"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==

spdx-correct@^3.0.0:
version "3.0.0"
Expand Down Expand Up @@ -9224,10 +9243,12 @@ style-loader@^0.23.0:
stylis-rule-sheet@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz#44e64a2b076643f4b52e5ff71efc04d8c3c4a430"
integrity sha512-nTbZoaqoBnmK+ptANthb10ZRZOGC+EmTLLUxeYIuHNkEKcmKgXX1XWKkUBT2Ac4es3NybooPe0SmvKdhKJZAuw==

stylis@^3.5.0:
version "3.5.3"
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.3.tgz#99fdc46afba6af4deff570825994181a5e6ce546"
integrity sha512-TxU0aAscJghF9I3V9q601xcK3Uw1JbXvpsBGj/HULqexKOKlOEzzlIpLFRbKkCK990ccuxfXUqmPbIIo7Fq/cQ==

substring-trie@^1.0.2:
version "1.0.2"
Expand Down Expand Up @@ -9432,6 +9453,7 @@ to-regex@^3.0.1, to-regex@^3.0.2:
touch@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/touch/-/touch-1.0.0.tgz#449cbe2dbae5a8c8038e30d71fa0ff464947c4de"
integrity sha1-RJy+LbrlqMgDjjDXH6D/RklHxN4=
dependencies:
nopt "~1.0.10"

Expand Down

0 comments on commit 9e9543e

Please sign in to comment.