Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Commit cebc4a4

Browse files
committed
UI: add simple cards for views
1 parent 802cd46 commit cebc4a4

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

server/layouts/partial.handlebars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<style type="text/css">{{{inlineStyles}}}</style>
22

3+
<div class="card">
34
{{{ body }}}
5+
<div>
46

57
{{#each remoteScripts}}
68
<script src="{{this}}" async></script>

src/styles/core.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
@import 'core/_colors';
19+
@import 'core/_card';
1920
@import 'core/_core';
2021
@import 'core/_dialog';
2122
@import 'core/_side-nav';

src/styles/core/_card.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
*
3+
* Copyright 2015 Google Inc. All rights reserved.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
.card {
19+
padding: 16px;
20+
position: relative;
21+
position: relative;
22+
box-sizing: border-box;
23+
background: #fff;
24+
border-radius: 2px;
25+
margin: 16px;
26+
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
27+
}

0 commit comments

Comments
 (0)