[Front-end] Fixes for Hyperlinks
Fixes #1710 Converted to span to confine clickable area to text only; Link now uses `overflow: hidden` in frame; Normalized font-size when .s-button;
This commit is contained in:
@@ -72,11 +72,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hyperlink objects
|
||||||
.s-hyperlink {
|
.s-hyperlink {
|
||||||
// Hyperlink objects
|
.label {
|
||||||
|
font-size: 0.8rem !important;
|
||||||
|
}
|
||||||
&:not(.s-button) {
|
&:not(.s-button) {
|
||||||
color: $colorKey;
|
color: $colorKey;
|
||||||
font-size: 0.8rem;
|
|
||||||
&:hover { color: $colorKeyHov; }
|
&:hover { color: $colorKeyHov; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,7 +122,10 @@
|
|||||||
|
|
||||||
/********************************************************** OBJECT TYPES */
|
/********************************************************** OBJECT TYPES */
|
||||||
.t-object-type-hyperlink {
|
.t-object-type-hyperlink {
|
||||||
.s-hyperlink.s-button {
|
.object-holder {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.l-hyperlink.s-button {
|
||||||
// When a hyperlink is a button in a frame, make it expand to fill out to the object-holder
|
// When a hyperlink is a button in a frame, make it expand to fill out to the object-holder
|
||||||
@extend .abs;
|
@extend .abs;
|
||||||
.label {
|
.label {
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
this source code distribution or the Licensing information page available
|
this source code distribution or the Licensing information page available
|
||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<a class="s-hyperlink" ng-controller="HyperlinkController as hyperlink" href="{{domainObject.getModel().url}}"
|
<a class="l-hyperlink s-hyperlink" ng-controller="HyperlinkController as hyperlink" href="{{domainObject.getModel().url}}"
|
||||||
ng-attr-target="{{hyperlink.openNewTab() ? '_blank' : undefined}}"
|
ng-attr-target="{{hyperlink.openNewTab() ? '_blank' : undefined}}"
|
||||||
ng-class="{
|
ng-class="{
|
||||||
's-button': hyperlink.isButton()
|
's-button': hyperlink.isButton()
|
||||||
}">
|
}">
|
||||||
<div class="label">{{domainObject.getModel().displayText}}</div>
|
<span class="label">{{domainObject.getModel().displayText}}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user