Skip to content

Commit dacdc24

Browse files
committed
BS Container
1 parent 580d9d7 commit dacdc24

File tree

8 files changed

+89
-72
lines changed

8 files changed

+89
-72
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Site do Grupo de Usuários PHP de Santa Catarina
77
Se tem interesse em nos ajudar, dê uma olhada [neste conteúdo](https://github.com/PHPSC/phpsc.github.io/wiki/Contribuindo).
88

99

10+
## Todo
11+
[ ] Configurar para utilizar as variáveis do Bootstrap nos arquivos Sass
12+
1013
## Licença de uso
1114

1215
Copyright (c) 2015, Grupo de usuários de PHP de Santa Catarina (PHPSC)

_config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Site settings
2-
title: Grupo de Usuários de PHP de Santa Catarina
2+
title: PHPSC
3+
title_long: Grupo de Usuários de PHP de Santa Catarina
34
45
description: > # this means to ignore newlines until "baseurl:"
56
PHPSC - Grupo de Usuários de PHP de Santa catarina.

_includes/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</ul>
4444
</div>
4545

46-
<div class="col-sm-8">
46+
<div class="col-sm-8 text-right">
4747
{{ site.description }}
4848
</div>
4949
</div>

_includes/header.html

+49-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,55 @@
1-
<header class="site-header">
1+
<header>
2+
<!--<div class="container">-->
3+
<!--<a class="site-title" href="{{ site.baseurl }}/"><span>{{ site.title }}</span></a>-->
24

3-
<div class="container">
5+
<!--<nav class="site-nav">-->
6+
<!--<a href="#" class="menu-icon">-->
7+
<!--<svg viewBox="0 0 18 15">-->
8+
<!--<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>-->
9+
<!--<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>-->
10+
<!--<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>-->
11+
<!--</svg>-->
12+
<!--</a>-->
413

5-
<a class="site-title" href="{{ site.baseurl }}/"><span>{{ site.title }}</span></a>
14+
<!--<div class="trigger">-->
15+
<!--<a class="page-link" href="{{ site.baseurl }}/">Início</a>-->
16+
<!--{% for page in site.pages %}-->
17+
<!--{% if page.title %}-->
18+
<!--<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>-->
19+
<!--{% endif %}-->
20+
<!--{% endfor %}-->
21+
<!--<a class="page-link" href="http://www.meetup.com/pt/PHPSC-Floripa/" target="_blank">Reuniões</a>-->
22+
<!--<a class="page-link" href="https://phpsc-slackin.herokuapp.com/" target="_blank">Slack</a>-->
23+
<!--</div>-->
24+
<!--</nav>-->
625

7-
<nav class="site-nav">
8-
<a href="#" class="menu-icon">
9-
<svg viewBox="0 0 18 15">
10-
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
11-
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
12-
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
13-
</svg>
14-
</a>
26+
<nav class="navbar navbar-default">
27+
<div class="container">
28+
<div class="navbar-header">
29+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
30+
<span class="sr-only">Toggle navigation</span>
31+
<span class="icon-bar"></span>
32+
<span class="icon-bar"></span>
33+
<span class="icon-bar"></span>
34+
</button>
35+
<a class="navbar-brand" href="{{ site.baseurl }}/">{{ site.title }}</a>
36+
</div>
1537

16-
<div class="trigger">
17-
<a class="page-link" href="{{ site.baseurl }}/">Início</a>
18-
{% for page in site.pages %}
19-
{% if page.title %}
20-
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
21-
{% endif %}
22-
{% endfor %}
23-
<a class="page-link" href="http://www.meetup.com/pt/PHPSC-Floripa/" target="_blank">Reuniões</a>
24-
<a class="page-link" href="https://phpsc-slackin.herokuapp.com/" target="_blank">Slack</a>
25-
</div>
26-
</nav>
27-
28-
</div>
38+
<!-- Collect the nav links, forms, and other content for toggling -->
39+
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
40+
<ul class="nav navbar-nav">
41+
{% for page in site.pages %}
42+
{% if page.title %}
43+
<li><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
44+
{% endif %}
45+
{% endfor %}
46+
</ul>
47+
<ul class="nav navbar-nav navbar-right">
48+
<li><a href="http://www.meetup.com/pt/PHPSC-Floripa/">Reuniões</a></li>
49+
<li><a href="https://phpsc-slackin.herokuapp.com/">Slack</a></li>
50+
</ul>
51+
</div><!-- /.navbar-collapse -->
52+
</div><!-- /.container-fluid -->
53+
</nav>
2954

3055
</header>

_layouts/default.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
{% include head.html %}
55

66
<body>
7-
<a class="fork-me-on-github" href="https://github.com/PHPSC/phpsc.github.io"><img src="https://sculpin.io/assets/[email protected]" alt="Fork me on GitHub"></a>
7+
<a class="fork-me-on-github" href="https://github.com/PHPSC/phpsc.github.io">
8+
<img src="https://sculpin.io/assets/[email protected]" alt="Fork me on GitHub">
9+
</a>
810

911
{% include header.html %}
1012

11-
<div class="page-content">
12-
<div class="container">
13-
{{ content }}
14-
</div>
13+
<div class="container">
14+
{{ content }}
1515
</div>
1616

1717
{% include footer.html %}

_layouts/page.html

-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
layout: default
33
---
44
<div class="post">
5-
65
<header class="post-header">
76
<h1 class="post-title">{{ page.title }}</h1>
87
</header>
98

109
<article class="post-content">
1110
{{ content }}
1211
</article>
13-
1412
</div>

_layouts/post.html

+14-19
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@
44
{% assign author = site.data.members[page.author] %}
55

66
<div class="post">
7+
<header class="post-header">
8+
<h1 class="post-title">{{ page.title }}</h1>
9+
<p class="post-meta">
10+
{{ page.date | date: "%-d / %m / %Y" }}
11+
{% if page.author %} &bull; <a href="https://github.com/{{ author.github }}">{{ author.name }}</a>{% endif %}
12+
{% if page.meta %} &bull; {{ page.meta }}{% endif %}
13+
</p>
14+
</header>
715

8-
<div class="row">
9-
<header class="post-header">
10-
<h1 class="post-title">{{ page.title }}</h1>
11-
<p class="post-meta">{{ page.date | date: "%-d / %m / %Y" }}{% if page.author %} • <a href="https://github.com/{{ author.github }}">{{ author.name }}</a>{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
12-
</header>
13-
</div>
16+
<div id="share" class="pull-right"></div>
1417

15-
<div class="row">
16-
<div id="share" class="pull-right"></div>
17-
</div>
18+
<article class="post-content">
19+
{{ content }}
20+
</article>
1821

19-
<div class="row">
20-
<article class="post-content">
21-
{{ content }}
22-
</article>
23-
</div>
24-
25-
<div class="row">
26-
<div id="disqus_thread"></div>
27-
</div>
28-
</div>
22+
<div id="disqus_thread"></div>
23+
</div>

_sass/_layout.scss

+15-20
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
@media (min-width: 768px) {
2-
.container {
3-
width: 750px;
4-
}
5-
}
6-
71
/**
82
* Site header
93
*/
@@ -265,18 +259,19 @@
265259
.fork-me-on-github {
266260
display: none;
267261
}
262+
268263
@media only screen and (min-width: 992px) {
269-
.fork-me-on-github {
270-
display: inline;
271-
}
272-
273-
.fork-me-on-github img {
274-
position: absolute;
275-
top: 0;
276-
right: 0;
277-
z-index: 1500;
278-
border: 0;
279-
width: 149px;
280-
height: 149px;
281-
}
282-
}
264+
.fork-me-on-github {
265+
display: inline;
266+
}
267+
268+
.fork-me-on-github img {
269+
position: absolute;
270+
top: 0;
271+
right: 0;
272+
z-index: 1500;
273+
border: 0;
274+
width: 149px;
275+
height: 149px;
276+
}
277+
}

0 commit comments

Comments
 (0)