mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
small vite fixes
This commit is contained in:
parent
4b3221a590
commit
044df29a38
12 changed files with 15 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$fa-font-path: '~@fortawesome/fontawesome-free/webfonts';
|
$fa-font-path: "@fortawesome/fontawesome-free/webfonts";
|
||||||
|
|
||||||
@import "@fortawesome/fontawesome-free/scss/fontawesome.scss";
|
@import "@fortawesome/fontawesome-free/scss/fontawesome.scss";
|
||||||
@import "@fortawesome/fontawesome-free/scss/solid.scss";
|
@import "@fortawesome/fontawesome-free/scss/solid.scss";
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
@include even-odd-type(warning);
|
@include even-odd-type(warning);
|
||||||
@include even-odd-type(danger);
|
@include even-odd-type(danger);
|
||||||
@include even-odd-type(information);
|
@include even-odd-type(information);
|
||||||
@include even-odd-type(purple);
|
@include even-odd-type(special);
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin animated-transition {
|
@mixin animated-transition {
|
||||||
|
|
|
@ -155,4 +155,4 @@
|
||||||
@include block-type(warning);
|
@include block-type(warning);
|
||||||
@include block-type(danger);
|
@include block-type(danger);
|
||||||
@include block-type(information);
|
@include block-type(information);
|
||||||
@include block-type(purple);
|
@include block-type(special);
|
||||||
|
|
|
@ -139,4 +139,4 @@
|
||||||
@include button-type(warning);
|
@include button-type(warning);
|
||||||
@include button-type(danger);
|
@include button-type(danger);
|
||||||
@include button-type(information);
|
@include button-type(information);
|
||||||
@include button-type(purple);
|
@include button-type(special);
|
||||||
|
|
|
@ -45,4 +45,4 @@
|
||||||
@include flash-type(warning);
|
@include flash-type(warning);
|
||||||
@include flash-type(danger);
|
@include flash-type(danger);
|
||||||
@include flash-type(information);
|
@include flash-type(information);
|
||||||
@include flash-type(purple);
|
@include flash-type(special);
|
||||||
|
|
|
@ -37,4 +37,4 @@ h6 {
|
||||||
@include heading-type(warning);
|
@include heading-type(warning);
|
||||||
@include heading-type(danger);
|
@include heading-type(danger);
|
||||||
@include heading-type(information);
|
@include heading-type(information);
|
||||||
@include heading-type(purple);
|
@include heading-type(special);
|
||||||
|
|
|
@ -36,4 +36,4 @@
|
||||||
@include separator-type(warning);
|
@include separator-type(warning);
|
||||||
@include separator-type(danger);
|
@include separator-type(danger);
|
||||||
@include separator-type(information);
|
@include separator-type(information);
|
||||||
@include separator-type(purple);
|
@include separator-type(special);
|
||||||
|
|
|
@ -7,7 +7,7 @@ $danger-color: #672a21;
|
||||||
$warning-color: #684f2c;
|
$warning-color: #684f2c;
|
||||||
$success-color: #25603e;
|
$success-color: #25603e;
|
||||||
$information-color: #205861;
|
$information-color: #205861;
|
||||||
$purple-color: #561e5e;
|
$special-color: #561e5e;
|
||||||
|
|
||||||
$upvote-color: #5b9b26;
|
$upvote-color: #5b9b26;
|
||||||
$downvote-color: #da3412;
|
$downvote-color: #da3412;
|
||||||
|
@ -73,7 +73,7 @@ $spoiler-color: #0f0f0f;
|
||||||
@include type-color(warning, $warning-color);
|
@include type-color(warning, $warning-color);
|
||||||
@include type-color(danger, $danger-color);
|
@include type-color(danger, $danger-color);
|
||||||
@include type-color(information, $information-color);
|
@include type-color(information, $information-color);
|
||||||
@include type-color(purple, $purple-color);
|
@include type-color(special, $special-color);
|
||||||
|
|
||||||
@include tag-color(default, $tag-default-color);
|
@include tag-color(default, $tag-default-color);
|
||||||
@include tag-color(error, $tag-error-color, 37%);
|
@include tag-color(error, $tag-error-color, 37%);
|
||||||
|
|
|
@ -7,7 +7,7 @@ $danger-color: #57261f;
|
||||||
$warning-color: #5c472a;
|
$warning-color: #5c472a;
|
||||||
$success-color: #255339;
|
$success-color: #255339;
|
||||||
$information-color: #1f5057;
|
$information-color: #1f5057;
|
||||||
$purple-color: #501f57;
|
$special-color: #501f57;
|
||||||
|
|
||||||
$upvote-color: #5b9b26;
|
$upvote-color: #5b9b26;
|
||||||
$downvote-color: #da3412;
|
$downvote-color: #da3412;
|
||||||
|
@ -73,7 +73,7 @@ $spoiler-color: #0f0f0f;
|
||||||
@include type-color(warning, $warning-color);
|
@include type-color(warning, $warning-color);
|
||||||
@include type-color(danger, $danger-color);
|
@include type-color(danger, $danger-color);
|
||||||
@include type-color(information, $information-color);
|
@include type-color(information, $information-color);
|
||||||
@include type-color(purple, $purple-color);
|
@include type-color(special, $special-color);
|
||||||
|
|
||||||
@include tag-color(default, $tag-default-color);
|
@include tag-color(default, $tag-default-color);
|
||||||
@include tag-color(error, $tag-error-color, 37%);
|
@include tag-color(error, $tag-error-color, 37%);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
= for notice <- @conn.assigns.site_notices do
|
= for notice <- @conn.assigns.site_notices do
|
||||||
.flash.flash--purple
|
.flash.flash--special
|
||||||
.flash__icon
|
.flash__icon
|
||||||
i.fa.fa-info-circle
|
i.fa.fa-info-circle
|
||||||
.flash__message
|
.flash__message
|
||||||
|
|
|
@ -32,7 +32,7 @@ defmodule PhilomenaWeb.StaffView do
|
||||||
def category_class("Technical Team"), do: "block--warning"
|
def category_class("Technical Team"), do: "block--warning"
|
||||||
def category_class("Public Relations"), do: "block--warning"
|
def category_class("Public Relations"), do: "block--warning"
|
||||||
def category_class("Moderators"), do: "block--success"
|
def category_class("Moderators"), do: "block--success"
|
||||||
def category_class("Assistants"), do: "block--purple"
|
def category_class("Assistants"), do: "block--special"
|
||||||
def category_class(_), do: ""
|
def category_class(_), do: ""
|
||||||
|
|
||||||
def staff_description(%{description: desc}) when desc not in [nil, ""] do
|
def staff_description(%{description: desc}) when desc not in [nil, ""] do
|
||||||
|
|
|
@ -119,10 +119,10 @@ defmodule PhilomenaWeb.UserAttributionView do
|
||||||
do: [{"label--success", "Moderator"} | labels]
|
do: [{"label--success", "Moderator"} | labels]
|
||||||
|
|
||||||
defp staff_role(labels, %{hide_default_role: false, role: "assistant", senior_staff: true}),
|
defp staff_role(labels, %{hide_default_role: false, role: "assistant", senior_staff: true}),
|
||||||
do: [{"label--purple", "Senior Assistant"} | labels]
|
do: [{"label--special", "Senior Assistant"} | labels]
|
||||||
|
|
||||||
defp staff_role(labels, %{hide_default_role: false, role: "assistant"}),
|
defp staff_role(labels, %{hide_default_role: false, role: "assistant"}),
|
||||||
do: [{"label--purple", "Assistant"} | labels]
|
do: [{"label--special", "Assistant"} | labels]
|
||||||
|
|
||||||
defp staff_role(labels, _user),
|
defp staff_role(labels, _user),
|
||||||
do: labels
|
do: labels
|
||||||
|
|
Loading…
Reference in a new issue