tailwind-css

How to pass value from one child component to another in VueJS?

不问归期 提交于 2020-02-03 10:20:50
问题 Full source code: https://github.com/tenzan/menu-ui-tw Demo: https://flamboyant-euclid-6fcb57.netlify.com/ Goal: ItemsList and ItemImage are child components to Menu.vue . I need to pass the image_url from ItemsList to ItemImage , in order to change the image on right, after item on left is changed automatically on time intervals. Left side: component ItemsList.vue Right side: component ItemImage.vue Component Menu.vue has 2 child components: <template> <div> <!-- Two columns --> <div class=

How to left-align all list items using React Material-UI, fontAwesome icons and Tailwind.css

谁说胖子不能爱 提交于 2019-12-25 03:27:29
问题 I want to left-align the text of my list items. Currently, I have this: How can I left-align the text? import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'

CSS AutoComplete font size

此生再无相见时 提交于 2019-12-20 17:44:55
问题 I couldn't figure out how to increase or how to use the default font size for the preview text when hovering a autocomplete suggestion from the browser. I'm using https://tailwindcss.com/ for all styles. E.g.: This is my normal input element with the default font size after entering some text: And this is the font size of the preview when I hover one of the suggested autocomplete items: As you can see, the font size is much smaller than from the first image. I'm already using some CSS-snippet

Why doesn't Font Awesome work in my Shadow DOM?

半城伤御伤魂 提交于 2019-12-06 11:45:53
问题 Font Awesome is not working in my shadow DOM since I have the following in it to prevent styles from leaking in and out: :host { all: initial; /* 1st rule so subsequent properties are reset. */ display: block; contain: content; /* Boom. CSS containment FTW. */ } I'm able to use other stylesheets by just inlining them within the :host property, but that doesn't work with Font Awesome since it uses relative paths in its stylesheet. I found this post and tried it with the scoped CSS I implement,

Why doesn't Font Awesome work in my Shadow DOM?

非 Y 不嫁゛ 提交于 2019-12-04 15:39:33
Font Awesome is not working in my shadow DOM since I have the following in it to prevent styles from leaking in and out: :host { all: initial; /* 1st rule so subsequent properties are reset. */ display: block; contain: content; /* Boom. CSS containment FTW. */ } I'm able to use other stylesheets by just inlining them within the :host property, but that doesn't work with Font Awesome since it uses relative paths in its stylesheet. I found this post and tried it with the scoped CSS I implement, but the icons show as squares, as can be seen in my example . I had the same issue with StencilJS.

How to add a @tailwind CSS rule to css checker

杀马特。学长 韩版系。学妹 提交于 2019-12-03 08:49:21
问题 Tailwind adds @tailwind css at rule which is flagged as unknown. How can I avoid this error? eg styles.css @tailwind preflight; @tailwind utilities; 回答1: This is the at-rule-no-unknown rule provided by vscode's built-in list. In order to get rid of it you need to do the following: 1 . Install stylelint extension code --install-extension shinnn.stylelint 2 . Install stylelint recommended config npm install stylelint-config-recommended --save-dev 3 . Add these two lines in your vscode USER

How to add a @tailwind CSS rule to css checker

こ雲淡風輕ζ 提交于 2019-12-02 22:56:08
Tailwind adds @tailwind css at rule which is flagged as unknown. How can I avoid this error? eg styles.css @tailwind preflight; @tailwind utilities; hasusuf This is the at-rule-no-unknown rule provided by vscode's built-in list. In order to get rid of it you need to do the following: 1 . Install stylelint extension code --install-extension shinnn.stylelint 2 . Install stylelint recommended config npm install stylelint-config-recommended --save-dev 3 . Add these two lines in your vscode USER SETTINGS "css.validate": false, // Disable css built-in lint "stylelint.enable": true, // Enable