Forking what is left of ZeroNet and hopefully adding an AT Proto Frontend/Proxy
at main 211 lines 19 kB view raw
1 2/* ---- Menu.css ---- */ 3 4 5.menu { 6 background-color: white; padding: 10px 0px; position: absolute; top: 0px; max-height: 0px; overflow: hidden; -webkit-transform: translate(-100%, -30px); -moz-transform: translate(-100%, -30px); -o-transform: translate(-100%, -30px); -ms-transform: translate(-100%, -30px); transform: translate(-100%, -30px) ; pointer-events: none; 7 -webkit-box-shadow: 0px 2px 8px rgba(0,0,0,0.3); -moz-box-shadow: 0px 2px 8px rgba(0,0,0,0.3); -o-box-shadow: 0px 2px 8px rgba(0,0,0,0.3); -ms-box-shadow: 0px 2px 8px rgba(0,0,0,0.3); box-shadow: 0px 2px 8px rgba(0,0,0,0.3) ; -webkit-border-radius: 2px; -moz-border-radius: 2px; -o-border-radius: 2px; -ms-border-radius: 2px; border-radius: 2px ; opacity: 0; -webkit-transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out; -moz-transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out; -o-transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out; -ms-transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out; transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out ; z-index: 99; 8 display: inline-block; z-index: 999; transform-style: preserve-3d; 9} 10.menu.menu-left { -webkit-transform: translate(0%, -30px); -moz-transform: translate(0%, -30px); -o-transform: translate(0%, -30px); -ms-transform: translate(0%, -30px); transform: translate(0%, -30px) ; } 11.menu.menu-left.visible { -webkit-transform: translate(0%, 0px); -moz-transform: translate(0%, 0px); -o-transform: translate(0%, 0px); -ms-transform: translate(0%, 0px); transform: translate(0%, 0px) ; } 12.menu.visible { 13 opacity: 1; -webkit-transform: translate(-100%, 0px); -moz-transform: translate(-100%, 0px); -o-transform: translate(-100%, 0px); -ms-transform: translate(-100%, 0px); transform: translate(-100%, 0px) ; pointer-events: all; 14 -webkit-transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1); -moz-transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1); -o-transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1); -ms-transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1); transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1) ; 15} 16 17.menu-item { 18 display: block; text-decoration: none; color: black; padding: 6px 24px; -webkit-transition: all 0.2s; -moz-transition: all 0.2s; -o-transition: all 0.2s; -ms-transition: all 0.2s; transition: all 0.2s ; border-bottom: none; font-weight: normal; 19 max-height: 150px; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 6; -webkit-box-orient: vertical; display: -webkit-box; 20} 21.menu-item-separator { margin-top: 3px; margin-bottom: 3px; border-top: 1px solid #eee } 22 23.menu-item.noaction { cursor: default } 24.menu-item:hover:not(.noaction) { background-color: #F6F6F6; -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; transition: none ; color: inherit; cursor: pointer; color: black } 25.menu-item:active:not(.noaction), .menu-item:focus:not(.noaction) { background-color: #AF3BFF !important; color: white !important; -webkit-transition: none ; -moz-transition: none ; -o-transition: none ; -ms-transition: none ; transition: none } 26.menu-item.selected:before { 27 content: "L"; display: inline-block; -webkit-transform: rotateZ(45deg) scaleX(-1); -moz-transform: rotateZ(45deg) scaleX(-1); -o-transform: rotateZ(45deg) scaleX(-1); -ms-transform: rotateZ(45deg) scaleX(-1); transform: rotateZ(45deg) scaleX(-1) ; 28 font-weight: bold; position: absolute; margin-left: -14px; font-size: 12px; margin-top: 2px; 29} 30 31.menu-radio { white-space: normal; line-height: 26px } 32.menu-radio a { 33 background-color: #EEE; width: 18.5%;; text-align: center; margin-top: 2px; margin-bottom: 2px; color: #666; font-weight: bold; 34 text-decoration: none; font-size: 13px; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; -ms-transition: all 0.3s; transition: all 0.3s ; text-transform: uppercase; display: inline-block; 35} 36.menu-radio a:hover, .menu-radio a.selected { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; transition: none ; background-color: #AF3BFF !important; color: white !important } 37.menu-radio a.long { font-size: 10px; vertical-align: -1px; } 38 39 40/* ---- Selectbar.css ---- */ 41 42 43.selectbar.visible { margin-top: 0px; visibility: visible } 44.selectbar { 45 position: fixed; top: 0; left: 0; background-color: white; -webkit-box-shadow: 0px 0px 25px rgba(22, 39, 97, 0.2); -moz-box-shadow: 0px 0px 25px rgba(22, 39, 97, 0.2); -o-box-shadow: 0px 0px 25px rgba(22, 39, 97, 0.2); -ms-box-shadow: 0px 0px 25px rgba(22, 39, 97, 0.2); box-shadow: 0px 0px 25px rgba(22, 39, 97, 0.2) ; margin-top: -75px; 46 -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; -ms-transition: all 0.3s; transition: all 0.3s ; visibility: hidden; z-index: 9999; color: black; border-left: 5px solid #ede1f582; width: 100%; 47 padding: 13px; font-size: 13px; font-weight: lighter; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -o-backface-visibility: hidden; -ms-backface-visibility: hidden; backface-visibility: hidden ; 48} 49 50.selectbar .num { margin-left: 15px; min-width: 30px; text-align: right; display: inline-block; } 51.selectbar .size { margin-left: 10px; color: #9f9ba2; min-width: 75px; display: inline-block; } 52.selectbar .actions { display: inline-block; margin-left: 20px; font-size: 13px; text-transform: uppercase; line-height: 20px; } 53.selectbar .action { padding: 5px 20px; border: 1px solid #edd4ff; margin-left: 10px; -webkit-border-radius: 30px; -moz-border-radius: 30px; -o-border-radius: 30px; -ms-border-radius: 30px; border-radius: 30px ; color: #af3bff; text-decoration: none; -webkit-transition: all 0.3s ; -moz-transition: all 0.3s ; -o-transition: all 0.3s ; -ms-transition: all 0.3s ; transition: all 0.3s } 54.selectbar .action:hover { border-color: #c788f3; -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; transition: none ; color: #9700ff } 55.selectbar .delete { color: #AAA; border-color: #DDD; } 56.selectbar .delete:hover { color: #333; border-color: #AAA } 57.selectbar .action:active { background-color: #af3bff; color: white; border-color: #af3bff; -webkit-transition: none ; -moz-transition: none ; -o-transition: none ; -ms-transition: none ; transition: none } 58.selectbar .cancel { margin: 20px; font-size: 10px; text-decoration: none; color: #999; text-transform: uppercase; } 59.selectbar .cancel:hover { color: #333; -webkit-transition: none ; -moz-transition: none ; -o-transition: none ; -ms-transition: none ; transition: none } 60 61/* ---- UiFileManager.css ---- */ 62 63 64body { background-color: #EEEEF5; font-family: "Segoe UI", Helvetica, Arial; height: 95000px; overflow: hidden; } 65body.loaded { height: auto; overflow: auto } 66h1 { font-weight: lighter; } 67 68a { color: #333 } 69a:hover { text-decoration: none } 70input::placeholder { color: rgba(255, 255, 255, 0.3) } 71 72h2 { font-weight: lighter; } 73 74.link { background-color: transparent; outline: 5px solid transparent; -webkit-transition: all 0.3s ; -moz-transition: all 0.3s ; -o-transition: all 0.3s ; -ms-transition: all 0.3s ; transition: all 0.3s } 75.link:active { background-color: #fbf5ff; outline: 5px solid #fbf5ff; -webkit-transition: none ; -moz-transition: none ; -o-transition: none ; -ms-transition: none ; transition: none } 76 77.manager.editing .files { float: left; width: 280px; } 78 79.sidebar-button { 80 display: inline-block; padding: 25px 19px; text-decoration: none; position: absolute; 81 border-right: 1px solid #EEE; line-height: 10px; color: #7801F5; transition: all 0.3s 82} 83.sidebar-button:active { background-color: #f5e7ff; -webkit-transition: none ; -moz-transition: none ; -o-transition: none ; -ms-transition: none ; transition: none } 84/*.sidebar-button:hover { background-color: #fbf5ff; }*/ 85.sidebar-button span { -webkit-transition: 1s all; -moz-transition: 1s all; -o-transition: 1s all; -ms-transition: 1s all; transition: 1s all ; transform-origin: 2.5px 7px; display: inline-block; } 86.manager.sidebar_closed .sidebar-button span { -webkit-transform: rotateZ(180deg); -moz-transform: rotateZ(180deg); -o-transform: rotateZ(180deg); -ms-transform: rotateZ(180deg); transform: rotateZ(180deg) ; } 87.manager.sidebar_closed .files { margin-left: -300px; } 88.manager.sidebar_closed .editor { width: 100%; } 89 90.button { 91 padding: 5px 10px; margin-left: 10px; background-color: #752ff2; border-bottom: 2px solid #caadff; background-position: -50px center; 92 -webkit-border-radius: 2px; -moz-border-radius: 2px; -o-border-radius: 2px; -ms-border-radius: 2px; border-radius: 2px ; text-decoration: none; -webkit-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out; -o-transition: all 0.5s ease-out; -ms-transition: all 0.5s ease-out; transition: all 0.5s ease-out ; display: inline-block; 93 color: #333; font-size: 12px; vertical-align: 2px; text-transform: uppercase; color: white; max-width: 100px; 94} 95.button:hover { background-color: #9e71ed; -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; transition: none ; } 96.button:active { position: relative; top: 1px } 97.button.loading, .button.disabled { color: rgba(255,255,255,0.7);; pointer-events: none; border-bottom: 2px solid #666; background-color: #999; } 98.button.loading { background: #999 url(../img/loading.gif) no-repeat center center; -webkit-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out; -o-transition: all 0.5s ease-out; -ms-transition: all 0.5s ease-out; transition: all 0.5s ease-out ; color: rgba(0,0,0,0); } 99.button.done { background-color: #4dc758; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; -ms-transition: all 0.3s; transition: all 0.3s ; border-color: #4dc758; pointer-events: none; } 100.button.hidden { max-width: 0px; display: inline-block; padding-left: 0px; padding-right: 0px; margin: 0px; } 101 102/* List */ 103 104.files { 105 width: 97%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box ; color: #555; position: relative; z-index: 1; -webkit-transition: all 0.6s; -moz-transition: all 0.6s; -o-transition: all 0.6s; -ms-transition: all 0.6s; transition: all 0.6s ; 106 font-size: 14px; -webkit-box-shadow: 0px 9px 20px -15px #a5cbec; -moz-box-shadow: 0px 9px 20px -15px #a5cbec; -o-box-shadow: 0px 9px 20px -15px #a5cbec; -ms-box-shadow: 0px 9px 20px -15px #a5cbec; box-shadow: 0px 9px 20px -15px #a5cbec ; max-width: 400px; border: 1px solid #EEEEF5; 107} 108.files .tr { white-space: nowrap } 109.files .td { display: inline-block; width: 60px } 110.files .tbody .td { line-height: 18px; vertical-align: bottom; } 111.files .td.name { min-width: 100px } 112.files .td.size { width: 60px; text-align: right; padding-left: 5px; } 113.files .td.status { text-align: right; } 114.files .td.peer { width: 60px } 115.files .td.uploaded { width: 130px; text-align: right; } 116.files .td.added { width: 90px } 117.files .orderby { color: inherit; text-decoration: none; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; -ms-transition: all 0.3s; transition: all 0.3s ; outline: 5px solid transparent; } 118.files .orderby:hover { text-decoration: underline; } 119.files .orderby .icon-arrow-down { opacity: 0; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out ; } 120.files .orderby.selected .icon-arrow-down { opacity: 0.3; } 121.files .orderby:active { background-color: rgba(133, 239, 255, 0.09); outline: 5px solid rgba(133, 239, 255, 0.09); -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; transition: none ; } 122.files .orderby:hover .icon-arrow-down { opacity: 0.5; } 123.files .orderby:not(.desc) .icon-arrow-down { -webkit-transform: rotateZ(180deg); -moz-transform: rotateZ(180deg); -o-transform: rotateZ(180deg); -ms-transform: rotateZ(180deg); transform: rotateZ(180deg) ; } 124.files .tr.editing .td { background-color: #ede1f582; border-top-color: #ece9ef; } 125.files .thead { /*background: -webkit-linear-gradient(358deg, #e7f1f7, #e9f2f72e);background: -moz-linear-gradient(358deg, #e7f1f7, #e9f2f72e);background: -o-linear-gradient(358deg, #e7f1f7, #e9f2f72e);background: -ms-linear-gradient(358deg, #e7f1f7, #e9f2f72e);background: linear-gradient(358deg, #e7f1f7, #e9f2f72e);*/ } 126.files .thead .td { 127 border-top: none; color: #8984c2; background-color: #f7f7fc; 128 font-size: 12px; /*text-transform: uppercase; background-color: transparent; font-weight: bold;*/ 129} 130.files .thead .td a:last-of-type { font-weight: bold; } 131.files .thead .td a { text-decoration: none; } 132.files .thead .td a:hover { text-decoration: underline; } 133.files .tbody { max-height: calc(100vh - 95px); overflow-y: auto; overflow-x: hidden; } 134.files .tr { background-color: white; } 135.files .td { padding: 10px 20px; border-top: 1px solid #EEE; font-size: 13px; white-space: nowrap; } 136.files .td.full { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box ; white-space: pre-line; } 137.files .td.pre { width: 0px; color: transparent; padding-left: 0px; border-left: 2px solid transparent; } 138.files .tbody .td { height: 18px; } 139.files .tbody .td.full { height: auto; } 140.files .td.pre .checkbox-outer { opacity: 0.6; margin-left: -11px; margin-top: -15px; width: 18px; height: 12px; display: inline-block; } 141.files .tr.modified .td.pre { border-left-color: #7801F5 } 142.files .tr.added .td.pre { border-left-color: #00ec93 } 143.files .tr.ignored .td.pre { border-left-color: #999; } 144.files .tr.ignored { opacity: 0.5; } 145.files .tr.optional { background: -webkit-linear-gradient(90deg, #fff6dd, 30%, white, 10%, white);background: -moz-linear-gradient(90deg, #fff6dd, 30%, white, 10%, white);background: -o-linear-gradient(90deg, #fff6dd, 30%, white, 10%, white);background: -ms-linear-gradient(90deg, #fff6dd, 30%, white, 10%, white);background: linear-gradient(90deg, #fff6dd, 30%, white, 10%, white); } 146.files .tr.optional_empty { color: #999; font-style: italic; } 147.files .td.error { background-color: #F44336; color: white; } 148.files .td.site { width: 70px } 149.files .td.site .link { color: inherit; text-decoration: none } 150.files .td.status .percent { 151 -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; -ms-transition: all 1s ease-in-out; transition: all 1s ease-in-out ; display: inline-block; width: 80px; background-color: #EEE; font-size: 10px; 152 height: 15px; line-height: 15px; text-align: center; margin-right: 20px; 153} 154.files .td.name { padding-left: 10px; width: calc(100% - 167px); max-height: 18px; padding-right: 10px; } 155.files .tr.nobuttons .td.name { width: calc(100% - 127px); } 156.files .tr.nobuttons .td.buttons { width: 0px; } 157.files .td.name .title { color: inherit; text-decoration: none } 158.files .td.name .link { display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: -4px; max-width: 100%; } 159.files .pinned .td.name .link { max-width: calc(100% - 40px); } 160.files .thead .td.uploaded { text-align: left } 161.files .thead .td.uploaded .title { padding-left: 7px; } 162.files .peer .icon-profile { background: currentColor; color: #47d094; font-size: 10px; top: 1px; margin-right: 13px } 163.files .peer .icon-profile:before { background: currentColor } 164.files .peer .num { color: #969696; } 165.files .uploaded .uploaded-text { display: inline-block; text-align: right; } 166.files .uploaded .dots-container { display: inline-block; width: 0px; padding-right: 65px;; } 167.files .td.buttons { width: 40px; padding-left: 0px; padding-right: 0px; } 168.files .td.buttons .edit { 169 background-color: #2196f336; -webkit-border-radius: 15px; -moz-border-radius: 15px; -o-border-radius: 15px; -ms-border-radius: 15px; border-radius: 15px ; padding: 1px 9px; font-size: 80%; text-decoration: none; color: #1976D2; 170} 171.files .checkbox-outer { padding: 15px; padding-left: 20px; padding-right: 0px; } 172.files .checkbox { 173 display: inline-block; width: 12px; height: 12px; border: 2px solid #00000014; 174 -webkit-border-radius: 3px; -moz-border-radius: 3px; -o-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px ; vertical-align: -3px; margin-right: 10px; 175} 176.files .selected .checkbox { border-color: #dedede } 177.files .selected .checkbox:after { 178 background-color: #dedede; content: ""; text-decoration: none; display: block; width: 10px; height: 10px; margin-left: 1px; margin-top: 1px; 179} 180.files .tbody .td.size { font-size: 13px } 181.files .tbody .td.added, #PageFiles .files .td.access { font-size: 12px; color: #999 } 182.files .tr.type-dir .name { font-weight: bold; } 183.files .tr.type-parent .name .link { display: inline-block; width: 100%; padding: 5px; margin-top: -5px; } 184.files .foot .td { color: #a4a4a4; background-color: #f7f7fc; } 185.files .foot .create { float: right; text-decoration: none; position: relative; } 186.files .foot .create .link { color: #8c42ed; text-decoration: none; } 187.files .foot .create .link:active { background-color: #8c42ed3b; outline: 5px solid #8c42ed3b; } 188.files .foot .create .menu { top: 40px; } 189 190 191/* Editor */ 192 193.editor { background-color: #F7F7FC; float: left; width: calc(100% - 280px); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box ; -webkit-transition: all 0.6s; -moz-transition: all 0.6s; -o-transition: all 0.6s; -ms-transition: all 0.6s; transition: all 0.6s ; } 194.editor .CodeMirror { height: calc(100vh - 79px); visibility: hidden; } 195.editor textarea { width: 100%; height: 800px; white-space: pre; } 196.editor .title { margin-left: 20px; } 197.editor .editor-head { 198 padding: 15px 20px; padding-left: 45px; font-size: 18px; font-weight: lighter; border: 1px solid #EEEEF5; 199 white-space: nowrap; overflow: hidden; 200} 201.editor.loaded .CodeMirror { visibility: inherit; } 202.editor.error .CodeMirror { display: none; } 203.editor .button.save { min-width: 30px; text-align: center; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; -ms-transition: all 0.3s; transition: all 0.3s ; } 204.editor .button.save.done { min-width: 80px; } 205.editor .error-message { text-align: center; padding: 50px; } 206 207.editor .CodeMirror-foldmarker { 208 line-height: .3; cursor: pointer; background-color: #ffeb3b61; text-shadow: none; font-family: inherit; 209 color: #050505; border: 1px solid #ffdf7f; padding: 0px 5px; 210} 211.editor .CodeMirror-activeline-background { background-color: #F6F6F6 !important; }