Skip to content

Commit c466a6d

Browse files
committed
add styles
1 parent 9da8596 commit c466a6d

4 files changed

Lines changed: 33 additions & 18 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ A Firefox extension for simple notetaking in Firefox's New Tab.
1414

1515
![screenshot](screenshot-1.png)
1616

17+
## TODO
18+
19+
- [ ] Integrate a new [options](https://github.com/semanticdata/firefox-chatgpt-in-sidebar/blob/main/options/options.js) menu, or toggle. Could be used to store bg-color, txt-color, etc. This in theory allows the user to customize the editor.
20+
1721
## Acknowledgments
1822

1923
This extension is based on [Tab Notes](https://github.com/nsht/tab_notes) which hasn't received an update in 4 years.

manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"browser_specific_settings": {
55
"gecko": {
66
"id": "newtab-notes@semanticdata",
7-
"strict_min_version": "60.0"
7+
"strict_min_version": "100.0"
88
}
99
},
10-
"version": "0.1.3",
10+
"version": "0.2.0",
1111
"author": "semanticdata",
1212
"icons": {
1313
"48": "icon48.png"
1414
},
15-
"description": "Transforms the New Tab into an auto-savinng text editor.",
15+
"description": "Transforms the New Tab into a minimalist, auto-saving text editor.",
1616
"permissions": [
1717
"storage"
1818
],

newtab.html

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,48 @@
77
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
88
<title>New Tab</title>
99
<link rel="icon" type="image/png" sizes="48x48" href="icon48.png">
10+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
1011
<script type="text/javascript" src="./tabnotes.js"></script>
1112
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400,700&display=swap" /> -->
1213
</head>
1314

1415
<style>
15-
body {
16-
margin: 0;
17-
padding: 1rem;
16+
html {
1817
background: rebeccapurple;
1918
}
2019

21-
#notes {
20+
body {
21+
padding: 0 1rem;
2222
box-sizing: border-box;
23-
border: 0;
24-
font-size: 18px;
23+
}
24+
25+
.container {
26+
height: 100vh;
27+
display: flex;
28+
align-items: center;
29+
}
30+
31+
/* #notes {} */
32+
33+
.textarea {
34+
border-radius: 10px;
2535
line-height: 1.75rem;
26-
margin: 0;
27-
min-height: 100vh;
28-
height: auto;
29-
padding: 2rem 15%;
30-
resize: none;
31-
width: 100%;
36+
border: 0;
3237
background: #202020;
38+
color: #fff;
39+
height: 100%;
40+
}
41+
42+
.textarea::placeholder {
3343
color: #ffffff;
34-
border-radius: 8px;
3544
}
3645
</style>
3746

3847
<body>
39-
<main>
40-
<textarea id="notes" placeholder="Start writing."></textarea>
48+
<main class="">
49+
<div class="container">
50+
<textarea class="textarea is-medium" id="notes" placeholder="Start writing..."></textarea>
51+
</div>
4152
</main>
4253
</body>
4354

screenshot-1.png

-58.8 KB
Loading

0 commit comments

Comments
 (0)