added font-awesome for icons
This commit is contained in:
parent
2c9c076213
commit
879e1717ee
@ -501,6 +501,7 @@ instance Yesod UniWorX where
|
|||||||
addStylesheet $ StaticR css_tabber_css
|
addStylesheet $ StaticR css_tabber_css
|
||||||
addStylesheet $ StaticR css_fonts_css
|
addStylesheet $ StaticR css_fonts_css
|
||||||
addStylesheet $ StaticR css_icons_css
|
addStylesheet $ StaticR css_icons_css
|
||||||
|
addStylesheet $ StaticR css_fontawesome_css
|
||||||
$(widgetFile "default-layout")
|
$(widgetFile "default-layout")
|
||||||
$(widgetFile "standalone/modal")
|
$(widgetFile "standalone/modal")
|
||||||
$(widgetFile "standalone/showHide")
|
$(widgetFile "standalone/showHide")
|
||||||
@ -689,19 +690,19 @@ defaultLinks = -- Define the menu items of the header.
|
|||||||
}
|
}
|
||||||
, NavbarAside $ MenuItem
|
, NavbarAside $ MenuItem
|
||||||
{ menuItemLabel = "Kurse"
|
{ menuItemLabel = "Kurse"
|
||||||
, menuItemIcon = Just "book"
|
, menuItemIcon = Just "calendar-alt"
|
||||||
, menuItemRoute = CourseListR -- should be CourseListActiveR or similar in the future
|
, menuItemRoute = CourseListR -- should be CourseListActiveR or similar in the future
|
||||||
, menuItemAccessCallback' = return True
|
, menuItemAccessCallback' = return True
|
||||||
}
|
}
|
||||||
, NavbarAside $ MenuItem
|
, NavbarAside $ MenuItem
|
||||||
{ menuItemLabel = "Semester"
|
{ menuItemLabel = "Semester"
|
||||||
, menuItemIcon = Just "education"
|
, menuItemIcon = Just "graduation-cap"
|
||||||
, menuItemRoute = TermShowR
|
, menuItemRoute = TermShowR
|
||||||
, menuItemAccessCallback' = return True
|
, menuItemAccessCallback' = return True
|
||||||
}
|
}
|
||||||
, NavbarAside $ MenuItem
|
, NavbarAside $ MenuItem
|
||||||
{ menuItemLabel = "Benutzer"
|
{ menuItemLabel = "Benutzer"
|
||||||
, menuItemIcon = Just "group"
|
, menuItemIcon = Just "users"
|
||||||
, menuItemRoute = UsersR
|
, menuItemRoute = UsersR
|
||||||
, menuItemAccessCallback' = return True -- Creates a LOOP: (Authorized ==) <$> isAuthorized UsersR False
|
, menuItemAccessCallback' = return True -- Creates a LOOP: (Authorized ==) <$> isAuthorized UsersR False
|
||||||
}
|
}
|
||||||
|
|||||||
5
static/css/fontawesome.css
vendored
Normal file
5
static/css/fontawesome.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,9 +1,29 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Glyphicons Halflings';
|
font-family: 'Glyphicons Halflings';
|
||||||
src: url('../fonts/glyphicons-halflings-regular.eot');
|
src: url('../fonts/glyphicons/glyphicons-halflings-regular.eot');
|
||||||
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
|
src: url('../fonts/glyphicons/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
|
||||||
url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),
|
url('../fonts/glyphicons/glyphicons-halflings-regular.woff2') format('woff2'),
|
||||||
url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
|
url('../fonts/glyphicons/glyphicons-halflings-regular.woff') format('woff'),
|
||||||
url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
|
url('../fonts/glyphicons/glyphicons-halflings-regular.ttf') format('truetype'),
|
||||||
url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
|
url('../fonts/glyphicons/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com
|
||||||
|
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||||
|
*/
|
||||||
|
@font-face{
|
||||||
|
font-family:"Font Awesome 5 Free";
|
||||||
|
font-style:normal;
|
||||||
|
font-weight:900;
|
||||||
|
src:url(../fonts/fontawesome/fa-solid-900.eot);
|
||||||
|
src:url(../fonts/fontawesome/fa-solid-900.eot?#iefix) format("embedded-opentype"),
|
||||||
|
url(../fonts/fontawesome/fa-solid-900.woff2) format("woff2"),
|
||||||
|
url(../fonts/fontawesome/fa-solid-900.woff) format("woff"),
|
||||||
|
url(../fonts/fontawesome/fa-solid-900.ttf) format("truetype"),
|
||||||
|
url(../fonts/fontawesome/fa-solid-900.svg#fontawesome) format("svg");
|
||||||
|
}
|
||||||
|
.fa,.fas{
|
||||||
|
font-family:"Font Awesome 5 Free";
|
||||||
|
font-weight:900;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
static/fonts/fontawesome/fa-solid-900.eot
Normal file
BIN
static/fonts/fontawesome/fa-solid-900.eot
Normal file
Binary file not shown.
2231
static/fonts/fontawesome/fa-solid-900.svg
Normal file
2231
static/fonts/fontawesome/fa-solid-900.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 579 KiB |
BIN
static/fonts/fontawesome/fa-solid-900.ttf
Normal file
BIN
static/fonts/fontawesome/fa-solid-900.ttf
Normal file
Binary file not shown.
BIN
static/fonts/fontawesome/fa-solid-900.woff
Normal file
BIN
static/fonts/fontawesome/fa-solid-900.woff
Normal file
Binary file not shown.
BIN
static/fonts/fontawesome/fa-solid-900.woff2
Normal file
BIN
static/fonts/fontawesome/fa-solid-900.woff2
Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Reference in New Issue
Block a user