@font-hash: 'f6436933'; @blue: #145ddd; @red: #ee2f2e; @yellow: #f9fbed; @font-face { font-family: 'Icons'; src: url('/fonts/icons.eot?@{font-hash}'); src: url('/fonts/icons.eot?@{font-hash}#iefix') format('embedded-opentype'), url('/fonts/icons.woff2?@{font-hash}') format('woff2'), url('/fonts/icons.woff?@{font-hash}') format('woff'), url('/fonts/icons.ttf?@{font-hash}') format('truetype'), url('/fonts/icons.svg?@{font-hash}#icons') format('svg'); font-weight: normal; font-style: normal; } .unselectable() { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Safari */ -khtml-user-select: none; /* Konqueror HTML */ -moz-user-select: none; /* Old versions of Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none; } .selectable() { -webkit-touch-callout: default; /* iOS Safari */ -webkit-user-select: text; /* Safari */ -khtml-user-select: text; /* Konqueror HTML */ -moz-user-select: text; /* Old versions of Firefox */ -ms-user-select: text; /* Internet Explorer/Edge */ user-select: text; } .clearfix() { display: inline-block; &:after { visibility: hidden; display: block; font-size: 0; content: ' '; clear: both; height: 0; } } .border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) { -webkit-border-top-right-radius: @topright; -webkit-border-bottom-right-radius: @bottomright; -webkit-border-bottom-left-radius: @bottomleft; -webkit-border-top-left-radius: @topleft; -moz-border-radius-topright: @topright; -moz-border-radius-bottomright: @bottomright; -moz-border-radius-bottomleft: @bottomleft; -moz-border-radius-topleft: @topleft; border-top-right-radius: @topright; border-bottom-right-radius: @bottomright; border-bottom-left-radius: @bottomleft; border-top-left-radius: @topleft; -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; } .opacity (@opacity: 0.5) { -webkit-opacity: @opacity; -moz-opacity: @opacity; opacity: @opacity; } a { color: @red; &:hover { text-decoration: none; } } body { font-family: 'Source Sans Pro', serif; font-size: 18px; color: @blue; background-color: @yellow; margin: 0; padding: 10px; .unselectable; } header { width: 100%; min-width: 300px; max-width: 600px; margin: 0 auto; a { position: relative; top: -50px; } h1 { color: transparent; text-align: center; margin: 20px 0 0 0; } img { width: 100%; max-height: 100px; display: block; margin: 0 auto; } } html { min-height: 100%; } main { min-width: 300px; max-width: 700px; margin: 0 auto; > div { .clearfix; margin-top: 50px; > div { width: 300px; float: left; &:nth-child(odd) { margin-right: 50px; } &:nth-child(even) { margin-left: 50px; } @media only screen and (max-width: 699px) { float: none; &:nth-child(odd) { margin-right: 0; } &:nth-child(even) { margin-left: 0; } } a, span { color: @red; text-decoration: none; display: inline-block; width: 22px; margin-left: 3px; position: relative; top: -2px; font-family: 'Icons'; font-size: 20px; text-align: center; transition-duration: 500ms; transition-property: color; &:hover { color: @blue; } &.amazon:before { content: '\f270'; } &.apple-music:before { content: '\f179'; } &.facebook:before { content: '\f308'; } &.spotify:before { content: '\f1bc'; } &.twitter:before { content: '\f099'; } &.website:before { content: '\e800'; } &.youtube:before { content: '\f16a'; } } img { .border-radius(25px, 25px, 25px, 25px); &:hover + p { color: @red; } } p { text-align: center; margin: 0; padding: 5px 15px; position: relative; top: -38px; background-color: rgba(249, 251, 237, .8); transition-duration: 500ms; transition-property: color; &:hover { color: @red; } } ul { text-align: center; margin: 0 20px; padding: 0; position: relative; top: -30px; li { display: inline; list-style-type: none; margin: 0; padding: 0; } } /* two lined name */ p.two { top: -62px; + ul { top: -54px; } } } } p { margin: 5px 0; text-align: justify; line-height: 130%; } } strong { font-family: Roboto, serif; color: @red; &:before { font-family: 'Icons'; font-size: 24px; content: '\e804'; color: @blue; vertical-align: sub; margin-right: 2px; } }