Shape blocks with outlined borders
Note: Always check mobile and make adjustments!
Instructions below involve adding a shape block, selecting rectangle and then adjusting the top left radius value to a set amount (the dotted square value underneath the shape block)
Add an outlined rectangle border
Add a block
Choose shape
Select the rectangle shape and set the first radius value to 1
add an image block and drag it overtop
Add the words: “inset-image” to filename area of image content tab area
Options to change in CSS area:
The pixel width of the outline or size
@outline-size-1: 1px;
// image inset amount - amount of space around image
@imageinset-amount: 10px;
Line options
All of these options use the rectangle shape
Add a block
Choose shape
Select the first option which is the rectangle
Select the desired color
The stretch option can be toggled on or off (will not apply)
Change the first value of the individual radius settings (the second option as shown below) to the exact value noted below to get the effect
Vertical line on desktop and horizontal on mobile
Top left radius set to 101
drag frame to adjust height of line on desktop and mobile
options to adjust line width:
in Design -> CSS there is a variable called @verticallinewidth. Set this to the desired width in px.
ie @verticallinewidth : 2px;
(can change 2 to a different value)
Vertical line on desktop and mobile
Top left radius set to 102
drag frame to adjust height of line on desktop and width on mobile
options to adjust line width:
in Design -> CSS there is a variable called @verticallinewidth. Set this to the desired width in px.
ie @verticallinewidth : 2px;
(can change 2 to a different value)
Diagonal line
Top left radius set to 15
drag frame to adjust height of line on desktop and mobile
options to adjust line width:
in Design -> CSS there is a variable called @diagonallinewidth. Set this to the desired width in px.
ie @diagonallinewidth : 5px;
(can change 5 to a different value)
Horizontal line on desktop and mobile
Top left radius set to :
103 for line aligned at top of block
104 for line aligned in middle of block
105 for line aligned at bottom of block
drag frame to adjust height of line on desktop and mobile
options to adjust line width:
in Design -> CSS there is a variable called @horizontallinewidth. Set this to the desired width in px.
ie @horizontallinewidth : 1px;
(can change 1 to a different value)
Adding borders to regular images that are not using a shape option
Add an image block
On the design tab choose “fill”
add the keyword to the filename
add “imageborder1” to filename area
Adjust border color and size in the CSS panel:
Go to Design -> CSS
find this near the top:
@imageborder1size: 15px;
@imageborder1color: @white;
@imageborder1offset:0px;
Change the 15 to a bigger or smaller number
change @white to any color value
change the offset value to any positive number to push the border away from the image
add “imageborder2” to filename area
Adjust border color and size in the CSS panel:
Go to Design -> CSS
find this near the top:
@imageborder2size: 2px;
@imageborder2color: @dark;
@imageborder2offset:10px;
Change the 2 to a bigger or smaller number
change @dark to any color value
change the offset value to any positive number to push the border away from the image
Add borders to arch shapes
We can fake the look of a border on an arch block by actually adding 2 blocks - a shape block (with arch shape) and layering the image block overtop and selecting the arch shape and adding a keyword to the image
Here are the steps:
Add a shape block then select the pen tool
from the dropdown scroll down and select the arch shape
make sure stretch is toggled on
select the color you want for the border from the color option
Select Shape -> and then select the arch shape
Add an image block
Select Shape and then under 2:3 select the arch
toggle on the stretch option
add either keyword inset-image1 or inset-image2 to the image filename section
The width of the border is controlled in the CSS panel which can be found under Design -> CSS. Look for these variables near the top:
@imageinset-amount1: 10px;
@imageinset-amount2: 4px;
and change the value of the number as desired
drag the image block directly over the arch shape and make the sure the frame sizes match exactly
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Fusce non magna non lacus auctor commodo sed eu odio. Sed vitae diam eu tellus bibendum tristique a quis justo. Nam cursus, purus nec placerat consectetur, metus dui pulvinar eros, et mattis ipsum tortor in magna. Etiam in ex quis massa ornare consectetur. Aenean eget egestas est. Nullam blandit interdum porttitor. Donec facilisis turpis sit amet massa vehicula, non lacinia tortor accumsan. Quisque non est vitae tellus mollis luctus in vel eros. Sed vitae velit nec justo pulvinar consequat sit amet eu erat. Duis volutpat lectus in dolor venenatis, a bibendum quam vehicula. Integer tincidunt sapien in nibh ullamcorper, eget porta mauris lacinia. Vivamus ante magna, posuere ut dolor id, congue auctor ipsum. Sed pulvinar auctor arcu, eu pretium nulla venenatis vitae. Aliquam a dui vel lorem volutpat fermentum.