.code-config-item { position: relative; width: calc(25% - 15px); padding: 20px; background: white; border: 1px solid #eaeaea; border-radius: 4px; cursor: pointer; @media screen and (max-width: 1860px) { & { width: calc(33.33% - 13.33px); } } &__name { position: relative; display: inline-block; height: 24px; margin: 0 10px 0 0 !important; color: @text-color; font-size: 16px; } &__tag { padding: 4px; color: @primary-color; font-size: 12px; background-color: .addAlpha(@primary-color, 0.1) []; border-radius: 4px; } &__url { color: @text-color-secondary; font-size: 14px; } &__description { height: 44px; margin-bottom: 20px; color: @text-color-secondary; font-size: 14px; .multiLine(2); } &__time { display: flex; flex: 0 1 content; align-items: center; width: 100%; color: #808080; font-size: 13px; } &:hover { border-color: @primary-color; box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.1); .resource-item__name { color: @primary-color; } } } .resource-item__name { &::after { position: absolute; top: 14px; left: 0; width: 100%; height: 6px; background: linear-gradient(to right, rgba(22, 100, 255, 0.3) 0, rgba(22, 100, 255, 0) 100%); content: ''; } }