memos/web/src/less/memo-resources.less

56 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-09-09 02:53:02 +03:00
.resource-wrapper {
@apply w-full flex flex-col justify-start items-start;
> .images-wrapper {
2022-11-17 16:01:26 +03:00
@apply w-full flex mt-2 pb-1;
2022-09-09 02:53:02 +03:00
2022-11-24 15:22:54 +03:00
> .memo-resource {
@apply w-auto h-auto shrink-0 grow-0 cursor-pointer rounded;
2022-09-09 02:53:02 +03:00
> img {
2022-11-19 12:36:25 +03:00
@apply rounded hover:shadow;
2022-11-17 16:01:26 +03:00
}
}
&.row {
@apply flex-row justify-start items-start overflow-x-auto overflow-y-hidden;
2022-11-24 15:22:54 +03:00
> .memo-resource {
@apply max-w-xs h-auto max-h-40 mr-2 last:mr-0;
2022-11-17 16:01:26 +03:00
> img {
@apply w-auto max-h-40;
}
}
}
&.col {
@apply flex-col justify-start items-start;
2022-11-24 15:22:54 +03:00
> .memo-resource {
2022-11-19 12:36:25 +03:00
@apply w-full h-auto mb-2 last:mb-0;
2022-11-17 16:01:26 +03:00
> img {
2022-11-19 12:36:25 +03:00
@apply w-full h-auto shadow;
2022-11-17 16:01:26 +03:00
}
2022-09-09 02:53:02 +03:00
}
}
}
2022-10-01 05:02:16 +03:00
> .other-resource-wrapper {
@apply w-full flex flex-row justify-start flex-wrap;
> .other-resource-container {
2022-11-12 16:22:51 +03:00
@apply mt-1 mr-1 max-w-full flex flex-row justify-start items-center flex-nowrap bg-gray-100 px-2 py-1 rounded cursor-pointer hover:bg-gray-200;
2022-10-01 05:02:16 +03:00
> .icon-img {
@apply w-4 h-auto mr-1 text-gray-500;
}
> .name-text {
@apply text-gray-500 text-sm max-w-xs truncate font-mono;
}
}
}
2022-09-09 02:53:02 +03:00
}