diff --git a/firebase.md b/firebase.md index f6aae58..2c9281b 100644 --- a/firebase.md +++ b/firebase.md @@ -365,6 +365,19 @@ We can add mulitple cards to this layout in this column - and control how they a We can add `` and then add additional colums with the same props to add content in a column like manner. +Important! + +If you want content to be aligned in a column with each item on a new line, then use: + +```html + + + mdi-account-circle +

Login

+``` + ## Helper classes ### Spacing @@ -484,3 +497,47 @@ The variants you can use are: You can apply these as a class to the object you want to darken/lighten. For example: `Hello` + +## Forms + +### Changing the colour of form inputs + +You can change the background colour, and the highlight colour (when clicked) with the following props: + +```html + +``` + +To change the placeholder colour you should use a custom class that overwrites this colour: + +```css +.white-placeholder ::v-deep input::placeholder { + color: white !important; + opacity: 1; +} +``` + +To change the label colour: + +```css +.white-placeholder ::v-deep .v-label { + color: white !important; + opacity: 1; +} +``` + +To change the input colour (the text that is typed in by the user) we should use another custom class: + +```css +.white-placeholder ::v-deep input { + color: white !important; + opacity: 1; +} +``` + +We have to use `::v-deep` because we are in a scoped component. Any nested css classes/variables in a scoped component will have a random id attached to them (vue does this dynamically). The `::v-deep` will make sure that the nested css gets the formatting applied. See for details. diff --git a/src/components/Appbar.vue b/src/components/Appbar.vue index c99cb01..b1fa77a 100644 --- a/src/components/Appbar.vue +++ b/src/components/Appbar.vue @@ -24,18 +24,22 @@ > - + -

Savvy Firebase Tutorial

+

Savvy Firebase Tutorial

- -

Sign In

+ +

+ Sign In +

+
+ +

Register

-

Register

@@ -67,7 +71,7 @@ export default { left: 0; right: 0; transform: scaleX(0); - transition: transform 0.5s cubic-bezier(0.95, 0.05, 0.795, 0.035); + transition: transform 0.5s cubic-bezier(0.95, 0.05, 0.795, 0.035) 50ms; } .underline:hover::after { transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1); diff --git a/src/plugins/vuetify.js b/src/plugins/vuetify.js index cffeaec..2b0d513 100644 --- a/src/plugins/vuetify.js +++ b/src/plugins/vuetify.js @@ -14,7 +14,6 @@ export default new Vuetify({ primary: "#051937", secondary: "#374366", accent: "#d4a418", - // background: "#e7efff", background: "#e8e8e8" } } diff --git a/src/scss/_variables.scss b/src/scss/_variables.scss index 708a38b..d0576d7 100644 --- a/src/scss/_variables.scss +++ b/src/scss/_variables.scss @@ -71,13 +71,13 @@ $Gilroy-BoldItalic: "Gilroy-BoldItalic", sans-serif !default; // Replace default body fonts -@import "../../node_modules/vuetify/src/styles/styles.sass"; -$body-font-family: $Gilroy-Regular; -$heading-font-family: $Gilroy-Regular; +// @import "../../node_modules/vuetify/src/styles/styles.sass"; +// $body-font-family: $Gilroy-Regular; +// $heading-font-family: $Gilroy-Regular; -@import "~vuetify/src/styles/settings/variables"; -$body-font-family: $Gilroy-Regular; -$heading-font-family: $Gilroy-Regular; +// @import "~vuetify/src/styles/settings/variables"; +// $body-font-family: $Gilroy-Regular; +// $heading-font-family: $Gilroy-Regular; // Replace typography fonts @@ -139,3 +139,6 @@ $mainColor: #323947; .theme--light.v-sheet { color: $mainColor !important; } + +$text-field-outlined-fieldset-border: white; +$btn-font-weight: 1400; diff --git a/src/views/forms/LoginForm.vue b/src/views/forms/LoginForm.vue index 36fc9fe..68b724a 100644 --- a/src/views/forms/LoginForm.vue +++ b/src/views/forms/LoginForm.vue @@ -3,15 +3,12 @@ - +

Savvy Firebase Tutorial @@ -35,16 +32,42 @@ - - -

Hello

-

Hello

-

Hello

-

Hello

-

Hello

-

Hello

+ + + mdi-account-circle + + + + Submit + +

Forgot password?

+

{{ username }}

+ @@ -55,18 +78,41 @@ export default { name: "LoginForm", data() { return { - valid: false + valid: false, + username: "", + password: "" }; } };