1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

better link usability

This commit is contained in:
Matthias Kretschmann 2016-10-03 23:36:15 +02:00
parent b6f1ffb5c1
commit 4f337c9c3e
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
13 changed files with 57 additions and 13 deletions

View File

@ -36,6 +36,8 @@ pre
line-height: $line-height line-height: $line-height
color: $code-color color: $code-color
background-color: $code-bg background-color: $code-bg
margin-left: -($spacer)
margin-right: -($spacer)
// make 'em scrollable // make 'em scrollable
overflow: scroll overflow: scroll

View File

@ -69,6 +69,12 @@
.photo-link .photo-link
display: block display: block
&,
&:hover,
&:focus,
&:active
box-shadow: none
&:hover &:hover
img img
border-color: $link-color border-color: $link-color

View File

@ -18,13 +18,13 @@
@extend .media-frame @extend .media-frame
.post-title .post-title
@extend .h5, .transition @extend .h5, .transition, .text-dimmed
margin-top: ($spacer / 3) margin-top: ($spacer / 3)
margin-bottom: 0 margin-bottom: 0
padding: 0 2px padding: 0 2px
.post-title-link .post-title-link
@extend .transition @extend .transition, .link--nounderline
display: block display: block
&:hover, &:hover,

View File

@ -57,6 +57,9 @@
margin-top: 0 margin-top: 0
margin-bottom: $spacer margin-bottom: $spacer
a
@extend .link--nounderline
.format-link & .format-link &
@extend .h3 @extend .h3
@ -123,6 +126,9 @@
@extend .small @extend .small
margin-top: ($spacer*2) margin-top: ($spacer*2)
a
@extend .link--nounderline
.byline, .byline,
.time, .time,
.tags, .tags,
@ -150,7 +156,7 @@
margin-bottom: ($spacer/2) margin-bottom: ($spacer/2)
.category .category
@extend .h6, .textcenter, .mini @extend .h6, .textcenter, .mini, .link--nounderline
color: $text-color color: $text-color
line-height: 1 line-height: 1
text-transform: uppercase text-transform: uppercase
@ -171,6 +177,7 @@
color: #fff color: #fff
.tag .tag
@extend .link--nounderline
color: $text-color color: $text-color
margin-right: 5px margin-right: 5px

View File

@ -16,6 +16,9 @@
color: $text-color-light color: $text-color-light
line-height: $spacer line-height: $spacer
a
@extend .link--nounderline
.footer-description .footer-description
@extend .h5 @extend .h5
a a
@ -44,7 +47,7 @@
margin: 0 margin: 0
.link .link
@extend .textcenter @extend .textcenter, .link--nounderline
width: 42px width: 42px
padding: $padding-small-vertical padding: $padding-small-vertical
margin: 0 margin: 0

View File

@ -58,7 +58,7 @@
@extend .logo @extend .logo
.header__logo .header__logo
@extend .ir @extend .ir, .link--nounderline
// repeat logo // repeat logo
// but display hover version // but display hover version
@extend .logo @extend .logo

View File

@ -35,7 +35,10 @@
border-bottom: 1px solid rgba(255,255,255,.7) border-bottom: 1px solid rgba(255,255,255,.7)
box-shadow: 0 1px 4px alpha($brand-dark, .1), 0 -1px 4px alpha($brand-dark, .2) box-shadow: 0 1px 4px alpha($brand-dark, .1), 0 -1px 4px alpha($brand-dark, .2)
transform: translate3d(0,-($spacer*7.2),0) transform: translate3d(0,-($spacer*7.7),0)
@media $screen-xs
transform: translate3d(0,-($spacer*7.2),0)
@media $screen-sm @media $screen-sm
transform: translate3d(0,-($spacer*5),0) transform: translate3d(0,-($spacer*5),0)

View File

