| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- * {
- margin: 0;
- padding: 0;
- }
- .pd-page {
- width: 100vw;
- min-width: 375px;
- height: 100vh;
- padding: 0.75rem;
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- overflow: hidden;
- }
- .pd-page.pd-page-centered {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- /* Global form styles start */
- input:not([type="radio"]):not([type="checkbox"]),
- textarea {
- width: 100%;
- display: block;
- box-sizing: border-box;
- border-radius: 0.375rem;
- border: 1px solid #ced4da;
- font-size: 14px;
- outline: none;
- }
- input:not([type="radio"]):not([type="checkbox"]) {
- height: 38px;
- line-height: 30px;
- padding: 4px 0.375rem;
- }
- input[type="checkbox"] {
- width: 16px;
- height: 16px;
- }
- textarea {
- height: 100%;
- padding: 0.375rem;
- resize: none;
- }
- button {
- box-sizing: border-box;
- padding: 6px 12px;
- background-color: #fff;
- line-height: 16px;
- color: #212529;
- cursor: pointer;
- font-size: 14px;
- border: 1px solid #ced4da;
- border-radius: 0.375rem;
- }
- /* Global form styles end */
- /* Loading styles start */
- /* Loading spin from https://loading.io/css/ */
- .pd-loading-cover {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.6);
- z-index: 9;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .pd-loading-cover .pd-loading-spin {
- display: inline-block;
- transform: translateZ(1px);
- }
- .pd-loading-cover .pd-loading-spin .pd-loading-spin-inner {
- display: inline-block;
- width: 64px;
- height: 64px;
- margin: 8px;
- border-radius: 50%;
- background: #fff;
- animation: pd-loading-spin 5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
- }
- @keyframes pd-loading-spin {
- 0%,
- 100% {
- animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
- }
- 0% {
- transform: rotateY(0deg);
- }
- 50% {
- transform: rotateY(1800deg);
- animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
- }
- 100% {
- transform: rotateY(3600deg);
- }
- }
- /* Loading styles end */
- /* Modal styles start */
- .pd-modal {
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- background-color: rgba(0, 0, 0, 0.6);
- z-index: 8;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .pd-modal.pd-modal-hidden {
- display: none;
- }
- .pd-modal .pd-modal-content {
- background-color: #fff;
- border: 1px solid #dee2e6;
- border-radius: 0.5rem;
- width: 500px;
- max-width: 90%;
- max-height: 60%;
- position: relative;
- font-size: 16px;
- cursor: pointer;
- }
- .pd-modal .pd-modal-content .pd-modal-close {
- position: absolute;
- right: 1rem;
- top: 0.75rem;
- font-size: 1.5rem;
- }
- .pd-modal .pd-modal-content .pd-modal-title {
- padding: 1rem;
- border-bottom: 1px solid #dee2e6;
- font-weight: 500;
- }
- .pd-modal .pd-modal-content .pd-modal-body {
- padding: 1rem;
- }
- .pd-modal .pd-modal-content .pd-modal-footer {
- display: flex;
- justify-content: flex-end;
- border-top: 1px solid #dee2e6;
- padding: 1rem;
- }
- .pd-modal .pd-modal-content .pd-modal-footer button:not(:last-child) {
- margin-right: 0.5rem;
- }
- /* Modal styles end */
- /* Login frame styles start */
- .pd-login-frame {
- width: 375px;
- margin-top: 16px;
- box-sizing: border-box;
- padding: 16px;
- color: #212529;
- display: flex;
- flex-direction: column;
- }
- .pd-login-frame .pd-login-input {
- margin-bottom: 8px;
- }
- .pd-login-frame .pd-login-input.error {
- border-color: #dc3545;
- }
- .pd-login-frame .pd-login-input-label {
- margin-bottom: 4px;
- font-size: 14px;
- }
- .pd-login-frame .pd-login-btn {
- background-color: #0d6efd;
- margin-top: 8px;
- height: 38px;
- color: #fff;
- }
- /* Login frame styles end */
- /* TopBar styles start */
- .pd-top-bar {
- width: 100%;
- display: flex;
- margin-bottom: 0.75rem;
- justify-content: space-between;
- box-sizing: border-box;
- flex-shrink: 0;
- }
- .pd-top-bar .pd-top-bar-mode-switcher {
- border: 1px solid #ced4da;
- border-radius: 0.375rem;
- box-sizing: border-box;
- font-size: 14px;
- }
- .pd-top-bar .pd-top-bar-mode-switcher.hidden {
- display: none;
- }
- .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn {
- border: none;
- }
- .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn.active {
- background-color: #0d6efd;
- color: #fff;
- }
- .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn.disabled {
- background-color: #e9ecef;
- color: #212529;
- cursor: not-allowed;
- pointer-events: none;
- }
- .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:first-child {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
- .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:last-child {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- .pd-top-bar .pd-top-bar-mode-switcher .pd-top-bar-btn:nth-child(2) {
- padding: 6px 10px;
- border-left: 1px solid #ced4da;
- border-right: 1px solid #ced4da;
- border-radius: 0;
- }
- .pd-top-bar .pd-top-bar-title {
- line-height: 30px;
- font-size: 24px;
- font-weight: 500;
- text-align: center;
- width: 100%;
- }
- .pd-top-bar .pd-top-bar-tool-icons {
- height: 30px;
- line-height: 28px;
- box-sizing: border-box;
- padding: 0 8px;
- border: 1px solid #ced4da;
- border-radius: 0.375rem;
- }
- .pd-top-bar .pd-top-bar-tool-icons i.bi {
- margin-right: 16px;
- font-size: 16px;
- cursor: pointer;
- height: 16px;
- width: 16px;
- }
- .pd-top-bar .pd-top-bar-tool-icons i.bi::before {
- line-height: unset;
- }
- .pd-top-bar .pd-top-bar-tool-icons i.bi:hover {
- color: #0d6efd;
- }
- .pd-top-bar .pd-top-bar-tool-icons i.bi:last-child {
- margin-right: 0;
- }
- /* TopBar styles end */
- /* Editor styles start */
- .pd-editor {
- width: 100%;
- display: flex;
- justify-content: space-between;
- box-sizing: border-box;
- overflow: hidden;
- flex-shrink: 0;
- flex-grow: 1;
- }
- .pd-editor .pd-edit-view,
- .pd-editor .pd-read-view {
- height: calc(
- 100vh - 0.75rem * 3 - 30px
- ); /* Exact height to prevent flex height expansion */
- border: 1px solid #ced4da;
- border-radius: 0.375rem;
- box-sizing: border-box;
- color: #212529;
- overflow: auto;
- flex-shrink: 0;
- flex-basis: 0;
- flex-grow: 1;
- }
- .pd-editor .pd-edit-view textarea {
- border: none;
- }
- .pd-editor .pd-edit-view textarea::-webkit-scrollbar,
- .pd-editor .pd-read-view::-webkit-scrollbar {
- width: 8px;
- height: 8px;
- }
- .pd-editor .pd-edit-view textarea::-webkit-scrollbar-track,
- .pd-editor .pd-read-view::-webkit-scrollbar-track {
- background-color: transparent;
- }
- .pd-editor .pd-edit-view textarea::-webkit-scrollbar-thumb,
- .pd-editor .pd-read-view::-webkit-scrollbar-thumb {
- background-color: #d6dee1;
- border-radius: 8px;
- }
- .pd-editor .pd-edit-view textarea::-webkit-scrollbar-thumb:hover,
- .pd-editor .pd-read-view::-webkit-scrollbar-thumb:hover {
- background-color: #a8bbbf;
- }
- .pd-editor .pd-read-view {
- padding: 0.375rem;
- }
- .pd-editor.pd-mode-both .pd-edit-view {
- margin-right: 0.375rem;
- }
- .pd-editor.pd-mode-both .pd-read-view {
- margin-left: 0.375rem;
- }
- .pd-editor.pd-mode-edit .pd-read-view {
- display: none;
- }
- .pd-editor.pd-mode-read .pd-edit-view {
- display: none;
- }
- /* Editor styles end */
- /* HomeBar styles start */
- .pd-home-bar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .pd-home-bar button {
- width: unset;
- }
- .pd-home-bar .pd-home-user-info button {
- margin-left: 8px;
- }
- /* HomeBar styles end */
- /* PostList styles start */
- .pd-post-list {
- width: 100%;
- display: grid;
- row-gap: 16px;
- column-gap: 16px;
- grid-template-columns: 1fr 1fr 1fr 1fr;
- margin-top: 16px;
- padding-bottom: 16px;
- overflow: auto;
- }
- .pd-post-list .pd-post {
- width: 100%;
- min-width: 180px;
- border: 1px solid #dee2e6;
- border-radius: 0.375rem;
- box-sizing: border-box;
- position: relative;
- padding: 1rem;
- display: flex;
- font-size: 16px;
- flex-direction: column;
- }
- .pd-post-list .pd-post:last-child {
- margin-right: 0;
- }
- .pd-post-list .pd-post span {
- margin-bottom: 8px;
- }
- .pd-post-list .pd-post .pd-post-title {
- font-weight: 500;
- }
- .pd-post-list .pd-post .pd-post-action {
- position: absolute;
- right: 1rem;
- top: 0.75rem;
- font-size: 1.5rem;
- z-index: 1;
- }
- .pd-post-list .pd-post .pd-post-action i {
- cursor: pointer;
- }
- .pd-post-list .pd-post .pd-post-digest {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- /* PostList styles end */
|