.logo { text-align: center; height: 30px; line-height: 30px; cursor: pointer; margin-top: 24px; margin-bottom: 24px; overflow: hidden; img { width: 30px; margin-right: 8px; } span { vertical-align: top; font-size: 16px; color: #eeeeee; text-transform: uppercase; display: inline-block; } } :global .ant-layout-sider-collapsed { :local .logo { height: 24px; line-height: 24px; img { width: 24px; margin-left: 8px; } span { display: none; } } }