This will be a knowledge base for using Design Studio. Please view below for:
Colour Scheme
Responsive Classes
Custom Components
Images
Icons
Files
Frequently Asked Questions
The website uses a framework called Bootstrap.
Classes to adjust the size of columns (grid)
xs <576px |
sm ≥576px |
md ≥768px |
lg ≥992px |
xl ≥1200px |
xxl ≥1400px |
|
---|---|---|---|---|---|---|
Container max-width |
None (auto) | 540px | 720px | 960px | 1140px | 1320px |
Class prefix | .col- |
.col-sm- |
.col-md- |
.col-lg- |
.col-xl- |
.col-xxl- |
# of columns | 12 | |||||
Gutter width | 1.5rem (.75rem on left and right) | |||||
Screen size | Class |
---|---|
Hidden on all | .d-none |
Hidden only on xs | .d-none .d-sm-block |
Hidden only on sm | .d-sm-none .d-md-block |
Hidden only on md | .d-md-none .d-lg-block |
Hidden only on lg | .d-lg-none .d-xl-block |
Hidden only on xl | .d-xl-none .d-xxl-block |
Hidden only on xxl | .d-xxl-none |
Visible on all | .d-block |
Visible only on xs | .d-block .d-sm-none |
Visible only on sm | .d-none .d-sm-block .d-md-none |
Visible only on md | .d-none .d-md-block .d-lg-none |
Visible only on lg | .d-none .d-lg-block .d-xl-none |
Visible only on xl | .d-none .d-xl-block .d-xxl-none |
Visible only on xxl | .d-none .d-xxl-block |
For example, to show a div only on mobile, add class d-md-none. To hide a div on mobile, add classes d-none d-md-block.
You can use custom components to do some of the things as follows (be sure to remove the space between the { % and % } tags!):
A quote...
Paul H
In backend, paste and adjust the following: (wrapper can be none, left or right){ % include 'Quote' quote:"A lovely select quote here" author:"Paul H" wrapper:"none" % }
In the backend, paste and adjust the following (align can be left, right, center or full):{ % include 'Button (Outline)' link:"#" linktext:"Second btn" align:"left" % }
In the backend, paste and adjust the following:{ % include 'Toggle' title: "Here is one" isopen: "true" content: "The text to show..." % }
You can create a slider by adding multiple Slides and one Control to the same column or Flex Container.
For example, to create a style 2 (Get Involved style) slider, add a new section and add some Get Involved Slides and one Get Involved Control:{ % include 'Get Involved Slide' title:"One" img:"/gi-img1" link:"#" % }
{ % include 'Get Involved Slide' title:"Two" img:"/gi-img2" link:"#" % }
{ % include 'Get Involved Slide' title:"Three" img:"/gi-img3" link:"#" % }
{ % include 'Get Involved Slide' title:"Four" img:"/gi-img4" link:"#" % }
{ % include 'Get Involved Control' idname:"anidwithoutspacés" sm:"2" md:"3" lg:"4" arrows:"false" % }
You can create sophisticated accordions by placing pairs of Accordion Titles and Accordion Contents flex-containers within the same parent column. The flex containers can contain images, text or whatever content you need.
Note: each Title and Content custom component need to having matching ID's to work!
For example:
<Section>
<flex-container>
{ % include 'Accordion Title' idname:"ph1" % }
<h2>Item 1 title</h2>
</ flex-container>
<flex-container>
{ % include 'Accordion Content' idname:"ph1" % }
<p>Item 1 content here...</p>
</flex-container>
</section>
Enter text here, about the contents.
Enter text here, about the contents.
In Design Studio, quotes and CTAs need to be placed inside a Flex Container in order to align properly.
Halloj, jag gillar skoj. Och ibland går jag i land för att ta i hand med en and.
A name here
{ % include 'Quote' content:"Halloj, jag gillar skoj. Och ibland går jag i land för att ta i hand med en and." author:"A name here" wrapper:"left" % }
BÖRJAN IGEN Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här.
{ % include 'CallToAction Box' stat:"För 150 kr" desc:"kan en förföljd kristen få en bibel." disclaimer:"Some small text here" link:"#" linktext:"Ge en gåva nu" % }
BÖRJAN IGEN Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här. Det här är en exempeltext. Vi skriver lite olika saker så att vi kan få lite brödtext här.
Image Sizes
Location | Width | Height | Ratio |
---|---|---|---|
Banner or campaign banner | 1400 | 600 | 7:3 |
Standard page short banner | 1400 | 350 | 4:1 |
Featured action | 760 | 520 | 19:13 |
Get Involved widget | 452 | 640 | 113:160 |
Meet courageous christians widget | 360 | 640 | 9:16 |
News article | 1400 | 940 | 3:2 |
News article (mobile) | 768 | 500 | |
Content page pull right / left | 420 | 280 | 3:2 |
The website uses the FontAwesome icon library. This allows you to add icons into the page content.
1. Find the icon you wish to add (in the free section)
2. Click on the icon, and click on the HTML code to copy (eg <i class="fa-solid fa-file"></i> )
3. Back in Design Studio, click the fx button on the element where you want to add the icon.
4. Paste the icon code into the place you want the icon, and click 'Save'.
På open-doors.se använder vi cookies som lagras i din webbläsare. Vissa cookies är helt nödvändiga för att webbplatsen ska fungera på ett bra sätt för dig. Andra används för analys så vi kan förbättra vår webbplats. Läs mer här.