memos/web/src/less/settings/my-account-section.less
STEVEN cd7000da70
feat: responsive view (#75)
* chore: add license

* feat: mobile view
2022-06-19 11:32:49 +08:00

64 lines
1.5 KiB
Text

@import "../mixin.less";
.account-section-container {
> .form-label {
min-height: 28px;
> .normal-text {
@apply first:mr-2 text-base;
}
&.username-label {
@apply w-full flex-wrap;
> input {
@apply grow-0 shadow-inner w-auto px-2 py-1 mr-2 text-base border rounded leading-6 bg-transparent focus:border-black;
}
> .btns-container {
@apply mr-2 shrink-0 flex flex-row justify-start items-center;
> .btn {
@apply text-sm shadow px-4 py-1 leading-6 rounded border hover:opacity-80 bg-gray-50;
&.cancel-btn {
@apply shadow-none border-none bg-transparent;
}
&.confirm-btn {
@apply bg-green-600 text-white;
}
}
}
}
&.password-label {
> .btn {
@apply text-blue-600 ml-1 cursor-pointer hover:opacity-80;
}
}
}
}
.openapi-section-container {
> .value-text {
@apply w-full font-mono text-sm shadow-inner border py-2 px-3 rounded leading-6 break-all whitespace-pre-wrap;
}
> .reset-btn {
@apply mt-2 py-1 px-2 text-sm shadow bg-red-50 border border-red-500 text-red-600 rounded cursor-pointer select-none hover:opacity-80;
}
> .usage-guide-container {
.flex(column, flex-start, flex-start);
@apply mt-2 w-full;
> .title-text {
@apply my-2 text-sm;
}
> pre {
@apply w-full bg-gray-100 shadow-inner py-2 px-3 text-sm rounded font-mono break-all whitespace-pre-wrap;
}
}
}