Skip to content

Commit 834dbf5

Browse files
author
Piergiorgio Gonni
committed
Improve template gallery styling
1 parent 0ec4253 commit 834dbf5

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

dist/index.html

+4-4
Large diffs are not rendered by default.

ui-src/Components/TemplateGallery.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ import templates from '../Templates.js';
123123
}
124124
.template-item {
125125
width: calc(50% - 1px);
126-
padding: 0.5rem;
126+
padding: 1rem;
127127
cursor: pointer;
128128
background-color: white;
129129
&:hover {
@@ -153,7 +153,7 @@ import templates from '../Templates.js';
153153
border: 1px solid rgba(0, 0, 0, 0);
154154
border-radius: 0.75rem;
155155
height: 8rem;
156-
margin-bottom: 0.5rem;
156+
margin-bottom: 1rem;
157157
overflow: hidden;
158158
width: 100%;
159159
padding: 0.5rem;
@@ -176,6 +176,10 @@ import templates from '../Templates.js';
176176
padding: 0.25rem 0.5rem;
177177
border-radius: 0.25rem;
178178
}
179+
.template-title {
180+
font-size: 1.25rem;
181+
line-height: 1.5rem;
182+
}
179183
.exercise {
180184
color: rgb(0, 118, 68);
181185
background-color: rgb(232, 249, 242);
@@ -187,7 +191,7 @@ import templates from '../Templates.js';
187191
.properties {
188192
display: flex;
189193
flex-direction: column;
190-
gap: 4px;
194+
gap: 12px;
191195
align-items: flex-start;
192196
font-weight: 600;
193197
font-size: 0.875rem;

0 commit comments

Comments
 (0)