Skip to content

Commit 6c966d7

Browse files
authored
Merge pull request #153 from manualdousuario/fix-header
Ajusta header para estilo mais recente
2 parents 0c38bfb + 7cdbf94 commit 6c966d7

File tree

5 files changed

+78
-39
lines changed

5 files changed

+78
-39
lines changed

orbita.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin Name: Órbita
1212
* Plugin URI: https://gnun.es
1313
* Description: Órbita é o plugin para criar um sistema Hacker News-like para o Manual do Usuário
14-
* Version: 1.15.1
14+
* Version: 1.15.2
1515
* Author: Gabriel Nunes
1616
* Author URI: https://gnun.es
1717
* License: GPL v3
@@ -41,7 +41,7 @@
4141
* Define plugin version constant
4242
*/
4343

44-
define( 'ORBITA_VERSION', '1.15.1' );
44+
define( 'ORBITA_VERSION', '1.15.2' );
4545
define( 'ORBITA_IMAGE_MAX_SIZE', '10' ); // MB
4646

4747
/**
@@ -268,7 +268,7 @@ function orbita_get_vote_html( $post_id ) {
268268
*/
269269
function orbita_get_header_html() {
270270
$html = '<div class="orbita-header">';
271-
$html .= ' <a href="/orbita/postar/" class="post">Postar</a>';
271+
$html .= ' <a href="/orbita/postar/" class="post ' . ( is_page('postar') ? 'selected' : '' ) . '" title="Comece uma conversa ou compartilhe um link.">Postar</a>';
272272
$html .= ' <div>';
273273
$html .= ' <a href="/orbita/" class="option ' . ( is_page('orbita') ? 'selected' : '' ) . '" title="As conversas recentes com mais votos e comentários.">Populares</a>';
274274
$html .= ' <span>&middot;</span>';

public/main.css

Lines changed: 41 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/main.css.map

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scss/main.scss

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,35 +158,50 @@ a.sem-paywall:hover {
158158
.orbita-header {
159159
display: flex;
160160
justify-content: space-between;
161-
padding: .75rem 1rem;
161+
padding: .75rem 0;
162162
margin-bottom: .35rem;
163-
background-color: var(--cor-destaques);
164-
border-radius: var(--med-borda);
165-
border: 1px solid var(--cor-bordas);
163+
border-bottom: 1px dashed var(--cor-bordas);
166164
line-height: 1;
167165

166+
a {
167+
text-decoration: none;
168+
169+
&:visited {
170+
color: var(--cor-link-ori);
171+
}
172+
173+
&:hover {
174+
color: var(--cor-link-est);
175+
text-decoration: underline;
176+
text-underline-offset: 15px;
177+
}
178+
}
179+
168180
div {
169181
display: flex;
170182
align-items: center;
171183
justify-content: space-around;
172184
column-gap: 1rem;
185+
173186
a {
174187
&:visited {
175188
color: var(--cor-link-ori);
176189
}
177190

178191
&:hover {
179-
color: var(--cor-link-est);
192+
color: var(--cor-link-est) !important;
180193
}
181194
}
182195
}
183196

184197
.option {
185-
opacity: .5;
198+
text-decoration: none;
186199
}
187200

188201
.selected {
189-
opacity: 1;
202+
text-decoration: underline !important;
203+
text-underline-offset: 15px;
204+
color: var(--cor-link-est) !important;
190205
}
191206
}
192207

@@ -297,7 +312,16 @@ a.sem-paywall:hover {
297312
.orbita-follow {
298313
font-size: var(--fs-0);
299314
font-family: var(--ff-monospace);
300-
text-align: center;
315+
316+
a {
317+
&:visited {
318+
color: var(--cor-link-ori);
319+
}
320+
321+
&:hover {
322+
color: var(--cor-link-est);
323+
}
324+
}
301325

302326
@media #{$desktop} {
303327
text-align: left;

0 commit comments

Comments
 (0)