Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish v2 docs #163

Open
8 of 20 tasks
trafnar opened this issue Nov 9, 2020 · 13 comments
Open
8 of 20 tasks

Finish v2 docs #163

trafnar opened this issue Nov 9, 2020 · 13 comments
Labels

Comments

@trafnar
Copy link
Contributor

trafnar commented Nov 9, 2020

@trafnar trafnar added the v2 label Nov 9, 2020
@trafnar
Copy link
Contributor Author

trafnar commented Nov 30, 2020

We should also check for broken links. I know there are some.

@trafnar
Copy link
Contributor Author

trafnar commented Dec 3, 2020

I added support for arbitrary breakpoints in css yesterday, so instead of pl@md: ... you can do pl@1024 or pl@900: ... etc. It turned out to be a very important feature while working on new scrimba site - when you want to really polish responsivity
So even if it was an experiment I know already it's a stayer
Also pl@!900 is essentially @media (max-width: 899px). All modifiers will support negation at some point
The highlighting is lagging a little behind - so these breakpoint modifiers dont look that nice in vscode atm
Anyone here have experience writing tmLanguage grammars?
We're currently using a modified version of the typescript tmLanguage in vscode-imba, and it is insanely slow. Now that vscode has added support for semantic highlighting it could be so much simpler (and thereby faster). The easiest approach might be to just start removing rules from the tmLanguage file but I suspect that it should be relatively easy to just create a new one.

This was referenced Dec 10, 2020
@ericvida
Copy link
Member

ericvida commented Dec 16, 2020

  • Explain Optional Chaining Operator:
const dogName = animals.dog?.name # JS
const dogName = animals.dog..name # IMBA ?

@ericvida
Copy link
Member

  • Document different ways to do Dynamic Styles
tag App
	def state = true
	def color = red5
	def dynamicClasses = ["primary", "secondary"]
	css h1 c:teal5
		&.optionOne	c:indigo5
	css h3 c: $variable
	css h4 c: var(--variable)
	css h5
		&.primary c:red5
		&.secondary c:purple5
	def render
		<self>
			<h1.optionOne=state> "Option one" # conditional classes
			<h2[c:{color}]> "Option Two" # dynamic Values
			<h3[$variable:color]> "Option Three" # Imba style variable syntax
			<h4{--variable:color}> "Option Four" # Css variable syntax
			<h5.{dynamicClass[0]}> "Option Four" # Dynamic Classes

@trafnar trafnar mentioned this issue Mar 8, 2021
7 tasks
@trafnar
Copy link
Contributor Author

trafnar commented May 10, 2021

@trafnar trafnar pinned this issue May 10, 2021
@trafnar
Copy link
Contributor Author

trafnar commented Jun 21, 2021

  • How to insert special characters like &nbsp;

@haikyuu
Copy link
Contributor

haikyuu commented Aug 21, 2021

@trafnar
Copy link
Contributor Author

trafnar commented Aug 27, 2021

@haikyuu
Copy link
Contributor

haikyuu commented Aug 28, 2021

You can define 'attr myattrname' on your components, or set 'html:attrname=value' on tags to set raw attributes

It already has a section in the website: https://imba.io/tags/custom-components#declaring-attributes

@ghost
Copy link

ghost commented Oct 28, 2022

We should also check for broken links. I know there are some.

I just did a link check for imba.io with the help of the W3C Link Checker, and there were no issues detected.

@ghost
Copy link

ghost commented Oct 29, 2022

I am working on a PR for global identifiers, but how are global classes, variables/constants, and functions required to start with an uppercase letter while global tags use all lowercase letters?

@haikyuu
Copy link
Contributor

haikyuu commented Oct 30, 2022

@IRod22 this only applies to tags. tag my-app makes <my-app> available in all the app as long as its file has been imported once.
export default tag App behaves like regular es modules. You need to import it in order to be able to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants