Commit 5959604c authored by Avris's avatar Avris

fix footer rwd

parent 9cc3778b
ul, ol {
&.list {
display: block;
list-style-type: none;
padding: 0;
li {
margin: 8px 0;
}
}
&.horizontal-list {
@mixin listHorizontal {
&.list-horizontal {
display: inline-block;
list-style-type: none;
padding: 0;
width: 100%;
margin: 0;
li {
> li {
position: relative;
display: inline;
vertical-align: middle;
&:before {
&:after {
content: " ";
margin: 0 16px;
margin: 0 8px;
display: inline-block;
}
&:first-child:before {
&:last-child:after {
content: " ";
margin: 0;
display: inline-block;
}
}
&.list-horizontal-wide {
> li {
&:after {
margin: 0 16px;
}
&:last-child:after {
margin: 0;
}
}
}
}
}
ul, ol {
&.list {
display: block;
list-style-type: none;
padding: 0;
> li {
margin: 8px 0;
}
}
&.list-horizontal-xs {
@include listHorizontal;
}
@media (min-width: $screen-xs-max) {
@include listHorizontal;
}
}
.list-spread {
> a, > span {
margin: 0 8px;
......@@ -41,4 +63,4 @@ ul, ol {
> a, > span {
margin: 0 0.5em;
}
}
\ No newline at end of file
}
......@@ -179,15 +179,13 @@ class Project implements \JsonSerializable
*/
public function getServer($name)
{
$server = $this->servers->filter(function (Server $server) use ($name) {
return $server->getName() === $name;
})->first();
if (!$server) {
throw new NotFoundException;
foreach ($this->servers as $server) {
if ($server->getName() === $name) {
return $server;
}
}
return $server;
throw new NotFoundException;
}
/**
......
<footer>
<div class="container">
<ul class="text-center horizontal-list">
<ul class="text-center list list-horizontal list-horizontal-wide">
<li><span class="fa fa-user"></span> Andrzej Prusinowski</li>
<li><a href="https://avris.it" target="_blank"><span class="fa fa-globe"></span> avris.it</a></li>
<li><a href="mailto:[email protected]" target="_blank"><span class="fa fa-envelope"></span> [email protected]</a></li>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment