|
| 1 | +/*******************\ |
| 2 | +| High Level Layout | |
| 3 | +\*******************/ |
| 4 | + |
| 5 | +trace-input-form .form-field { |
| 6 | + margin-bottom: 1em; |
| 7 | +} |
| 8 | + |
| 9 | +#trace-input-form .input-area { |
| 10 | + width: 61.8%; |
| 11 | + float: left; |
| 12 | +} |
| 13 | + |
| 14 | +#trace-input-form .feedback-area { |
| 15 | + width: 38.2%; |
| 16 | + float: left; |
| 17 | + padding-left: 1em; |
| 18 | + box-sizing: border-box; |
| 19 | +} |
| 20 | + |
| 21 | +.align-right { |
| 22 | + text-align: right; |
| 23 | +} |
| 24 | + |
| 25 | + |
| 26 | +#trace-input-form .input-label { |
| 27 | + font-size: large; |
| 28 | + font-weight: bold; |
| 29 | + margin-bottom: 3px; |
| 30 | +} |
| 31 | + |
| 32 | +#trace-input-form input[type=text] { |
| 33 | + margin-bottom: 0; |
| 34 | +} |
| 35 | + |
| 36 | +#trace-input-form .input-help { |
| 37 | + padding-left: 22px; |
| 38 | + position: relative; |
| 39 | + margin-top: 5px; |
| 40 | + color: gray; |
| 41 | + font-size: 90%; |
| 42 | +} |
| 43 | + |
| 44 | +#trace-input-form .input-help i:first-child { |
| 45 | + position: absolute; |
| 46 | + left: 0; |
| 47 | +} |
| 48 | + |
| 49 | +/***************\ |
| 50 | +| Feedback Area | |
| 51 | +\***************/ |
| 52 | + |
| 53 | +#trace-input-form .feedback-area .feedback { |
| 54 | + color: steelblue; |
| 55 | +} |
| 56 | +#trace-input-form .feedback-area .feedback:before { |
| 57 | + font-family: FontAwesome; |
| 58 | + margin-right: 3px; |
| 59 | + content: "\f075"; /* fa-comment */ |
| 60 | +} |
| 61 | + |
| 62 | +#trace-input-form .feedback-area .feedback.error { |
| 63 | + color: crimson; |
| 64 | +} |
| 65 | +#trace-input-form .feedback-area .feedback.error:before { |
| 66 | + content: "\f06a"; /* fa-exclamation-circle */ |
| 67 | +} |
| 68 | + |
| 69 | +#trace-input-form .feedback-area .feedback.warning { |
| 70 | + color: goldenrod; |
| 71 | +} |
| 72 | +#trace-input-form .feedback-area .feedback.warning:before { |
| 73 | + content: "\f071"; /* fa-exclamation-triangle */ |
| 74 | +} |
| 75 | + |
| 76 | +/*********************\ |
| 77 | +| File Input Elements | |
| 78 | +\*********************/ |
| 79 | + |
| 80 | +.file-input-button { |
| 81 | + position: relative; |
| 82 | + overflow: hidden; |
| 83 | + background-color: lightgray; |
| 84 | + font-size: 14px; |
| 85 | + text-align: center; |
| 86 | +} |
| 87 | + |
| 88 | +.file-input-button input[type=file] { |
| 89 | + position: absolute; |
| 90 | + opacity: 0; |
| 91 | + right: 0; |
| 92 | + top: 0; |
| 93 | + font-size: 200px; |
| 94 | + direction: ltr; |
| 95 | + cursor: pointer; |
| 96 | + height: 100%; |
| 97 | +} |
| 98 | + |
| 99 | +.file-input-area .file-input-button { |
| 100 | + float: left; |
| 101 | + width: 100px; |
| 102 | + box-sizing: border-box; |
| 103 | + height: 72px; |
| 104 | +} |
| 105 | + |
| 106 | +.file-input-area .file-input-button .prompt { |
| 107 | + margin-top: 12px; |
| 108 | +} |
| 109 | + |
| 110 | +.file-input-area .file-or-msg { |
| 111 | + width: 50px; |
| 112 | + text-align: center; |
| 113 | + font-weight: bold; |
| 114 | + float: left; |
| 115 | + line-height: 72px; |
| 116 | +} |
| 117 | + |
| 118 | +.file-input-area .file-dropzone { |
| 119 | + float: left; |
| 120 | + width: calc(100% - 150px); |
| 121 | + color: gray; |
| 122 | + box-sizing: border-box; |
| 123 | + padding: .5em; |
| 124 | + text-align: center; |
| 125 | + height: 72px; |
| 126 | +} |
| 127 | + |
| 128 | +.file-input-area .file-dropzone.in { |
| 129 | + background-color: lightgray; |
| 130 | +} |
| 131 | + |
| 132 | +.file-input-area .file-dropzone.hover { |
| 133 | + background-color: lightgreen; |
| 134 | +} |
| 135 | + |
| 136 | +.file-input-area .file-dropzone .dropzone-msg { |
| 137 | + border: 2px dashed; |
| 138 | + padding: 1em; |
| 139 | + border-radius: .5em; |
| 140 | +} |
| 141 | + |
| 142 | +.file-input-area .file-dropzone .dropzone-msg:before { |
| 143 | + content: 'Drag a file here'; |
| 144 | +} |
| 145 | +.file-input-area .file-dropzone.in .dropzone-msg:before { |
| 146 | + content: 'Drop it here!'; |
| 147 | +} |
| 148 | + |
| 149 | +/*********************\ |
| 150 | +| File Input Feedback | |
| 151 | +\*********************/ |
| 152 | + |
| 153 | +#trace-input-form .file-input-result { |
| 154 | + margin-top: 5px; |
| 155 | + font-size: small; |
| 156 | + color: gray; |
| 157 | +} |
| 158 | + |
| 159 | +#trace-input-form .file-input-result span { |
| 160 | + font-weight: bold; |
| 161 | + color: darkgreen; |
| 162 | +} |
| 163 | + |
| 164 | +.filetype { |
| 165 | + font-family: monospace; |
| 166 | +} |
0 commit comments