@ -44,6 +44,10 @@ img.aligncenter
.media-frame .media-frame
@extend .transition @extend .transition
border: 2px solid transparent border-top: 2px solid transparent
border-bottom: 2px solid transparent
border-radius: $border-radius-base border-radius: $border-radius-base
box-shadow: 0 1px 3px alpha($brand-grey,.2) box-shadow: 0 1px 3px alpha($brand-grey,.2)
@media $screen-sm
border: 2px solid transparent

View File

@ -63,7 +63,7 @@
opacity: 1 opacity: 1
.nav-link .nav-link
@extend .category @extend .link--nounderline, .category
font-size: $font-size-small font-size: $font-size-small
text-shadow: 0 1px 0 rgba(#fff, .5) text-shadow: 0 1px 0 rgba(#fff, .5)
padding: $padding-base-horizontal padding: $padding-base-horizontal
@ -85,6 +85,7 @@
margin-bottom: -5px margin-bottom: -5px
.paginator__link .paginator__link
@extend .link--nounderline
width: 2rem width: 2rem
height: 2rem height: 2rem
line-height: 1.7 line-height: 1.7

View File

@ -1,3 +1,4 @@
.tagcloud__tag .tagcloud__tag
@extend .link--nounderline
padding: .3rem .5rem padding: .3rem .5rem

View File

@ -10,7 +10,10 @@
// Body reset // Body reset
html html
font-size: $font-size-root font-size: $font-size-root-xs
@media $screen-xs
font-size: $font-size-root
@media $screen-lg @media $screen-lg
font-size: $font-size-root-lg font-size: $font-size-root-lg
@ -117,25 +120,35 @@ h6, .h6
// Links // Links
///////////////////////////////////// /////////////////////////////////////
a a,
.link
color: $link-color color: $link-color
text-decoration: none text-decoration: none
transition: color .2s ease-in-out transition: .2s ease-in-out
box-shadow: 0 1px 0 rgba($link-color, 40%)
&:hover, &:hover,
&:focus &:focus
outline: 0 outline: 0
color: $link-color-hover color: $link-color-hover
box-shadow: 0 1px 0 rgba($link-color-hover, 70%)
&:active &:active
transition: none transition: none
color: darken($link-color, 30%) color: darken($link-color, 30%)
box-shadow: 0 1px 0 darken($link-color, 30%)
h1 &, h1 &,
h2 &, h2 &,
h3 & h3 &
color: $headings-color color: $headings-color
.link--nounderline
&,
&:hover,
&:focus,
&:active
box-shadow: none
// Lists // Lists
///////////////////////////////////// /////////////////////////////////////
@ -233,7 +246,9 @@ hr
margin-bottom: ($spacer*2) margin-bottom: ($spacer*2)
.large .large
font-size: $font-size-large font-size: $font-size-large-xs
@media $screen-xs
font-size: $font-size-large
.small .small
font-size: $font-size-small font-size: $font-size-small

View File

@ -40,10 +40,12 @@ $text-color-light = $brand-grey-light
// Typography // Typography
///////////////////////////////////// /////////////////////////////////////
$font-size-root-xs = 16px
$font-size-root = 18px $font-size-root = 18px
$font-size-root-lg = 20px $font-size-root-lg = 20px
$font-size-base = 1rem $font-size-base = 1rem
$font-size-large-xs = 1.15rem
$font-size-large = 1.45rem $font-size-large = 1.45rem
$font-size-small = 0.8rem $font-size-small = 0.8rem
$font-size-mini = 0.6rem $font-size-mini = 0.6rem

View File

@ -12,7 +12,7 @@ title: tags
<section class="tagcloud"> <section class="tagcloud">
{% for tag in site.tags %} {% for tag in site.tags %}
<span style="font-size: {{ tag | last | size | times: 500 | divided_by: site.tags.size | plus: 70 }}%"> <span style="font-size: {{ tag | last | size | times: 500 | divided_by: site.tags.size | plus: 70 }}%">
<a class="tagcloud__tag" href="/{{ tag | first | slugize }}/"> <a class="tagcloud__tag" href="/tag/{{ tag | first | slugize }}/">
{{ tag | first }} {{ tag | first }}
</a> </a>
</span> </span>