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

Template Style mapping dictionary #129

Closed
RaymondChameleon opened this issue May 22, 2014 · 7 comments
Closed

Template Style mapping dictionary #129

RaymondChameleon opened this issue May 22, 2014 · 7 comments

Comments

@RaymondChameleon
Copy link

RaymondChameleon commented May 22, 2014

Hi Team,
wondering if there's a Styling Mapping dictionary for Silex template creation?
Things like this from the existing template:

"editable-style"
"image-element"
"page-home"
"paged-element"
Will be great to have such information available which will convenient ppl creating template for this cool engine.

Chrs
Ray

@lexoyo
Copy link
Member

lexoyo commented May 22, 2014

Cool, good idea!
As far as I know, there are the text styles (which you can use in the text editor, they appear in the "style" drop down list)

.title,
.heading1,
.heading2,
.heading3,
.normal {
    /* text styles */
}

And the elements classes

.container-element,
.image-element,
.text-element,
.html-element{
    /* elements by type (container, image, text, html box) */
}
[data-silex-href]
a{
    /* links before and after the site is published */
}
.editable-style{
    /* all editable elements */
}
.paged-element{
    /* elements visible only on some pages */
}
.paged-element-visible{
    /* elements of the current page */
}
.page-link-active{
    /* internal links which lead to the current page */
}

And the "special" classes used by Silex for editing

.loading-image{
    /* the element which appears in Silex editor while an image is loading */
}
.silex-selected{
    /* currently selected elements in Silex editor */
}
.silex-runtime{
    /* css class applied to the body only outside Silex editor (when the site is live) */
}

@RaymondChameleon
Copy link
Author

Fantastic Lexa, exactly what I want, You Are the Champion!!

@RaymondChameleon
Copy link
Author

I reopen this tix may help others or along the updates it may apply more new tags upcomming.

@lexoyo
Copy link
Member

lexoyo commented May 23, 2014

👍

@Stuff31
Copy link

Stuff31 commented May 26, 2014

Hi,

I would like to add font styles in the text editor.

.heading4,
.heading5,
.heading6,

... etc.

Is that possible?

@singchan
Copy link
Contributor

I do not think so :-/

But what I do is add a class to define what type of text block it is (nav, footer, ...) and I define different styles for each one

.nav .heading1,
.nav .heading2,
.nav .heading3 {
   /* ... */
}
.footer .heading1,
.footer .heading2,
.footer .heading3 {
   /* ... */
}

@Stuff31
Copy link

Stuff31 commented Jun 2, 2014

Ok, I did it that way too.
thank you singchan

@lexoyo lexoyo changed the title Template Style mapping dictionary Template Style mapping dictionary Oct 3, 2014
@lexoyo lexoyo removed the sticky label Apr 27, 2019
@silexlabs silexlabs locked and limited conversation to collaborators Nov 30, 2022
@lexoyo lexoyo converted this issue into discussion #1358 Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants