0%
OneHub

Tutorial Code to display two orange lines above and below the section names

New threads Top posters New members General forum statistics

    • Thread
      Forum
      Messages
      View
      Date
      By
      Last reply
  • Loading…
  • Loading…
  • Forum statistics

    Threads
    228
    Messages
    286
    Members
    11
    Latest member
    PuNkReAS
    Member time online
    1d 7h 42m
68 0 0

OneHub

SUPER ADMIN
Joined
Sep 3, 2025
Messages
267
Reaction score
17
5 MONTHS
5 MONTHS OF SERVICE

Code to display two orange lines above and below the section names


1- Preview after installation
[1Kho.net™] Code to display two orange lines above and below the section names-1.gif


2- Copy the following code into the extra.less template:

Less:
@media (min-width: 651px) {
  .node .node-title a::after {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 1;
    transform: translate(0, 0);
  }
}
.node--forum:hover .node-title a::before, .node--forum .node-title a:focus-visible::before {
  transform: scaleX(1);
}
.node--forum .node-title a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: hsl(24,100%,62%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
    transition-property: transform;
    transition-duration: 0.25s;
    transition-timing-function: ease;
    transition-delay: 0s;
    transition-behavior: normal;
}

.node--forum:hover .node-title a, .node--forum .node-title a:focus-visible {
  text-decoration-color: hsl(24,100%,62%);
}
.node--forum .node-title a {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: underline;
    text-decoration-color: currentcolor;
    text-decoration-thickness: auto;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .2s ease;
    transition-property: text-decoration-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    transition-delay: 0s;
    transition-behavior: normal;
}

html[data-logged-in="true"] .node--unread .node-title::before {
  color: hsl(0,0%,100%);
  color: var(--new-badge-color, hsl(0,0%,100%));
  background: hsl(28,86%,51%);
  background: var(--new-badge-background, hsl(28,86%,51%));
  display: inline-block;
  font-size: 9px;
  line-height: 2;
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 4px;
  vertical-align: middle;
}

.node--unread .node-title::before {
  display: none;
}

.p-body .node-icon i::before {
  text-shadow: inherit;
  color: inherit;
  display: block;
  text-align: center;
  width: auto;
  line-height: inherit;
}

.node--unread .node-icon i {
  opacity: 1;
  color: hsl(116.9, 40.3%, 62.5%);
}

.node:hover .node-icon {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 0 4px hsl(24,100%,50%));
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
  color: #ff6600;
}
.node:hover .node-icon {
  animation: wiggleSpin 1s infinite;
    animation-name: wiggleSpin;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
    animation-timeline: ;
  color: #ff6600;
  filter: drop-shadow(0 0 5px hsla(24,100%,50%,.8));
}

.node-icon {
  width: calc(55 * 1px);
  box-sizing: content-box;
  padding-right: 4px;
}
.node-icon {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  width: 46px;
  padding: 12px 0 12px 12px;
    padding-top: 12px;
    padding-right: 0px;
    padding-bottom: 12px;
    padding-left: 12px;
}
 

Trending content

Back
Top Bottom