.page { background-color: #a0bcda54; padding: 20px; min-height: 100vh; .pageTitle { display: flex; padding: 0 10px; margin-bottom: 10px; height: 40px; align-items: center; position: relative; justify-content: space-between; } .titleBar { width: 8px; height: 30px; background-color: #366cda; float: left; } .title { font-size: 22px; padding-left: 12px; } .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } }