Skip to content

Commit f512820

Browse files
author
Cathy Siller
committed
refactor(helix-ui): refactor links into helix-ui
1 parent d49f1eb commit f512820

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

source/components/typography/_explorer.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import (reference) '_typography';
2+
13
.font-roboto {
24
font-family: "Roboto", sans-serif;
35
}
@@ -11,3 +13,9 @@
1113
.weight-regular { font-weight: 400; }
1214
.weight-medium { font-weight: 500; }
1315
.weight-bold { font-weight: 700; }
16+
17+
a {
18+
&.pseudo-active {
19+
&:extend(a:active);
20+
}
21+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
a {
2+
color: @blue-700;
3+
text-decoration: none;
4+
5+
&:hover,
6+
&:active {
7+
color: @blue-500;
8+
cursor: pointer;
9+
text-decoration: none;
10+
}
11+
12+
&.disabled {
13+
color: @gray-600;
14+
pointer-events: none;
15+
}
16+
}

source/components/typography/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,23 @@ <h2 id="inline-text-elements">Inline Text Elements</h1>
151151
</p>
152152
</div>
153153
</section>
154+
155+
<section><!-- Links -->
156+
<h2 id="links">Links</h2>
157+
158+
<!-- explanation goes here -->
159+
160+
<div class="demo">
161+
<p>
162+
<strong>Reference Links</strong><br />
163+
Reference links are super common and typically used to, well, refer, you
164+
to something and somewhere else, whether that's in our interface or not.
165+
For Rackspace, this likely means to help and support articles. If you
166+
want to ask someone to do something, use a <a href="#">button.</a>
167+
</p>
168+
<p>
169+
<strong>Pressed State</strong><br />
170+
<a href="#" class="pseudo-active">Pressed Link</a>
171+
</p>
172+
</div>
173+
</section>

source/styles/helix-ui.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
@import 'grid/_grid';
1717
@import 'navigation/_navigation';
1818
@import 'breadcrumbs/_breadcrumbs';
19+
@import 'typography/_typography';
1920

2021
/* ===== Text Helpers ===== */
2122
// Ripped from Boostrap (may not need all of these)

0 commit comments

Comments
 (0)