JSFiddle - React, Tailwind, and code Playground

by Kocsten

HTML

<ol>
  <li>
    <h4>ZORNET.RU</h4>
    <p>Здесь находится описание под любую тематику, что можно поставить ссылку на переход по сайту.</p>
  </li>
  <li>
    <h4>ZORNET.RU</h4>
    <p>Здесь находится описание под любую тематику, что можно поставить ссылку на переход по сайту.</p>
  </li>
  <li>
    <h4>List Item</h4>
    <p>Описание.</p>
    <p>Второе описание.</p>
  </li>
  <li>
    <h4>List Item</h4>
    <p>Описание.</p>
  </li>
</ol>

CSS

@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

ol, li, p, h4 {
  margin: 0;
}

body {
  background: #FFF;
  max-width: 80%;
  width: 500px;
  margin: 40px auto;
  font: normal 16px/24px "Montserrat", "Helvetica Neue", sans-serif;
}

h3 {
  font-size: 1.53rem;
  margin: 14px 0;
  text-align: center;
}

ol {
  counter-reset: section;
}

li {
    list-style-type: none;
    position: relative;
    font-size: 1.3rem;
    padding: 14.7px;
    margin-bottom: 14.7px;
    background: #075011;
    color: #f1ecec;
}

h4 {
  position: relative;
  padding-bottom: 10px;
}

h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background: white;
}

p {
  font-size: .9rem; 
  line-height: 1.4rem;
  margin-top: 15px;
}

li::before {
    counter-increment: section;
    content: counter(section);
    text-align: center;
    display: inline-block;
    color: #000;
    border-radius: 50%;
    position: absolute;
    left: -65px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    font-size: 2rem;
    width: 25px;
    height: 25px;
    border: 2px solid #000;
}