diff --git a/firebase.md b/firebase.md index 2c9281b..bb45945 100644 --- a/firebase.md +++ b/firebase.md @@ -322,6 +322,16 @@ A container should be used whenever you want to use `` and ``. To - `fill-height` - `fluid`. +To make content fill the width of the element it is in, you can use the following css: + +```css +.full-width { + width: 100%; +} +``` + +`width` sets the element to the percentage of its parent. So to have a textbox fill the width of the v-card element it is in you should set the ``, `` and `` to `width: 100%;`. As long as the parent elements have 100%, you can set the text input to be a percentage of this, say 50%. + ## Multi column layouts An example can be found here: @@ -513,7 +523,7 @@ You can change the background colour, and the highlight colour (when clicked) wi > ``` -To change the placeholder colour you should use a custom class that overwrites this colour: +To change the placeholder (text) colour you should use a custom class that overwrites this colour: ```css .white-placeholder ::v-deep input::placeholder { @@ -522,7 +532,7 @@ To change the placeholder colour you should use a custom class that overwrites t } ``` -To change the label colour: +To change the label (text) colour: ```css .white-placeholder ::v-deep .v-label { @@ -541,3 +551,57 @@ To change the input colour (the text that is typed in by the user) we should use ``` 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. + +## Overwriting sass/scss variables + + + +Create a `_variables.scss` in `./src/scss`. + +If Vuetify is installed through the Vuetify CLI then this `scss` file will be automatically bootstrapped into the App. If you want to write additional sheets then you should edit the `vue.config.js` file and add the following to `module.exports`: + +```scss +module.exports = { + css: { + loaderOptions: { + scss: { + prependData: ` + @import "@/scss/_variables.scss"; + ` + } + } + }, + transpileDependencies: ["vuetify"] +}; +``` + +Overwriting `sass` variables is easy. You need to simply define them in this `_variables.scss` file and they will be used in the main app. + +You can find a list of default variables . + +Or you can use the variables defined in the `sass` section of the components api documentation. + +## Slots + +When using slots in Vuetify find the slot name from the api documentation. + +To use a slot, you should create a `