Skip to content

Commit 4d40d26

Browse files
authored
Merge pull request #3 from smartupcorp/2-fix-modal-size
modal size
2 parents e7e2b9e + 6abd362 commit 4d40d26

File tree

5 files changed

+42
-8
lines changed

5 files changed

+42
-8
lines changed

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
# smarphy
1+
# smarpy
22

3-
smartupcorp web design
3+
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smartupcorp/smarpy/blob/main/LICENSE)
4+
[![NPM Version](https://img.shields.io/npm/v/@smartupcorp/smarpy)](https://www.npmjs.com/package/@smartupcorp/smarpy)
5+
[![npm downloads](https://img.shields.io/npm/dm/@smartupcorp/smarpy)](https://www.npmjs.com/package/@smartupcorp/smarpy)
6+
7+
[![NPM](https://nodei.co/npm/@smartupcorp/smarpy.png)](https://nodei.co/npm/@smartupcorp/smarpy/)
8+
9+
## Overview
10+
11+
smarpy is an open-source web design sass library.
12+
13+
It uses `oklch()` to declare color palette.
14+
15+
If you want to use in React Project, you can use [react-smarpy](https://github.com/smartupcorp/react-smarpy).
416

517
## Installation
618

@@ -9,3 +21,25 @@ smartupcorp web design
921
```node
1022
npm install @smartupcorp/smarpy
1123
```
24+
25+
### Use in CSS
26+
27+
#### From CDN
28+
29+
```html
30+
<link
31+
rel="stylesheet"
32+
type="text/css"
33+
media="all"
34+
href="https://unpkg.com/@smartupcorp/smarpy/dist/css/smarpy.min.css"
35+
/>
36+
```
37+
38+
```html
39+
<link
40+
rel="stylesheet"
41+
type="text/css"
42+
media="all"
43+
href="https://unpkg.com/@smartupcorp/smarpy/dist/css/smarpy-utilities.min.css"
44+
/>
45+
```

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@
13311331
<div class="modal">
13321332
<div class="modal-content">
13331333
<div class="container">
1334-
<div class="my-1rem">
1334+
<div class="p-1rem">
13351335
<div class="message">
13361336
<div class="message-header">.message</div>
13371337
<div class="message-body">

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@smartupcorp/smarpy",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "smartupcorp web design library written by scss.",
55
"main": "index.js",
66
"scripts": {

src/sass/components/modal.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
background-color: oklch(var(--#{variables.$prefix}color-default-back-oklch) / 0.75);
88
display: none;
99
flex-direction: column;
10-
height: 100vh;
10+
height: 100%;
1111
justify-content: center;
1212
left: 0;
1313
overflow: hidden;
1414
position: fixed;
1515
top: 0;
16-
width: 100vw;
16+
width: 100%;
1717
z-index: var(--#{variables.$prefix}z-index-modal);
1818
&.is-active {
1919
display: flex;

0 commit comments

Comments
 (0)