Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
chip-ahoyto
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
João Magalhães
chip-ahoyto
Commits
4230ef47
Verified
Commit
4230ef47
authored
2 years ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
feat: better modal
parent
d937a4d0
No related branches found
No related tags found
No related merge requests found
Pipeline
#718
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/web/index.css
+19
-1
19 additions, 1 deletion
examples/web/index.css
examples/web/index.html
+12
-12
12 additions, 12 deletions
examples/web/index.html
with
31 additions
and
13 deletions
examples/web/index.css
+
19
−
1
View file @
4230ef47
...
@@ -263,6 +263,10 @@ p {
...
@@ -263,6 +263,10 @@ p {
padding
:
4px
10px
4px
10px
;
padding
:
4px
10px
4px
10px
;
}
}
.tiny-button.padded-large
{
padding
:
4px
14px
4px
14px
;
}
.tiny-button.rounded
{
.tiny-button.rounded
{
padding
:
4px
6px
4px
6px
;
padding
:
4px
6px
4px
6px
;
}
}
...
@@ -346,6 +350,12 @@ p {
...
@@ -346,6 +350,12 @@ p {
height
:
100%
;
height
:
100%
;
justify-content
:
center
;
justify-content
:
center
;
left
:
0px
;
left
:
0px
;
opacity
:
0
;
-o-opacity
:
0
;
-ms-opacity
:
0
;
-moz-opacity
:
0
;
-khtml-opacity
:
0
;
-webkit-opacity
:
0
;
pointer-events
:
none
;
pointer-events
:
none
;
position
:
fixed
;
position
:
fixed
;
text-align
:
center
;
text-align
:
center
;
...
@@ -390,7 +400,15 @@ p {
...
@@ -390,7 +400,15 @@ p {
}
}
.modal-container
>
.modal
.modal-buttons
{
.modal-container
>
.modal
.modal-buttons
{
font-size
:
18
px
;
font-size
:
20
px
;
margin-top
:
24px
;
margin-top
:
24px
;
text-align
:
center
;
text-align
:
center
;
}
}
.modal-container
>
.modal
.modal-buttons
>
.tiny-button
{
margin-right
:
12px
;
}
.modal-container
>
.modal
.modal-buttons
>
.tiny-button
:last-child
{
margin-right
:
0px
;
}
This diff is collapsed.
Click to expand it.
examples/web/index.html
+
12
−
12
View file @
4230ef47
...
@@ -32,9 +32,9 @@
...
@@ -32,9 +32,9 @@
<dd><span
id=
"rom-size"
>
-
</span>
bytes
</dd>
<dd><span
id=
"rom-size"
>
-
</span>
bytes
</dd>
<dt>
CPU Frequency
</dt>
<dt>
CPU Frequency
</dt>
<dd>
<dd>
<span
id=
"logic-frequency-minus"
class=
"tiny-button
tiny-button-left
"
>
-
</span>
<span
id=
"logic-frequency-minus"
class=
"tiny-button"
>
-
</span>
<span
id=
"logic-frequency"
>
-
</span>
Hz
<span
id=
"logic-frequency"
>
-
</span>
Hz
<span
id=
"logic-frequency-plus"
class=
"tiny-button
tiny-button-right
"
>
+
</span></dd>
<span
id=
"logic-frequency-plus"
class=
"tiny-button"
>
+
</span></dd>
<dt>
Framerate
</dt>
<dt>
Framerate
</dt>
<dd><span
id=
"fps-count"
>
-
</span>
fps
</dd>
<dd><span
id=
"fps-count"
>
-
</span>
fps
</dd>
</dl>
</dl>
...
@@ -42,25 +42,25 @@
...
@@ -42,25 +42,25 @@
<div
id=
"separator-diag"
class=
"separator"
></div>
<div
id=
"separator-diag"
class=
"separator"
></div>
<div
class=
"section"
>
<div
class=
"section"
>
<div
class=
"button-area"
>
<div
class=
"button-area"
>
<span
id=
"button-pause"
class=
"tiny-button
tiny-button-left
border padded"
>
<span
id=
"button-pause"
class=
"tiny-button border padded"
>
<img
src=
"res/pause.svg"
/><span>
Pause
</span>
<img
src=
"res/pause.svg"
/><span>
Pause
</span>
</span>
</span>
<span
id=
"button-reset"
class=
"tiny-button
tiny-button-left
border padded"
>
<span
id=
"button-reset"
class=
"tiny-button border padded"
>
<img
src=
"res/reset.svg"
/><span>
Reset
</span>
<img
src=
"res/reset.svg"
/><span>
Reset
</span>
</span>
</span>
<span
id=
"button-benchmark"
class=
"tiny-button
tiny-button-left
border padded"
>
<span
id=
"button-benchmark"
class=
"tiny-button border padded"
>
<img
src=
"res/bolt.svg"
/><span>
Benchmark
</span>
<img
src=
"res/bolt.svg"
/><span>
Benchmark
</span>
</span>
</span>
<span
id=
"button-fullscreen"
class=
"tiny-button
tiny-button-left
border padded"
>
<span
id=
"button-fullscreen"
class=
"tiny-button border padded"
>
<img
src=
"res/maximise.svg"
/><span>
Fullscreen
</span>
<img
src=
"res/maximise.svg"
/><span>
Fullscreen
</span>
</span>
</span>
<span
id=
"button-information"
class=
"tiny-button
tiny-button-left
border padded enabled"
>
<span
id=
"button-information"
class=
"tiny-button border padded enabled"
>
<img
src=
"res/info.svg"
/><span>
Information
</span>
<img
src=
"res/info.svg"
/><span>
Information
</span>
</span>
</span>
<span
id=
"button-debug"
class=
"tiny-button
tiny-button-left
border padded"
>
<span
id=
"button-debug"
class=
"tiny-button border padded"
>
<img
src=
"res/bug.svg"
/><span>
Debug
</span>
<img
src=
"res/bug.svg"
/><span>
Debug
</span>
</span>
</span>
<span
id=
"button-theme"
class=
"tiny-button
tiny-button-left
border padded"
>
<span
id=
"button-theme"
class=
"tiny-button border padded"
>
<img
src=
"res/marker.svg"
/><span>
Theme
</span>
<img
src=
"res/marker.svg"
/><span>
Theme
</span>
</span>
</span>
</div>
</div>
...
@@ -78,11 +78,11 @@
...
@@ -78,11 +78,11 @@
<img
class=
"large"
src=
"res/close.svg"
/>
<img
class=
"large"
src=
"res/close.svg"
/>
</span>
</span>
</div>
</div>
<h2
class=
"modal-title"
>
Title
</h2>
<h2
class=
"modal-title"
>
Alert
</h2>
<p>
Are you sure you want to cancel the operation?
</p>
<p>
Are you sure you want to cancel the operation?
</p>
<div
class=
"modal-buttons"
>
<div
class=
"modal-buttons"
>
<span
class=
"tiny-button
tiny-button-left
border padded"
>
Cancel
</span>
<span
class=
"tiny-button border padded
-large
"
>
Cancel
</span>
<span
class=
"tiny-button border padded"
>
Confirm
</span>
<span
class=
"tiny-button border padded
-large
"
>
Confirm
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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