mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-28 15:01:26 +08:00
- Update `<UserLink>` to omit `href` entirely when profiles are
unavailable. Clicking now does nothing
- Restore the `.non-clickable` class which was accidentally dropped in
8b4730e5
- Update topic-list, topic-map and about page to use `UserLink`
component, so that they get the automatic unclickable behavior
71 lines
1.1 KiB
SCSS
Vendored
71 lines
1.1 KiB
SCSS
Vendored
// --------------------------------------------------
|
|
// Generic helper classes
|
|
// --------------------------------------------------
|
|
|
|
// Floats
|
|
// --------------------------------------------------
|
|
.pull-left {
|
|
float: left;
|
|
}
|
|
|
|
.pull-right {
|
|
float: right;
|
|
}
|
|
|
|
// Element visibility
|
|
// --------------------------------------------------
|
|
.show {
|
|
display: block;
|
|
}
|
|
|
|
.hide,
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.invisible {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
border: 0;
|
|
}
|
|
|
|
// Contain floats
|
|
// --------------------------------------------------
|
|
.clearfix {
|
|
&::before,
|
|
&::after {
|
|
display: table;
|
|
content: " ";
|
|
}
|
|
|
|
&::after {
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
// Overflow
|
|
// --------------------------------------------------
|
|
.overflow-ellipsis {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
// Clickable elements
|
|
// --------------------------------------------------
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.non-clickable {
|
|
cursor: default;
|
|
}
|