Sekundär navigering

<div class="rh-navigation-card">
    <div class="rh-navigation-card-title-extended">
        <h5>
            <span class="rh-navigation-card-title-icon"></span>
            <a class="rh-navigation-card-title-link" title="Förklara vart länken leder">
				Link to subpage
			</a>
        </h5>

    </div>
    <p class="rh-navigation-card-description">
        This text describes the content that can be found on the subpage
    </p>
</div>
<div class="rh-navigation-card">
    <div class="rh-navigation-card-title-extended">
        <h5>
            <span class="rh-navigation-card-title-icon"></span>
            <a class="rh-navigation-card-title-link" title="Förklara vart länken leder">
				Link to another subpage
			</a>
        </h5>

    </div>
    <p class="rh-navigation-card-description">
        This text describes the content that can be found on the subpage
    </p>
</div>
{{#each cards}}
<div class="rh-navigation-card">
	<div class="rh-navigation-card-title-extended">
		<h5>
            <span class="rh-navigation-card-title-icon"></span>
			<a class="rh-navigation-card-title-link" title="{{link.title}}">
				{{link.text}}
			</a>
		</h5>

	</div>
	<p class="rh-navigation-card-description">
		{{description}}
	</p>
</div>
{{/each}}
{
  "cards": [
    {
      "link": {
        "title": "Förklara vart länken leder",
        "toPage": "",
        "text": "Link to subpage"
      },
      "description": "This text describes the content that can be found on the subpage"
    },
    {
      "link": {
        "title": "Förklara vart länken leder",
        "toPage": "",
        "text": "Link to another subpage"
      },
      "description": "This text describes the content that can be found on the subpage"
    }
  ]
}
  • Content:
    .rh-navigation-card{
        /* Box-modell/beteende */
    	margin-bottom: em(45);
    	@include medium { height: 6em; }
    	@include large { height: 5em; }
    
    	.rh-navigation-card-title{
    
    		&-icon {
    			&:after {
                    /* Box-modell/beteende */
    				margin-right: 1ex;
                    padding: em(6);
                    
                    /* Visuellt */
                    background: $base3;
    				border-radius: 50%;
                    
                    /* Typografi */
    				color: white;
    				font-weight: normal;
    		    	font-family: "feather";
                    font-size: $p-small;
                    
                    /* Blandat/övrigt */
                    content: "\e829";
                    
                    /* Typografi */
    				@include medium { font-size: $p-medium;}
    				@include large { font-size: $p-large;}
    			}
    		}
    
    		&-link{
                /* Box-modell/beteende */
                display: inline-block;
                
                /* Typografi */
    		    font-size: inherit;
    		    text-decoration: none;
                color: $color-primary;
                line-height: 1em;
    
                /* Blandat/övrigt */
    		    cursor: pointer;
    
    		    &:hover,
    		    &:active {
                    /* Typografi */
    		        text-decoration: underline;  
    		    }
    
    		    &:visited {
                    /* Typografi */
    		        color: $link-visited;
    		    }
    		}
    	}
    
    	.rh-navigation-card-description{
            /* Box-modell/beteende */
    		max-width: 95%;
            padding-top: 1ex;
            
            /* Typografi */
    		color: $grey-dark;
    	}
    }
    
    
    
    
    
    
    
  • URL: /components/raw/navigation-card/_navigation-card.scss
  • Filesystem Path: components/Molecules/navigation-card/_navigation-card.scss
  • Size: 1.5 KB
  • Content:
    {
        "name": "regionhalland/navigation-card",
        "description": "Navigation card",
        "type": "styleguide-molecule",
        "license": "GPL-3.0",
        "authors": [
            {
                "name": "Roland Hydén",
                "email": "Roland.Hyden@Regionhalland.se"
            }
        ],
        "require": {}
    }
  • URL: /components/raw/navigation-card/composer.json
  • Filesystem Path: components/Molecules/navigation-card/composer.json
  • Size: 299 Bytes
  • Handle: @navigation-card
  • Preview:
  • Filesystem Path: components/Molecules/navigation-card/navigation-card.hbs

Molekylen “Navigation card”

Versionshistorik

  • 1.0.0.20191122 Flyttat till gitrepo