Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 31794d2

Browse files
authored
Merge pull request #83 from DesignSystemsOSS/v2.0
Merging some new version commits to the master branch. Approved by @yashsehgal
2 parents 7b6eeac + 93d1c5d commit 31794d2

11 files changed

Lines changed: 180 additions & 3 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ master, v2.0 ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ master, v2.0 ]
2020
schedule:
2121
- cron: '16 15 * * 4'
2222

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Design systems is a one stop solution to all your frontend crises.
1313
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
1414
![License](https://img.shields.io/badge/license-Apache-brightgreen)
1515
[![Gitter](https://badges.gitter.im/DesignSystemsOSS/community.svg)](https://gitter.im/DesignSystemsOSS/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
16+
17+
**Workflow Status & Checks**
18+
[![CodeQL](https://github.com/DesignSystemsOSS/eccentrictouch/actions/workflows/codeql-analysis.yml/badge.svg?branch=v2.0)](https://github.com/DesignSystemsOSS/eccentrictouch/actions/workflows/codeql-analysis.yml)
19+
1620
## Who are we?
1721

1822
Give your websites a visual upgrade. The DesignSystems' Eccentric Touch is an open source initiative that

src/lib/eccentric.css

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

src/lib/eccentric.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/eccentric.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,18 @@ h5, .et-h5{
149149
// heading method - (h6)
150150
h6, .et-h6{
151151
font-size: 12.94px;
152+
}
153+
// Comined Property For all tags
154+
.et-paragragh,.et-bold,.et-italics,.et-underlined,.et-quote,.et-regular,p,b,i,u,q{ // This Contains various TAgs like Paragraph.italics,bold,quote,Underlined.
155+
font-family: var(--et-sans-serif);
156+
margin: 0;
157+
color: var(--et-black);
158+
}
159+
160+
.et-bold,b{
161+
font-weight: bold;
162+
}
163+
// To remove extra (unwanted) margin.
164+
.et-paragragh,.et-regular,p{
165+
margin: 0;
152166
}

src/tests/__buttons.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@
1212
<button class="et-button-danger et-hover">Close this Task</button>
1313
<button class="et-button-valid">Save Changes</button>
1414
<button class="et-button-warning">Check Notifications</button>
15+
<button class="et-button-deactivated">Button</button>
16+
<button class="et-button-deactivated-secondary">deactivated</button>
1517
</body>
1618
</html>

src/tests/__tags.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title></title>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link href="../lib/eccentric.css" rel="stylesheet">
8+
</head>
9+
<body>
10+
<p class="et-paragragh">Paragraph Text</p>
11+
<p class="et-regular"> Regular Text</p>
12+
<b class="et-bold">Bold Text</b>
13+
<i class="et-italic">Italic Text</i>
14+
<u class="et-underlined">Underlined Text</u>
15+
<q class="et-quote">Quote</q>
16+
</body>
17+
</html>

src/tests/auto/TEST_RESULTS.htm

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="../../lib/eccentric.css">
8+
<title>TEST RESULTS</title>
9+
</head>
10+
<body>
11+
<div id="root-tester-buttons"></div> <!--BUTTONS TEST DATA-->
12+
13+
<div id="root-tester-fonts"></div>
14+
15+
<div id="root-tester-tags"></div>
16+
17+
<script src="__BUTTON_TESTS.js"></script>
18+
<script src="__FONT_TESTS.js"></script>
19+
<script src="__TAG_TESTS.JS"></script>
20+
</body>
21+
</html>

src/tests/auto/__BUTTON_TESTS.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
__BUTTON__TESTS = [
3+
{
4+
"classname": "et-button"
5+
},
6+
{
7+
"classname": "et-primaryButton"
8+
},
9+
{
10+
"classname": "et-button-danger"
11+
},
12+
{
13+
"classname": "et-button-invalid"
14+
},
15+
{
16+
"classname": "et-button-success"
17+
},
18+
{
19+
"classname": "et-button-valid"
20+
},
21+
{
22+
"classname": "et-button-warning"
23+
}
24+
]
25+
26+
let BUTTON_TEST_DATA = document.createElement("div");
27+
28+
/// RUNNING TESTS
29+
for (let testOperation in __BUTTON__TESTS) {
30+
let _testable_button__ = document.createElement("button");
31+
_testable_button__.innerHTML = "Testing Buttons";
32+
_testable_button__.className = __BUTTON__TESTS[testOperation].classname;
33+
BUTTON_TEST_DATA.append(_testable_button__);
34+
}
35+
36+
document.getElementById("root-tester-buttons").appendChild(BUTTON_TEST_DATA);

src/tests/auto/__FONT_TESTS.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
__FONTS__TESTS = [
3+
{
4+
"classname": "et-h1"
5+
},
6+
{
7+
"classname": "et-h2"
8+
},
9+
{
10+
"classname": "et-h3"
11+
},
12+
{
13+
"classname": "et-h4"
14+
},
15+
{
16+
"classname": "et-h5"
17+
},
18+
{
19+
"classname": "et-h6"
20+
}
21+
]
22+
23+
let FONTS_TEST_DATA = document.createElement("div");
24+
25+
/// RUNNING TESTS
26+
for (let testOperation in __FONTS__TESTS) {
27+
let _testable_font__ = document.createElement("p");
28+
_testable_font__.innerHTML = "Testing Buttons";
29+
_testable_font__.className = __FONTS__TESTS[testOperation].classname;
30+
FONTS_TEST_DATA.append(_testable_font__);
31+
}
32+
33+
document.getElementById("root-tester-fonts").appendChild(FONTS_TEST_DATA);

0 commit comments

Comments
 (0)