Skip to content

Commit d3d9a39

Browse files
committed
removed nested styling
1 parent 70e38fa commit d3d9a39

File tree

6 files changed

+65
-67
lines changed

6 files changed

+65
-67
lines changed

build/botui-theme-default.css

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

build/botui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* botui 0.2.0
2+
* botui 0.2.1
33
* A JS library to build the UI for your bot
44
* https://botui.moin.im
55
*

build/botui.min.css

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

build/botui.min.js

Lines changed: 1 addition & 1 deletion
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": "botui",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "A JS library to build the UI for your bot",
55
"main": "build/botui.min.js",
66
"devDependencies": {

src/styles/themes/default.scss

Lines changed: 60 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -13,81 +13,79 @@ $primary-color: #919292;
1313
font-size: 14px;
1414
background-color: #fff;
1515
font-family: $font-family;
16+
}
1617

17-
.botui-messages-container {
18-
padding: 10px 20px;
19-
}
20-
21-
.botui-actions-container {
22-
padding: 10px 20px;
23-
}
24-
25-
.botui-message {
26-
min-height: 30px;
27-
28-
.botui-message-content {
29-
padding: 7px 13px;
30-
border-radius: 15px;
31-
color: darken($primary-color, 22%);
32-
background-color: lighten($primary-color, 35%);
33-
34-
&.human { // if human = true
35-
color: lighten($primary-color, 40%);
36-
background-color: $primary-color;
37-
}
18+
.botui-messages-container {
19+
padding: 10px 20px;
20+
}
3821

39-
&.text {
40-
line-height: 1.3;
41-
}
22+
.botui-actions-container {
23+
padding: 10px 20px;
24+
}
4225

43-
&.embed {
44-
padding: 5px;
45-
border-radius: 5px;
46-
}
47-
}
26+
.botui-message {
27+
min-height: 30px;
28+
}
4829

49-
.botui-message-content-link {
50-
color: $primary-color;
51-
}
30+
.botui-message-content {
31+
padding: 7px 13px;
32+
border-radius: 15px;
33+
color: darken($primary-color, 22%);
34+
background-color: lighten($primary-color, 35%);
5235

36+
&.human { // if human = true
37+
color: lighten($primary-color, 40%);
38+
background-color: $primary-color;
5339
}
5440

55-
.botui-actions-text-input {
56-
border: 0;
57-
outline: none;
58-
border-radius: 0;
59-
padding: 5px 7px;
60-
font-family: $font-family;
61-
background-color: transparent;
62-
color: darken($primary-color, 22%);
63-
border-bottom: 1px solid $primary-color;
41+
&.text {
42+
line-height: 1.3;
6443
}
6544

66-
.botui-actions-text-submit {
67-
color: #fff;
68-
width: 30px;
45+
&.embed {
6946
padding: 5px;
70-
height: 30px;
71-
line-height: 1;
72-
border-radius: 50%;
73-
border: 1px solid $primary-color;
74-
background: darken($primary-color, 10%);
47+
border-radius: 5px;
7548
}
49+
}
7650

77-
.botui-actions-buttons-button {
78-
border: 0;
79-
color: #fff;
80-
line-height: 1;
81-
cursor: pointer;
82-
font-size: 14px;
83-
font-weight: 500;
84-
padding: 7px 15px;
85-
border-radius: 4px;
86-
font-family: $font-family;
87-
background: darken($primary-color, 10%);
88-
box-shadow: 2px 3px 4px 0 rgba(0,0,0,.25);
89-
}
51+
.botui-message-content-link {
52+
color: $primary-color;
53+
}
54+
55+
.botui-actions-text-input {
56+
border: 0;
57+
outline: none;
58+
border-radius: 0;
59+
padding: 5px 7px;
60+
font-family: $font-family;
61+
background-color: transparent;
62+
color: darken($primary-color, 22%);
63+
border-bottom: 1px solid $primary-color;
64+
}
65+
66+
.botui-actions-text-submit {
67+
color: #fff;
68+
width: 30px;
69+
padding: 5px;
70+
height: 30px;
71+
line-height: 1;
72+
border-radius: 50%;
73+
border: 1px solid $primary-color;
74+
background: darken($primary-color, 10%);
75+
}
9076

77+
.botui-actions-buttons-button {
78+
border: 0;
79+
color: #fff;
80+
line-height: 1;
81+
cursor: pointer;
82+
font-size: 14px;
83+
font-weight: 500;
84+
padding: 7px 15px;
85+
border-radius: 4px;
86+
font-family: $font-family;
87+
background: darken($primary-color, 10%);
88+
box-shadow: 2px 3px 4px 0 rgba(0,0,0,.25);
9189
}
9290

9391
/*

0 commit comments

Comments
 (0)