small vite fixes

This commit is contained in:
Luna D. 2024-04-30 09:25:23 +02:00
parent 4b3221a590
commit 044df29a38
No known key found for this signature in database
GPG key ID: 4B1C63448394F688
12 changed files with 15 additions and 15 deletions

View file

@ -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/solid.scss";

View file

@ -50,7 +50,7 @@
@include even-odd-type(warning);
@include even-odd-type(danger);
@include even-odd-type(information);
@include even-odd-type(purple);
@include even-odd-type(special);
}
@mixin animated-transition {

View file

@ -155,4 +155,4 @@
@include block-type(warning);
@include block-type(danger);
@include block-type(information);
@include block-type(purple);
@include block-type(special);

View file

@ -139,4 +139,4 @@
@include button-type(warning);
@include button-type(danger);
@include button-type(information);
@include button-type(purple);
@include button-type(special);

View file

@ -45,4 +45,4 @@
@include flash-type(warning);
@include flash-type(danger);
@include flash-type(information);
@include flash-type(purple);
@include flash-type(special);

View file

@ -37,4 +37,4 @@ h6 {
@include heading-type(warning);
@include heading-type(danger);
@include heading-type(information);
@include heading-type(purple);
@include heading-type(special);

View file

@ -36,4 +36,4 @@
@include separator-type(warning);
@include separator-type(danger);
@include separator-type(information);
@include separator-type(purple);
@include separator-type(special);

View file

@ -7,7 +7,7 @@ $danger-color: #672a21;
$warning-color: #684f2c;
$success-color: #25603e;
$information-color: #205861;
$purple-color: #561e5e;
$special-color: #561e5e;
$upvote-color: #5b9b26;
$downvote-color: #da3412;
@ -73,7 +73,7 @@ $spoiler-color: #0f0f0f;
@include type-color(warning, $warning-color);
@include type-color(danger, $danger-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(error, $tag-error-color, 37%);

View file

@ -7,7 +7,7 @@ $danger-color: #57261f;
$warning-color: #5c472a;
$success-color: #255339;
$information-color: #1f5057;
$purple-color: #501f57;
$special-color: #501f57;
$upvote-color: #5b9b26;
$downvote-color: #da3412;
@ -73,7 +73,7 @@ $spoiler-color: #0f0f0f;
@include type-color(warning, $warning-color);
@include type-color(danger, $danger-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(error, $tag-error-color, 37%);

View file

@ -1,5 +1,5 @@
= for notice <- @conn.assigns.site_notices do
.flash.flash--purple
.flash.flash--special
.flash__icon
i.fa.fa-info-circle
.flash__message

View file

@ -32,7 +32,7 @@ defmodule PhilomenaWeb.StaffView do
def category_class("Technical Team"), do: "block--warning"
def category_class("Public Relations"), do: "block--warning"
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 staff_description(%{description: desc}) when desc not in [nil, ""] do

View file

@ -119,10 +119,10 @@ defmodule PhilomenaWeb.UserAttributionView do
do: [{"label--success", "Moderator"} | labels]
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"}),
do: [{"label--purple", "Assistant"} | labels]
do: [{"label--special", "Assistant"} | labels]
defp staff_role(labels, _user),
do: labels