Skip to content

Commit

Permalink
a class for invisible links
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed May 14, 2016
1 parent dab74f8 commit 261265a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion dashboard/create.pug
Expand Up @@ -5,7 +5,8 @@ html(lang="en")
body
include header.pug
section.settings
h1 Settings
h1
a.nolink(href="settings.html") Settings
p Welcome 
span#username
button#logout log out
Expand Down
6 changes: 3 additions & 3 deletions dashboard/header.pug
@@ -1,8 +1,8 @@
header.header
h1.header--item
a(href="/")
a.nolink(href="/")
img(src="/src/img/icons/logo.svg", alt="punchtime logo", title="go home")
h2.header--item
a(href=".")#company-name Company Name
a(href="settings.html").header--item
a.nolink(href=".")#company-name Company Name
a.nolink(href="settings.html").header--item
include ../src/img/icons/settings.svg
5 changes: 0 additions & 5 deletions src/scss/dashboard.scss
Expand Up @@ -30,11 +30,6 @@ body {
font-size: 1.5em;
}

a {
color: inherit;
text-decoration: none;
}

svg,img {
height: 1.5em;
}
Expand Down
5 changes: 5 additions & 0 deletions src/scss/generic.scss
Expand Up @@ -49,6 +49,11 @@ body,html {

a {
color: $color-accent-light;

&.nolink {
color: inherit;
text-decoration: none;
}
}

.inline {
Expand Down

0 comments on commit 261265a

Please sign in to comment.