New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nrk/core-css

Package Overview
Dependencies
Maintainers
111
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrk/core-css - npm Package Compare versions

Comparing version

to
1.11.1

50

lib/readme.md

@@ -0,7 +1,7 @@

<link rel="stylesheet" href="core-css.min.css">
# Core CSS
## `@nrk/core-css` exposes a set of class names to ease creating backwards compatible layouts and standard NRK styling. The code is built on BEM-conventions and is namespaced `nrk-` to play nice with existing projects.
> `@nrk/core-css` exposes a set of class names to ease creating backwards compatible layouts and standard NRK styling. The code is built on BEM-conventions and is namespaced `nrk-` to play nice with existing projects.
---
## Installation

@@ -15,4 +15,2 @@

---
## Accessibility

@@ -41,4 +39,4 @@

---
## Grid

@@ -134,4 +132,4 @@

---
## Sizes

@@ -170,4 +168,4 @@

---
## Button

@@ -190,4 +188,4 @@

---
## Pagination

@@ -212,4 +210,4 @@

---
## Inputs

@@ -221,14 +219,14 @@

```html
<!--demo-->
<style>
.my-input-focus:focus { box-shadow: 0 0 0 2px #00b9f2 }
.doc-demo .nrk-grid fieldset input { margin-right: .2em }
.doc-demo .nrk-grid fieldset label,
.doc-demo .nrk-grid > label .nrk-input {
display: block;
margin-bottom: .2em;
.my-input-focus:focus { box-shadow: 0 0 0 2px #00b9f2 }
.docs-demo .nrk-grid fieldset input { margin-right: .2em }
.docs-demo .nrk-grid fieldset label,
.docs-demo .nrk-grid > label .nrk-input {
display: block;
margin-bottom: .2em;
}
</style>
```html
<!--demo-->
<div class="nrk-grid">

@@ -321,6 +319,6 @@ <label class="nrk-xs-12of12 nrk-lg-4of12">

---
<style>
br + .nrk-switch:checked { color:blue }
.doc-demo .nrk-switch { margin: 2px 0 }
.docs-demo .nrk-switch { margin: 2px 0 }
</style>

@@ -351,4 +349,4 @@

---
## Aspects

@@ -385,4 +383,4 @@

---
## Colors

@@ -430,4 +428,4 @@

---
## Truncate

@@ -443,4 +441,4 @@

---
## Unset

@@ -459,4 +457,4 @@

---
## FAQ

@@ -463,0 +461,0 @@

@@ -6,3 +6,3 @@ {

"author": "NRK <opensource@nrk.no> (https://www.nrk.no/)",
"version": "1.11.0",
"version": "1.11.1",
"license": "MIT",

@@ -9,0 +9,0 @@ "scripts": {

@@ -17,9 +17,10 @@ import autoprefixer from 'autoprefixer'

input: 'lib/core-css.js',
output: {
file: 'lib/core-css.min.js',
format: 'cjs'
},
output: { file: 'lib/core-css.min.js', format: 'cjs' },
plugins: [
postcss({
minimize: { preset: 'default' },
minimize: {
reduceIdents: {
keyframes: false
}
},
sourceMap: !process.env.ROLLUP_WATCH,

@@ -26,0 +27,0 @@ plugins: [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet