Add toggle to project items
This commit is contained in:
parent
965b5113fc
commit
c9aaf69cc0
@ -59,4 +59,8 @@
|
|||||||
&.icon-link--danger {
|
&.icon-link--danger {
|
||||||
@include icon-link-color($color-red, $color-red-lightest);
|
@include icon-link-color($color-red, $color-red-lightest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.icon-link--default {
|
||||||
|
@include icon-link-color($color-black-light, $color-gray-lightest);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,12 +42,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='block-list project-list-item'>
|
<div is="toggler" class='block-list project-list-item'>
|
||||||
|
<template slot-scope='{ isVisible, toggle }'>
|
||||||
<header class='block-list__header'>
|
<header class='block-list__header'>
|
||||||
<h3 class='block-list__title'>{{ Icon('arrow-down') }}Code.mil</h3>
|
<button v-on:click='toggle' class='icon-link icon-link--large icon-link--default spend-table__project__toggler'>
|
||||||
|
<template v-if='isVisible'>{{ Icon('caret_down') }}</template>
|
||||||
|
<template v-else>{{ Icon('caret_right') }}</template>
|
||||||
|
<h3 class="block-list__title">Code.mil</h3>
|
||||||
|
</button>
|
||||||
<span><a href="#" class="icon-link icon-link--danger">revoke all access</a></span>
|
<span><a href="#" class="icon-link icon-link--danger">revoke all access</a></span>
|
||||||
</header>
|
</header>
|
||||||
<ul>
|
<ul v-show='isVisible'>
|
||||||
<li class='block-list__item project-list-item__environment'>
|
<li class='block-list__item project-list-item__environment'>
|
||||||
<span class='project-list-item__environment'>
|
<span class='project-list-item__environment'>
|
||||||
Development
|
Development
|
||||||
@ -73,13 +78,46 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='block-list project-list-item'>
|
<div is="toggler" class='block-list project-list-item'>
|
||||||
|
<template slot-scope='{ isVisible, toggle }'>
|
||||||
<header class='block-list__header'>
|
<header class='block-list__header'>
|
||||||
<h3 class='block-list__title'>{{ Icon('arrow-right') }} Digital Dojo</h3>
|
<button v-on:click='toggle' class='icon-link icon-link--large icon-link--default spend-table__project__toggler'>
|
||||||
|
<template v-if='isVisible'>{{ Icon('caret_down') }}</template>
|
||||||
|
<template v-else>{{ Icon('caret_right') }}</template>
|
||||||
|
<h3 class="block-list__title">Digital Dojo</h3>
|
||||||
|
</button>
|
||||||
<span class="label">no access</span>
|
<span class="label">no access</span>
|
||||||
</header>
|
</header>
|
||||||
|
<ul v-show='isVisible'>
|
||||||
|
<li class='block-list__item project-list-item__environment'>
|
||||||
|
<span class='project-list-item__environment'>
|
||||||
|
Development
|
||||||
|
</span>
|
||||||
|
<div class='project-list-item__environment__actions'>
|
||||||
|
<span class="label">no access </span><a href="#" class="icon-link">set role</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class='block-list__item project-list-item__environment'>
|
||||||
|
<span class='project-list-item__environment'>
|
||||||
|
Sandbox
|
||||||
|
</span>
|
||||||
|
<div class='project-list-item__environment__actions'>
|
||||||
|
<span class="label">no access</span><a href="#" class="icon-link">set role</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class='block-list__item project-list-item__environment'>
|
||||||
|
<span class='project-list-item__environment'>
|
||||||
|
Production
|
||||||
|
</span>
|
||||||
|
<div class='project-list-item__environment__actions'>
|
||||||
|
<span class="label">no access</span><a href="#" class="icon-link">set role</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='action-group'>
|
<div class='action-group'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user