.code-config-item { position: relative; width: calc(25% - 15px); padding: 20px; background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%); border: 2px solid white; border-radius: 4px; box-shadow: 0px 3px 10px rgba(164, 169, 181, 0.13); cursor: pointer; &:hover { border-color: @primary-color; } @media screen and (max-width: 1860px) { & { width: calc(33.33% - 13.33px); } } &__icon { flex: none; width: 16px; height: 16px; margin-right: 10px; } &__name { position: relative; margin-right: 20px; margin-bottom: 0 !important; color: @text-color; font-weight: 500; font-size: 16px; &::after { position: absolute; top: 14px; left: 0; width: 100%; height: 6px; background: linear-gradient( to right, .addAlpha(@primary-color, 0.4) [] 0, .addAlpha(@primary-color, 0) [] 100% ); content: ''; } } &:hover &__name { color: @primary-color; } &__tag { flex: none; padding: 1px 10px; font-size: 13px; border-radius: 2px; &--public { color: @primary-color; background-color: .addAlpha(@primary-color, 0.1) []; border: 1px solid .addAlpha(@primary-color, 0.5) []; } &--private { color: @warning-color; background-color: .addAlpha(@warning-color, 0.1) []; border: 1px solid .addAlpha(@warning-color, 0.5) []; } } :global { .ant-btn { flex: none; color: #808080; } } &__url-box { margin-bottom: 15px; padding: 14px; background-color: .addAlpha(@primary-color, 0.04) []; border-radius: 4px; } &__url { margin-bottom: 15px !important; color: @text-color; font-size: 14px; word-break: break-all; } &__branch { color: @text-color-secondary; font-size: 14px; } &__user, &__time { display: flex; flex: 0 1 content; align-items: center; width: 100%; color: #808080; font-size: 13px; } }