.custom-capsule { width: 100%; display: flex; align-items: center; justify-content: center; } .custom-capsule__icon { flex: 1; position: relative; } .custom-capsule__icon.home:before { content: ''; display: block; position: absolute; left: -1px; top: 50%; transform: translateY(-50%); width: 1px; height: 18px; background: #e7e7e7; }