Skip to content

Instantly share code, notes, and snippets.

@sultaniman
Last active May 17, 2018 19:10
Show Gist options
  • Select an option

  • Save sultaniman/0b2f712a233c2c2e522037d31d96b95e to your computer and use it in GitHub Desktop.

Select an option

Save sultaniman/0b2f712a233c2c2e522037d31d96b95e to your computer and use it in GitHub Desktop.
<template>
<div class="awesome">
<img class="awesome__logo" src="@/assets/logo.png">
<h2 class="awesome__heading">Awesome</h2>
</div>
</template>
<script>
export default {
name: 'Awesome'
}
</script>
<style lang="sass" scoped>
.awesome
background: white
&__logo
max-width: 10em
&__heading
font-weight: 400
// Describe modifiers/theme
&--dark
background: #444
// For dark them we want our
// heading to have white color
.awesome
&__heading
color: #fff
&--raised
box-shadow: 0.5em 0.5em 0.2em #eee
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment