Skip to content

Instantly share code, notes, and snippets.

View PixelHeadsLtd's full-sized avatar

Mike King PixelHeadsLtd

View GitHub Profile
@PixelHeadsLtd
PixelHeadsLtd / margin
Last active November 18, 2025 15:24
Migrated gist (migrated)
// MARGIN
.boxed {margin-top: 0!important;}
.margin-auto {margin: auto!important;}
.margin-0 {margin: 0!important;}
.margin-0-25 {margin: .25rem!important;}
.margin-0-5 {margin: .5rem!important;}
.margin-0-75 {margin: .75rem!important;}
.margin-1 {margin: 1rem!important;}
.margin-1-25 {margin: 1.25rem!important;}
.margin-1-5 {margin: 1.5rem!important;}
@PixelHeadsLtd
PixelHeadsLtd / ph-card (detailed version)
Last active November 18, 2025 11:35
Migrated gist (migrated)
<ph-card
[cardDetailed]="true"
topPos="-1rem" // this setting is for when nested in a blade
leftPos="-1.25rem" // this setting is for when nested in a blade
cardWidth="calc(100% + 1.5rem)" // this setting is for when nested in a blade
cardName="Person card name"
[imgPath]="imgPath"
>
<ng-container card-detailed-content>
<h2>Obi-Wan Kenobi</h2>
@PixelHeadsLtd
PixelHeadsLtd / text
Created November 17, 2025 18:01
Migrated gist (migrated)
.text-info {color: _palette(aa-light-blue-100) !important}
.text-error {color: _palette(aa-red-100) !important}
.text-warning {color: _palette(aa-orange-100) !important}
.text-success {color: _palette(aa-green-100) !important}
.text-bold {font-family: _font(family-bold) !important}
.text-semi-bold {font-family: _font(family-medium) !important}
.text-regular {font-family: _font(family-regular) !important}
.text-default {font-family: _font(family-default) !important}
.text-light {font-family: _font(family-light) !important}
.text-italic, .italic {font-style: _font(style-italic) !important}
@PixelHeadsLtd
PixelHeadsLtd / table-boxed
Created November 17, 2025 18:01
Migrated gist (migrated)
<table class="boxed">
<thead>
<th>Status</th>
<th>Approver</th>
<th>Created date</th>
<th>Modified date</th>
</thead>
<tbody>
<tr *ngFor="let approval of approvals">
<td><span class="alert-shield" ngClass="{{ approval.statusClass }}">{{ approval.status }}</span>
@PixelHeadsLtd
PixelHeadsLtd / ph-tab-navigation (ng-template)
Last active November 18, 2025 18:02
Migrated gist (migrated)
<nav>
<ph-tab-navigation
[ngTemplate]="true"
[displayTabContent]="false"
(tabChanged)="tabChanged($event)"
(closeTab)="onCloseTab($event)"
defaultTabId="tab2"
>
<ph-tab-navigation-item
*ngFor="let tab of tabsNgTemplate; let i = index"
@PixelHeadsLtd
PixelHeadsLtd / ph-summary-top
Last active November 18, 2025 17:58
Migrated gist (migrated)
<ph-summary-top [displayBlock]="false">
<ph-summary-top-list
class="component"
[verticalDisplay]="false"
[displayBlock]="false"
[highlight]="false"
[itemTitle]="'Employee name'"
[itemDescription]="'Paul Smith'"
[truncate]="true"
maxWidth="10rem"
@PixelHeadsLtd
PixelHeadsLtd / ph-modal
Last active November 18, 2025 15:28
Migrated gist (migrated)
<!--- BUTTON WHERE YOU WANT TO CALL THE MODAL --->
<ph-button
(buttonClick)="openModal()"
buttonClass="primary"
fieldClass="boxed"
buttonLabel="Modal"
buttonText="Show modal"
>
</ph-button>
@PixelHeadsLtd
PixelHeadsLtd / ph-tag
Last active November 19, 2025 09:42
Migrated gist (migrated)
<ph-tag
[isLightBlue]="true"
tagText="Your tag text"
(removeTag)="onClick()"
>
</ph-tag>
@PixelHeadsLtd
PixelHeadsLtd / ph-progress-circle (panel view)
Last active November 18, 2025 15:57
Migrated gist (migrated)
<div class="flex-group flex-start">
<a class="text-decoration-none" routerLink="/progress-circle">
<ph-progress-circle
[panelView]="true"
[isSmall]="false"
headerColor="bg-ph-light-blue-15"
value="200/1000"
name="Total reviews"
percent="20"
tooltipMinWidth="12rem"
@PixelHeadsLtd
PixelHeadsLtd / ph-blade (router-outlet)
Last active November 18, 2025 10:28
Migrated gist (migrated)
<!-- BUTTON TO TRIGGER THE BLADE -->
<ph-button
(buttonClick)="bladeIsOpen($event)"
buttonText="Open blade"
buttonClass="primary"
fieldClass="label-hidden"
>
</ph-button>
<!----------------------------------------------------------->