Skip to content

Commit

Permalink
add styles
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdata committed Jan 12, 2024
1 parent 9da8596 commit c466a6d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 18 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ A Firefox extension for simple notetaking in Firefox's New Tab.

![screenshot](screenshot-1.png)

## TODO

- [ ] 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.

## Acknowledgments

This extension is based on [Tab Notes](https://github.com/nsht/tab_notes) which hasn't received an update in 4 years.
Expand Down
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"browser_specific_settings": {
"gecko": {
"id": "newtab-notes@semanticdata",
"strict_min_version": "60.0"
"strict_min_version": "100.0"
}
},
"version": "0.1.3",
"version": "0.2.0",
"author": "semanticdata",
"icons": {
"48": "icon48.png"
},
"description": "Transforms the New Tab into an auto-savinng text editor.",
"description": "Transforms the New Tab into a minimalist, auto-saving text editor.",
"permissions": [
"storage"
],
Expand Down
41 changes: 26 additions & 15 deletions newtab.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,48 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>New Tab</title>
<link rel="icon" type="image/png" sizes="48x48" href="icon48.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<script type="text/javascript" src="./tabnotes.js"></script>
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400,700&display=swap" /> -->
</head>

<style>
body {
margin: 0;
padding: 1rem;
html {
background: rebeccapurple;
}

#notes {
body {
padding: 0 1rem;
box-sizing: border-box;
border: 0;
font-size: 18px;
}

.container {
height: 100vh;
display: flex;
align-items: center;
}

/* #notes {} */

.textarea {
border-radius: 10px;
line-height: 1.75rem;
margin: 0;
min-height: 100vh;
height: auto;
padding: 2rem 15%;
resize: none;
width: 100%;
border: 0;
background: #202020;
color: #fff;
height: 100%;
}

.textarea::placeholder {
color: #ffffff;
border-radius: 8px;
}
</style>

<body>
<main>
<textarea id="notes" placeholder="Start writing."></textarea>
<main class="">
<div class="container">
<textarea class="textarea is-medium" id="notes" placeholder="Start writing..."></textarea>
</div>
</main>
</body>

Expand Down
Binary file modified screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c466a6d

Please sign in to comment.