Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drawing-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
drawing-app
Commits
a30e4dc6
Commit
a30e4dc6
authored
5 years ago
by
Yuriy Maksymets
Browse files
Options
Downloads
Patches
Plain Diff
A few more styling fixes
parent
c9e6469b
No related branches found
No related tags found
Loading
Pipeline
#101593
passed
5 years ago
Stage: fetch
Stage: deps
Stage: check
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/index.html
+25
-23
25 additions, 23 deletions
public/index.html
public/styles.css
+26
-8
26 additions, 8 deletions
public/styles.css
with
51 additions
and
31 deletions
public/index.html
+
25
−
23
View file @
a30e4dc6
...
...
@@ -36,31 +36,33 @@
Enter peer ID:
<input
id=
"peer-id"
type=
"text"
value=
""
/>
<button
id=
"peer-connect"
>
Connect
</button>
</div>
<div
class=
"top-bar"
>
<div
class=
"dropdown"
>
<button
class=
"dropdown-peers"
><i
class=
"fa fa-bars"
></i></button>
<div
class=
"peers"
>
<ul
id=
"connected-peers"
></ul>
<div
id=
"top-panel"
>
<div
class=
"top-bar"
>
<div
class=
"dropdown"
>
<button
class=
"dropdown-peers"
><i
class=
"fa fa-bars"
></i></button>
<div
class=
"peers"
>
<ul
id=
"connected-peers"
></ul>
</div>
</div>
<input
id=
"room-id"
type=
"text"
value=
""
placeholder=
"Enter a room to connect to"
size=
"25"
color=
"gray"
/>
<button
id=
"room-connect"
>
Connect
<i
class=
"fa fa-link"
></i></button>
</div>
<div
id=
"tools-panel"
>
<button
id=
"pen-tool"
class=
"selected"
>
<i
class=
"fa fa-paint-brush"
></i>
</button>
<button
id=
"eraser-tool"
><i
class=
"fa fa-eraser"
></i></button>
<div
id=
"connected-room-info"
>
You are connected to a room:
<span
id=
"connected-room-id"
></span>
</div>
</div>
<input
id=
"room-id"
type=
"text"
value=
""
placeholder=
"Enter a room to connect to"
size=
"25"
color=
"gray"
/>
<button
id=
"room-connect"
>
Connect
<i
class=
"fa fa-link"
></i></button>
</div>
<div
id=
"connected-room-info"
>
You are connected to a room:
<span
id=
"connected-room-id"
></span>
</div>
<div
style=
"display: none;"
>
<button
id=
"pen-tool"
class=
"selected"
>
<i
class=
"fa fa-paint-brush"
></i>
</button>
<button
id=
"eraser-tool"
><i
class=
"fa fa-eraser"
></i></button>
</div>
<svg
id=
"canvas"
>
...
...
This diff is collapsed.
Click to expand it.
public/styles.css
+
26
−
8
View file @
a30e4dc6
body
{
background-color
:
black
;
margin
:
0
;
}
#canvas
{
width
:
100%
;
width
:
calc
(
100vw
-
8px
)
;
height
:
100%
;
position
:
absolute
;
position
:
fixed
;
background-color
:
white
;
z-index
:
-1
;
border
:
4px
solid
red
;
}
#tools-panel
{
padding-top
:
8px
;
display
:
flex
;
align-items
:
center
;
}
#connected-room-info
{
display
:
none
;
color
:
white
;
flex
:
1
;
text-align
:
right
;
}
button
.selected
{
background-color
:
lightgray
;
}
#top-panel
{
padding
:
8px
;
}
.top-bar
{
background-color
:
black
;
width
:
100%
;
height
:
36pt
;
float
:
left
;
height
:
36px
;
display
:
flex
;
align-items
:
center
;
align-items
:
stretch
;
z-index
:
999
;
}
.dropdown
{
position
:
relative
;
display
:
inline-block
;
padding
:
0.2%
;
}
.dropdown-peers
{
...
...
@@ -42,6 +56,8 @@ button.selected {
cursor
:
pointer
;
border-radius
:
4px
;
transition-duration
:
0.4s
;
height
:
100%
;
width
:
36px
;
}
.peers
{
...
...
@@ -92,15 +108,17 @@ button.selected {
#room-id
{
flex
:
1
;
padding
:
10px
;
margin
:
0
8px
;
box-sizing
:
border-box
;
opacity
:
0.8
;
border-radius
:
4px
;
}
#room-connect
{
background-color
:
#2f2f2f
;
color
:
white
;
padding
:
12
px
;
font-size
:
1
6
px
;
padding
:
8
px
;
font-size
:
1
2
px
;
border
:
none
;
cursor
:
pointer
;
border-radius
:
4px
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment