Skip to content

Commit

Permalink
docs(website): CSS classes responsible for shadows are a bit more gen…
Browse files Browse the repository at this point in the history
…eric now to handle elements oth
  • Loading branch information
jan-molak committed Feb 27, 2017
1 parent 1a5e477 commit 7466ec0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions book/cucumber/overview.md
Expand Up @@ -15,9 +15,9 @@ or joining the [Serenity/Dojo](http://serenity.io).
capabilities of the [Serenity BDD](http://serenity-bdd.info/#/documentation) library,
which is the reporting engine also used by Serenity/JS:

<ul class="books">
<li><a class="image" href="https://www.amazon.co.uk/Cucumber-Book-Behaviour-Driven-Development-Programmers/dp/1934356808/ref=as_li_ss_il?ie=UTF8&qid=1486260348&sr=8-1&keywords=cucumber+book&linkCode=li2&tag=janmolakcom-21&linkId=e98c5adba105c5329f8c6f54eb1b6856" target="_blank"><img border="0" src="http://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1934356808&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=janmolakcom-21" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=janmolakcom-21&l=li2&o=2&a=1934356808" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li>
<li><a class="image" href="https://www.amazon.co.uk/BDD-Action-Behavior-driven-development-lifecycle/dp/161729165X/ref=as_li_ss_il?ie=UTF8&qid=1486260747&sr=8-1&keywords=BDD+in+action&linkCode=li2&tag=janmolakcom-21&linkId=3c3a42bc27eefe55fec30572d6f8ec23" target="_blank"><img border="0" src="http://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=161729165X&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=janmolakcom-21" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=janmolakcom-21&l=li2&o=2&a=161729165X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li>
<ul class="display">
<li class="image-display"><a class="image" href="https://www.amazon.co.uk/Cucumber-Book-Behaviour-Driven-Development-Programmers/dp/1934356808/ref=as_li_ss_il?ie=UTF8&qid=1486260348&sr=8-1&keywords=cucumber+book&linkCode=li2&tag=janmolakcom-21&linkId=e98c5adba105c5329f8c6f54eb1b6856" target="_blank"><img border="0" src="http://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1934356808&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=janmolakcom-21" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=janmolakcom-21&l=li2&o=2&a=1934356808" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li>
<li class="image-display"><a class="image" href="https://www.amazon.co.uk/BDD-Action-Behavior-driven-development-lifecycle/dp/161729165X/ref=as_li_ss_il?ie=UTF8&qid=1486260747&sr=8-1&keywords=BDD+in+action&linkCode=li2&tag=janmolakcom-21&linkId=3c3a42bc27eefe55fec30572d6f8ec23" target="_blank"><img border="0" src="http://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=161729165X&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=janmolakcom-21" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=janmolakcom-21&l=li2&o=2&a=161729165X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li>
</ul>

## Prerequisites
Expand Down
4 changes: 2 additions & 2 deletions book/mocha/overview.md
Expand Up @@ -70,8 +70,8 @@ This way you'll see the same test scenario in a context of two different test di

The example draws inspiration from "BDD in Action" by John Ferguson Smart, author of Serenity BDD.

<ul class="books">
<li><a class="image" href="https://www.amazon.co.uk/BDD-Action-Behavior-driven-development-lifecycle/dp/161729165X/ref=as_li_ss_il?ie=UTF8&qid=1486260747&sr=8-1&keywords=BDD+in+action&linkCode=li2&tag=janmolakcom-21&linkId=3c3a42bc27eefe55fec30572d6f8ec23" target="_blank"><img border="0" src="http://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=161729165X&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=janmolakcom-21" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=janmolakcom-21&l=li2&o=2&a=161729165X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li>
<ul class="display">
<li class="image-display"><a class="image" href="https://www.amazon.co.uk/BDD-Action-Behavior-driven-development-lifecycle/dp/161729165X/ref=as_li_ss_il?ie=UTF8&qid=1486260747&sr=8-1&keywords=BDD+in+action&linkCode=li2&tag=janmolakcom-21&linkId=3c3a42bc27eefe55fec30572d6f8ec23" target="_blank"><img border="0" src="http://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=161729165X&Format=_SL160_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=janmolakcom-21" ></a><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=janmolakcom-21&l=li2&o=2&a=161729165X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li>
</ul>

As you might recall, the feature definition that our imaginary team has arrived at looked like this:
Expand Down
36 changes: 18 additions & 18 deletions book/styles/website.less
Expand Up @@ -122,25 +122,14 @@
}
}

ul.books {
text-align: center;
list-style-type: none;
margin: 2em 0 0.85em 0;

li
{
display:inline-block;
margin:0 0.85em;
.image-display {
display:inline-block;
margin:0 0.85em;

position:relative;
.box-shadow(~"0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset");
position:relative;
.box-shadow(~"0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset");

img {
display: block;
vertical-align: bottom;
}
}
li:before, li:after
&:before, &:after
{
content:"";
position:absolute;
Expand All @@ -152,13 +141,24 @@
right:10px;
.border-radius(~"100px / 10px")
}
li:after
&:after
{
right:10px;
left:auto;
.transform(~"skew(8deg) rotate(3deg)");
}
}

ul.display {
text-align: center;
list-style-type: none;
margin: 2em 0 0.85em 0;

li img {
display: block;
vertical-align: bottom;
}
}
}

// Theme
Expand Down

0 comments on commit 7466ec0

Please sign in to comment.