Skip to content
Snippets Groups Projects
Commit 1223d582 authored by Scott Berg's avatar Scott Berg
Browse files

Update component to use CSS variables

parent 174e652f
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ Use the component's HTML tag wherever you want: ...@@ -17,7 +17,7 @@ Use the component's HTML tag wherever you want:
login-url="" login-url=""
logout-url="" logout-url=""
session-endpoint="" session-endpoint=""
open-right="" open-right
> >
</myuw-profile> </myuw-profile>
``` ```
...@@ -32,3 +32,10 @@ Use the component's HTML tag wherever you want: ...@@ -32,3 +32,10 @@ Use the component's HTML tag wherever you want:
#### Slots #### Slots
- **Profile Navigation Item (nav-item):** Add a custom item to the profile button's navigation menu, this slot expects an `<a>` tag - **Profile Navigation Item (nav-item):** Add a custom item to the profile button's navigation menu, this slot expects an `<a>` tag
#### CSS Variables
- `--myuw-profile-font`: Set the font stack for this component
- `--myuw-profile-login-color`: Se the font color for the "Login" button
For more information about CSS variables and how they work with MyUW Web Components, [reference the styles component](https://github.com/myuw-web-components/myuw-app-styles "reference the styles component")
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
margin: 0; margin: 0;
} }
</style> </style>
<script src="https://unpkg.com/@myuw-web-components/myuw-app-styles/myuw-app-styles.js"></script>
<link rel="import" href="https://unpkg.com/@myuw-web-components/myuw-app-bar@1.0.0/myuw-app-bar.html"> <link rel="import" href="https://unpkg.com/@myuw-web-components/myuw-app-bar@1.0.0/myuw-app-bar.html">
<link rel="import" href="myuw-profile.html"> <link rel="import" href="myuw-profile.html">
......
<!DOCTYPE html> <!DOCTYPE html>
<template id="myuw-profile-template"> <template id="myuw-profile-template">
<style> <style>
#myuw-profile-login { #myuw-profile-login {
font-family: 'Montserrat', 'Roboto', Arial, sans-serif; font-family: var( --myuw-profile-font, var(--myuw-font, 'Montserrat', 'Roboto', Arial, sans-serif) );
text-transform: uppercase; text-transform: uppercase;
text-decoration: none; text-decoration: none;
color: white; color: var( --myuw-profile-login-color, var(--myuw-primary-color, white) );
padding: 10px 13px; padding: 10px 13px;
font-weight: bold; font-weight: bold;
letter-spacing: 0px; letter-spacing: 0px;
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
margin: 0; margin: 0;
font-weight: 500; font-weight: 500;
font-size: 18px; font-size: 18px;
font-family: 'Montserrat', 'Roboto', Arial, sans-serif; font-family: var( --myuw-profile-font, var(--myuw-font, 'Montserrat', 'Roboto', Arial, sans-serif) );
user-select: none; user-select: none;
color: white; color: white;
text-transform: capitalize; text-transform: capitalize;
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
position: absolute; position: absolute;
top: 45px; top: 45px;
right: 0; right: 0;
background-color:white;
min-width: 320px; min-width: 320px;
color: black; color: black;
list-style: none; list-style: none;
...@@ -95,7 +94,7 @@ ...@@ -95,7 +94,7 @@
transition: all .3s ease; transition: all .3s ease;
position: relative; position: relative;
font-size: 15px; font-size: 15px;
font-family: 'Montserrat', 'Roboto', Arial, sans-serif; font-family: var( --myuw-profile-font, var(--myuw-font, 'Montserrat', 'Roboto', Arial, sans-serif) );
display: block; display: block;
padding: 14px 16px; padding: 14px 16px;
color: black; color: black;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment