Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schilder2000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
schilder
schilder2000
Commits
67c47cbb
Commit
67c47cbb
authored
9 months ago
by
Dominic Meiser
Committed by
Thomas Schneider
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Nicer indication for when you selected a template
parent
2e3fc90b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3
A bunch of design stuff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/static/schild.css
+3
-0
3 additions, 0 deletions
examples/static/schild.css
frontend/src/main.less
+15
-8
15 additions, 8 deletions
frontend/src/main.less
with
18 additions
and
8 deletions
examples/static/schild.css
+
3
−
0
View file @
67c47cbb
...
@@ -12,8 +12,11 @@ body {
...
@@ -12,8 +12,11 @@ body {
font-family
:
"Noto Sans"
,
sans-serif
;
font-family
:
"Noto Sans"
,
sans-serif
;
padding
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
background-color
:
#fff
;
color
:
#000
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
@media
not
print
{
@media
not
print
{
/* This magic constant approximately corresponds to 48px at A4 size, but scales
/* This magic constant approximately corresponds to 48px at A4 size, but scales
* with the viewport/iframe size
* with the viewport/iframe size
...
...
This diff is collapsed.
Click to expand it.
frontend/src/main.less
+
15
−
8
View file @
67c47cbb
// the threshold at which we consider the screen "mobile"
// the threshold at which we consider the screen "mobile"
@mobile_threshold: 700px;
@mobile_threshold: 700px;
// the border around the preview (per color)
@preview_border: .3rem;
* {
* {
box-sizing: border-box;
box-sizing: border-box;
...
@@ -132,8 +134,8 @@ main {
...
@@ -132,8 +134,8 @@ main {
/* A4 aspect ratio: √2:1 */
/* A4 aspect ratio: √2:1 */
aspect-ratio: 1.4142135623730951;
aspect-ratio: 1.4142135623730951;
b
ackground-color: #fff
;
b
order: @preview_border solid var(--bg)
;
color: #000
;
padding: @preview_border
;
}
}
.preview-small {
.preview-small {
...
@@ -168,6 +170,7 @@ textarea {
...
@@ -168,6 +170,7 @@ textarea {
fieldset {
fieldset {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 2 * @preview_border;
}
}
fieldset > div {
fieldset > div {
...
@@ -198,13 +201,17 @@ fieldset input {
...
@@ -198,13 +201,17 @@ fieldset input {
fieldset img,
fieldset img,
fieldset iframe,
fieldset iframe,
.preview-small {
.preview-small {
border: 3px solid lightgray;
border-color: var(--fg);
border-radius: 10px;
border-radius: 3 * @preview_border;
}
input[type="radio"] {
&:checked + label > img,
&:checked + iframe {
border-color: var(--accent2);
}
}
input[type="radio"]:checked {
&:not(:checked) + iframe {
& + label > img,
opacity: .8;
& + iframe {
border:3px solid red;
}
}
}
}
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