qyle commited on
Commit
f63ea4d
·
verified ·
1 Parent(s): e3cf01b

made non-text elements unselectable

Browse files
Files changed (2) hide show
  1. static/styles/base.css +14 -4
  2. templates/index.html +3 -3
static/styles/base.css CHANGED
@@ -7,18 +7,28 @@ body {
7
  color: #f5f5f5;
8
  }
9
 
10
- button {
11
- font-size: 1rem;
12
- }
13
-
14
  body.no-scroll {
15
  overflow: hidden;
16
  }
17
 
 
 
 
 
 
18
  a {
19
  color: #4da6ff;
20
  }
21
 
 
 
 
 
 
 
 
 
 
22
  /* SVG ICONS */
23
  svg {
24
  width: 16px;
 
7
  color: #f5f5f5;
8
  }
9
 
 
 
 
 
10
  body.no-scroll {
11
  overflow: hidden;
12
  }
13
 
14
+ button {
15
+ font-size: 1rem;
16
+ user-select: none;
17
+ }
18
+
19
  a {
20
  color: #4da6ff;
21
  }
22
 
23
+ label, select, legend {
24
+ user-select: none;
25
+ }
26
+
27
+ .unselectable {
28
+ user-select: none;
29
+ }
30
+
31
+
32
  /* SVG ICONS */
33
  svg {
34
  width: 16px;
templates/index.html CHANGED
@@ -145,7 +145,7 @@
145
  </div>
146
 
147
  <div class="form-group">
148
- <span class="group-label" data-i18n="label_role"></span>
149
  <div class="checkbox-grid">
150
  <label for="role-patient"><input type="checkbox" name="role" value="patient" id="role-patient"><span data-i18n="role_patient"></span></label>
151
  <label for="role-clinician"><input type="checkbox" name="role" value="clinician" id="role-clinician"><span data-i18n="role_clinician"></span></label>
@@ -192,7 +192,7 @@
192
  <!-- Status/Comment line -->
193
  <div class="status-comment">
194
  <span data-i18n="ready" class="status-ok" id="status"></span>
195
- <span id="leave-comment"><a href="#" data-i18n="link_comment"></a></span>
196
  </div>
197
 
198
  <!-- Comment overlay -->
@@ -224,7 +224,7 @@
224
  <!-- No files added yet -->
225
  </div>
226
  <h3 data-i18n="file_add_title"></h3>
227
- <div id="file-drop-zone" class="file-drop-area">
228
  <p><span data-i18n="file_add_instructions_prefix"></span><a href="#" data-i18n="click"></a><span data-i18n="file_add_instructions_suffix"></span></p>
229
  <input
230
  type="file"
 
145
  </div>
146
 
147
  <div class="form-group">
148
+ <span class="group-label unselectable" data-i18n="label_role"></span>
149
  <div class="checkbox-grid">
150
  <label for="role-patient"><input type="checkbox" name="role" value="patient" id="role-patient"><span data-i18n="role_patient"></span></label>
151
  <label for="role-clinician"><input type="checkbox" name="role" value="clinician" id="role-clinician"><span data-i18n="role_clinician"></span></label>
 
192
  <!-- Status/Comment line -->
193
  <div class="status-comment">
194
  <span data-i18n="ready" class="status-ok" id="status"></span>
195
+ <span id="leave-comment" class="unselectable"><a href="#" data-i18n="link_comment"></a></span>
196
  </div>
197
 
198
  <!-- Comment overlay -->
 
224
  <!-- No files added yet -->
225
  </div>
226
  <h3 data-i18n="file_add_title"></h3>
227
+ <div id="file-drop-zone" class="file-drop-area unselectable">
228
  <p><span data-i18n="file_add_instructions_prefix"></span><a href="#" data-i18n="click"></a><span data-i18n="file_add_instructions_suffix"></span></p>
229
  <input
230
  type="file"