#css dropdown menu
Explore tagged Tumblr posts
divinector · 18 days ago
Text
Tumblr media
Drop Down Menu On Hover
5 notes · View notes
codingflicks · 6 months ago
Text
Tumblr media
Dropdown menu CSS
6 notes · View notes
codenewbies · 1 year ago
Text
Tumblr media
Dropdown menu using HTML CSS
1 note · View note
revooks · 2 years ago
Text
1 note · View note
ao3commentoftheday · 1 year ago
Text
peachy keen ao3 site skin
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
If you'd like to add this site skin to your AO3 account, the code is under the cut.
Colours Used: pale peach: #ffeae4 darker peach: #f3c6ba yellow: #ffd7a8 orange: #ff9b75 reddish orange: #f44336 darkest orange: #8E0505
CSS:
#outer {   background: linear-gradient(90deg, rgba(255,155,117,.9) 0%, rgba(255,215,168,1) 100%); }
#header .primary {   background: #ff9b75;   background-repeat: repeat;   box-shadow: none; }
#search .button, #header .logo {   display: none; }
#header .heading a, #greeting img.icon {   visibility: hidden; }
#header #search .text {   background: #ffeae4;   border: none;   box-shadow: none;   width: 7em; }
#header h1.heading a::before {   content: " 🍑🍑🍑";   visibility: visible; }
.splash .module h3 {   border-bottom: none;   color: #f44336; }
#header .menu, #small_login {   background: #ffeae4;   box-shadow: none;   width: 20em; }
#greeting .user > li a {   color: #8E0505; }
#header .menu li, .splash .news li {   border-bottom: none; }
#header .actions a:hover, #header .dropdown:hover a.dropdown-toggle, #header .menu li a {   background: none;   color: #f44336 !important; }
#footer {   background: #ff9b75; }
#main {   color: #8E0505; }
#main a {   color: #f44336; }
.splash .favorite li:nth-of-type(2n+1) a {   background: #ffeae4;   border: 1px solid #ffeae4;   border-radius: 5px; }
.splash .favorite li:nth-of-type(2n+1) a:hover, .splash .favorite li:nth-of-type(2n+2) a:hover {   background: #f44336;   border: 1px solid #f44336;   border-radius: 5px;   color: #fff !important; }
.resp-sharing-button--twitter, a.resp-sharing-button__link {   color: #fff !important; }
.listbox, fieldset, fieldset dl dl, fieldset fieldset fieldset, fieldset fieldset dl dl, dd.hideme, form blockquote.userstuff, .dynamic form {   background: url("https://image.freepik.com/free-vector/vector-seamless-pattern-with-peaches_1015-1760.jpg");   background-repeat: repeat;   border: 4px solid #fff;   box-shadow: none; }
form dl {   background: #ffeae4;   border: 2px solid #fff;   box-shadow: none; }
input, textarea {   border: 1px solid #f44336;   box-shadow: none; }
input:focus, select:focus, textarea:focus {   background: #ffeae4; }
form dt {   border-bottom: 1px solid #fff; }
form dd.required {   color: #8E0505; }
.LV_invalid {   background: #ffd7a8;   border: 1px solid #fff;   color: #f44336;   box-shadow: none; }
.LV_invalid_field, input.LV_invalid_field:hover, input.LV_invalid_field:active, textarea.LV_invalid_field:hover, textarea.LV_invalid_field:active {   border: 1px solid #8E0505; }
.autocomplete div.dropdown ul {   background: #fff;   border: 1px solid #f44336;   color: #f44336;   box-shadow: none; }
.autocomplete .dropdown ul li:hover, .autocomplete .dropdown li.selected {   background: #f44336;   color: #fff; }
.required .autocomplete, .autocomplete .notice {   color: #f44336; }
.ui-sortable li {   background: #ffd7a8;   border: 2px solid #fff;   box-shadow: none; }
.ui-sortable li:hover {   background: #ff9b75;   border: 2px solid #fff;   box-shadow: none; }
.ui-draggable form {   box-shadow: none; }
.notice, .comment_notice, .kudos_notice, ul.notes, .caution, .error, .comment_error, .kudos_error, .alert.flash, muted.notice, form.verbose legend, .verbose form legend, span.question, span.symbol, select {   background: #ffeae4;   color: #f44336;   border: 2px solid #f44336;   box-shadow: none !important; }
#modal {   background: #ffeae4;   border: 4px solid #ff9b75;   box-shadow: none; }
#modal .content {   border-bottom: none; }
.actions a:visited, .action:visited, .action a:link, .action a:visited {   color: #f3c6ba; }
.actions a:hover, .actions input:hover, .actions a:focus, .actions input:focus, label.action:hover, .action:hover, .action:focus {   color: #f44336;   border-top: none;   border-left: none;   box-shadow: none;   background: #f3c6ba; }
.actions a:active, .current, a.current, a:link.current, .current a:visited {   color: #fff;   background: #ff9b75;   border-color: #fff;   box-shadow: none; }
.actions label.disabled {   background: #ff9b75; }
.actions .disabled select {   color: #fff;   border-color: #fff; }
.delete a, span.delete {   color: #f44336;   box-shadow: none; }
.secondary {   background: #fff;   border: 2px solid #f44336;   box-shadow: none; }
.own, .draft, .draft .wrapper, .unread, .child, .unwrangled, .unreviewed {   background: #ffeae4 !important; }
.draft {   border: 2px dashed #ff9b75; }
span.unread, .replied, span.claimed, .actions span.defaulted {   background: #f3c6ba;   color: #f44336;   border: 1px solid #fff;   border-bottom: none; }
.actions span.defaulted {   color: #8E0505; }
.draggable, .droppable, span.requested, .nominations .rejected {   color: #8E0505; }
.nominations .approved {   background: #ffeae4; }
.nominations .rejected {   background: #f3c6ba; }
span.offered.requested {   color: #ffeae4; }
.wrapper {   box-shadow: none; }
dl.index dd {   background: #f3c6ba; }
p.kudos {   background: url("https://64.media.tumblr.com/14dd2ee05dbcc111dab41d6206985fe8/b1eb33fb168e0088-4b/s1280x1920/8fabca965895c42bae4d746506ffc96324eb2fd5.png");   background-repeat: no-repeat; }
.statistics .index li:nth-of-type(even) {   background: #f3c6ba; }
fieldset fieldset.listbox {   background: #ffeae4;   border: 2px solid #ff9b75;   box-shadow: none; }
.listbox>.heading, .listbox .heading a:visited {   color: #f44336; }
.listbox .index {   background: #ffeae4;   box-shadow: none; }
dl.meta {   border: 2px solid #f44336;   background: #ffeae4; }
.actions a, .actions a, .action, input[type="submit"], button, .actions label, .actions a, .actions a:link, .action, .action:link, .actions input, input[type=submit], button, .actions label {   background: #ffeae4;   border: 1px solid #f44336;   text-shadow: none;   color: #f44336; }
.current, #dashboard .current {   background: #f44336;   border: 1px solid #fff;   text-shadow: none;   color: #fff; }
#dashboard.own {   border-top: none;   border-bottom: none; }
#dashboard a {   color: #f44336 !important; }
#dashboard a:hover {   background: #ff9b75; }
label {   color: #f44336; }
li.blurb, fieldset ul {   background: #ffeae4 !important;   border: 2px solid #fff; }
#header h2.collections, .reading h4.viewed, dl.index {   background: #ffeae4;   color: #f44336; }
.comment h4.byline {   background: #f3c6ba;   border-bottom: 2px solid #fff; }
.comment div.icon {   border-bottom: 5px solid #ff9b75; }
li.comment {   border: 2px solid #fff;   background: #f3c6ba; }
li.comment ul.actions {   background: transparent !important;   border: none !important; }
#stat_chart g[clip-path^=url] > g:nth-of-type(2) rect, #stat_chart svg g:nth-of-type(2) > g rect:last-of-type, #stat_chart g[clip-path^=url] > g:nth-of-type(2) rect:first-of-type {   opacity: 50% !important; }
h5.fandoms.heading a, .fandom .tag, .work .fandom a.tag {   font-variant: small-caps; }
.warnings .tag, .work .warning a.tag {   background: #8E0505;   border: 1px solid #8E0505;   border-radius: 5px;   color: #fff !important;   padding-left: .5em;   padding-right: .5em; }
.relationships .tag, .work .relationships a.tag {   background: #f44336;   border: 1px solid #f44336;   border-radius: 5px;   color: #fff !important;   font-weight: bold;   padding-left: .5em;   padding-right: .5em; }
.characters .tag, .work .characters a.tag {   background: #ff9b75;   border: 1px solid #ff9b75;   border-radius: 5px;   color: #fff !important;   font-weight: bold;   padding-left: .5em;   padding-right: .5em; }
.freeforms .tag, .work .freeforms a.tag {   color: #f44336 !important; }
.commas li:after {   content: none; }
ul.tags {   line-height: 190%; }
1K notes · View notes
evenvillain · 6 months ago
Text
dark flat ao3 skin v2.0
Tumblr media Tumblr media Tumblr media Tumblr media
1. log in and go HERE
2. click button "Create Site Skin"
3. name it whatever
4. copy/paste code from below in "CSS" field
5. "Submit"
6. make sure you clicked button "Use" HERE in the list of skins
7. change it as you like
CSS:
outer .region,
footer .group,
.post fieldset fieldset, fieldset fieldset { background: none; }
body, .group, .group .group, .region, .flash, fieldset, fieldset fieldset ul, form dl, textarea,
main .verbose legend,
.verbose fieldset, .notice, ul.notes, input, textarea, table, th, td:hover, tr:hover, .symbol .question:hover,
modal,
.ui-sortable li, .required .autocomplete, .autocomplete .notice, .system .intro, .comment_error, .kudos_error, div.dynamic, .dynamic form,
ui-datepicker-div,
.ui-datepicker table { color: #eee; border-color: #151619; outline: #111; box-shadow: none; }
form .notice, form ul.notes { box-shadow: none; }
workskin {
font-size: 1.2em; margin: auto; padding: 0 0.25em; max-width: 60em; overflow-x: auto; overflow-y: hidden; position: relative; }
.actions a, .actions a:link, .action, .action:link, .actions input, input[type="submit"], button, .current, .actions label { border-radius: 0; }
header ul.primary,
outer #footer,
.toggled form { background: #1a1b1f; }
header .primary {
background: none; padding: 10px 0; width: 100%; box-shadow: none; }
fieldset, form dl, fieldset dl dl, fieldset fieldset fieldset, fieldset fieldset dl dl, dd.hideme, form blockquote.userstuff { background: #1a1b1f !important; }
.user.navigation.actions>li { margin-top: 0.3em !important; }
header .menu,
small_login {
border: 1px solid #1f2126; box-shadow: none; padding: 0; }
.tags.group, .more.group { margin-top: 0.6em; }
header .actions a:hover,
header .actions a:focus,
header .dropdown:hover a,
header .open a,
header .menu,
small_login,
.group.listbox, fieldset fieldset.listbox, form blockquote.userstuff, input:focus, textarea:focus, li.relationships a, .group.listbox .index, .dashboard fieldset fieldset.listbox .index,
dashboard a:hover,
th,
dashboard .secondary,
.secondary, .thread .even, .system .tweet_list li, .ui-datepicker tr:hover { background: #151619; }
.userstuff p { text-align: justify; margin: 1.286em auto; padding: 0; line-height: 1.5; }
.tags.commas { margin: 1.5em auto; }
header .dropdown .menu a:hover,
header .dropdown .menu a:focus,
.splash .favorite li:nth-of-type(odd) a, .ui-datepicker td:hover,
tos_prompt .heading,
tos_prompt [disabled] {
background: #22262a; }
outer,
.javascript, .statistics .index li:nth-of-type(even),
tos_prompt,
.announcement input[type="submit"] { background: #151619; }
.filters .submit input { border: 1px solid #202227; background-color: #202227; height: 110%; margin: 1em 0; min-height: 2.286em; padding-left: 0; padding-right: 0; text-align: center; white-space: normal; }
header ul.primary,
footer,
dashboard ul,
dl.meta, .group.listbox, fieldset fieldset.listbox,
main li.blurb,
form blockquote.userstuff, div.comment, li.comment, .toggled form, form dl dt, form.single fieldset,
inner .module .heading,
.bookmark .status span, .splash .news li, .filters .group dt.bookmarker { border-color: #1a1b1f; }
.work.navigation.actions { width: 100%; }
dl.meta { border: none; }
.splash .news li { padding: 1em; }
fieldset, form dl, fieldset dl dl, fieldset fieldset fieldset, fieldset fieldset dl dl, dd.hideme, form blockquote.userstuff { padding: 1em; }
.logged-in .splash>.module { width: 100% !important; }
dl.meta { max-width: 75em; margin: auto; clear: right; padding: 2em 1.75em; position: relative; overflow: hidden; }
.group.listbox, fieldset fieldset.listbox,
main li.blurb,
.wrapper,
dashboard .secondary,
.secondary, form blockquote.userstuff, .thread .comment, .toggled form { box-shadow: none; }
dashboard .current,
.actions a:active,
outer .current,
a.current, .current a:visited, span.unread, .replied, span.claimed, dl.index dd, .own, .draft, .draft .unread, .child, .unwrangled, .unreviewed, .ui-sortable li:hover { background: #1a1b1f; border-color: #1f2126; }
greeting .menu {
right: 0; border: 1px solid #1f2126; box-shadow: none; }
select { background-color: #202227; color: #fff; border: 1px solid #202227; min-height: 3em; border-radius: 0; padding: 0 0.6em; }
input:focus, select:focus, textarea:focus { background: #202227; }
body, .toggled form, .dynamic form, .secondary, .dropdown { background: #202227; color: #fff; margin: 0; padding: 0; }
footer a:hover,
footer a:focus,
.autocomplete .dropdown ul li:hover, .autocomplete .dropdown li.selected, a.tag:hover, .listbox .heading a.tag:visited:hover, .symbol .question, .qtip-content { background: #a7a7a7; color: #111; }
.splash .favorite li:nth-of-type(odd) a:hover, .splash .favorite li:nth-of-type(odd) a:focus { background: #a7a7a7; color: #111; }
header #greeting img,
header .heading a,
header .heading a:visited,
header .user a:hover,
header .user a:focus,
header fieldset,
header form,
header p,
dashboard a:hover,
.actions a:hover, .actions input:hover, .delete a, span.delete, span.unread, .replied, span.claimed, .draggable, .droppable, span.requested, a.work, .blurb h4 a:link, .blurb h4 img, .splash .module h3, .splash .browse li a:before, .required, .error, .comment_error, .kudos_error, a.cloud7, a.cloud8,
tos_prompt .heading {
color: #a7a7a7; }
header .menu li {
border-bottom: 1px solid #2c2c2c; margin: 0; text-align: left; }
greeting .icon,
dashboard,
dashboard.own,
.error, .comment_error, .kudos_error, .LV_invalid, .LV_invalid_field, input.LV_invalid_field:hover, input.LV_invalid_field:active, textarea.LV_invalid_field:hover, textarea.LV_invalid_field:active, .qtip-content { border-color: #151619; }
dashboard.own {
border: none; }
form.filters dl { margin-left: 0; margin-right: 0; }
.filters .expander:focus { outline: none; }
.filters .expander { padding: 0.45em 0 0.45em 14px; }
.filters .group dt.search, .filters .range dt { padding: 1.25em 0 0.4em 0; }
a.tag { border-bottom: 1px dotted !important; }
a, a:link, a.tag,
header a,
header a:visited,
header .primary .open a,
header .primary .dropdown:hover a,
header .primary .dropdown a:focus,
header #search input:focus,
header #search input:hover,
dashboard a,
dashboard span,
dashboard .current,
.heading, .group .heading, .filters dt a:hover { color: #fff; }
header .dropdown .menu a {
padding: .75em .5em .75em; }
header #search .text {
background: #151619 !important; border-radius: 0; margin: 0.2857em 0.429em; }
a:visited, .actions a:visited, .action a:link, .action a:visited, .listbox .heading a:visited, span.series .divider { color: #999; }
a:active, a:focus, button:focus { outline: none; }
.actions a, .actions a:link, .action, .action:link, .actions input, input[type="submit"], button, .current, .actions label,
header .actions a {
background: #23252a; border-color: #23252a; color: #eee; box-shadow: none; text-shadow: none; }
.actions a:hover, .actions input:hover,
dashboard a:hover,
.actions a:focus, .actions input:focus,
dashboard a:focus {
color: #fff; border-color: #101214; box-shadow: none; background-color: #101214; }
.actions a:active, .current, a.current, .current a:visited { color: #fff; background: #101214; border-color: #101214; box-shadow: none; }
.delete a, span.delete { box-shadow: none; }
ul.required-tags, .bookmark .status span, .blurb .icon { opacity: 0.9; border: 0; }
outer .group .heading,
header .actions a,
fieldset.listbox .heading, .userstuff .heading, .heading, .userstuff h2 { text-shadow: none; color: #fff; background: none; }
header .actions a,
fieldset fieldset, .mce-container button, .filters .expander { box-shadow: none; }
fieldset fieldset.listbox { outline: none; }
form dd.required { color: #eee; }
.mce-container input:focus { background: #F3EFEC; }
.announcement .userstuff a, .announcement .userstuff a:link, .announcement .userstuff a:visited:hover { color: #fff; }
a, a:link, a:visited:hover { color: #fff; text-decoration: none; }
.announcement .userstuff a:visited { color: #666; }
.announcement .userstuff a:hover, .announcement .userstuff a:focus { color: #999; }
.event.announcement .userstuff a, .filters .expander { color: #eee; }
form.verbose legend, .verbose form legend { background: #151619; }
.listbox li.blurb { box-shadow: none; background: #1a1b1f; }
li.blurb, fieldset, form dl { border: none; }
li.blurb, .blurb .blurb { display: block; position: relative; clear: left; padding: 1em 1.4em; overflow: visible; background: #1a1b1f; }
dashboard ul {
float: none; display: block; padding: 0.26em 0; text-align: right; position: relative; background: none; }
user-fandoms {
padding: 1.4em 0; background: #1a1b1f; }
.listbox .index { padding: 0.6em 0; }
.bookmark div.user { background-color: #151619; }
.bookmark dl.stats { margin-bottom: 1.5em; margin-top: 1.5em; }
.dashboard .own, .comment span.unreviewed { background: #1a1b1f; opacity: 1.0; }
.own, .draft, .draft .wrapper, .unread, .child, .unwrangled, .unreviewed { background: #1a1b1f; opacity: 0.95; }
.actions a, .actions a:link, .action, .action:link, .actions input, input[type="submit"], button, .current, .actions label { padding: 0.5em 1em; border-radius: 0; }
header {
margin: 0 0 3em; }
.tags.group, .more.group { padding: 0.6em; }
dashboard a,
dashboard span {
line-height: 2.2; padding: 0 0.5em; }
.listbox>.heading, .listbox .heading a:visited { margin-left: .6em; }
.listbox, fieldset fieldset.listbox { border: 1px solid #1a1b1f; margin: 0.5em auto; box-shadow: none; }
.reading .user { margin-top: 1.5em; padding-top: 0.5em; border-top: 1px solid #23252a !important; }
.comment .userstuff { background-color: #1a1b1f !important; }
input, textarea { box-shadow: none; background: #151619; padding: 0.4em; }
.filters .indicator:before { background: #404248; color: #aaa; display: inline-block; border: 1px solid #404248; margin-right: 0.25em; background-image: none; }
.filters [type="checkbox"]+.indicator:before { padding: 0 0.25em; border-radius: 2px; }
.filters [type="checkbox"]:checked+.indicator:before { background: #970000; color: #ffffff; background-image: none; }
.filters input:checked+.indicator:before { border-color: #1a1b1f; }
.filters input:checked+.indicator+span { font-weight: 500; }
.filters .exclude [type="checkbox"]:checked+.indicator:before { background: #970000; color: #ffffff; background-image: none; }
.filters [type="radio"]:checked+.indicator:before { background: #970000; background-image: none; }
ui-datepicker-div,
.ui-datepicker table { background: #1a1b1f; }
.ui-datepicker td { border: 1px solid #23252a; }
.notice, .comment_notice, .kudos_notice, ul.notes, .caution, .error, .comment_error, .kudos_error, .alert.flash { background: #2e3138; border: 1px solid #2e3138; margin: 0.6em auto; padding: 1em; box-shadow: none; border-radius: 0; }
.listbox .index { padding: 0.6em; box-shadow: none; }
dl.meta { max-width: 75em; background: #1a1b1f; margin-top: 1em; }
dl.index dd { background: #151619 !important; }
form.search input[type="text"] { border-top-color: #151619; background-color: #202227; padding: 0.45em 0.45em; border-radius: 0; }
modal {
background: #1a1b1f; border: 10px solid #1a1b1f; margin: 3% 0; max-width: 800px; min-width: 200px; padding-bottom: 44px; position: relative; text-align: left; width: 80%; z-index: 501; }
.post .meta dd ul li { display: block; padding-bottom: 0.6em; }
workskin {
font-size: 1.2em; max-width: 52em; }
div.comment, li.comment { padding: 0.6em; background: #1a1b1f !important; }
185 notes · View notes
robo-dino-puppy · 3 months ago
Text
I'm alive (theoretically)! I'm almost ready to start putting things up on the armor gallery <- view in a desktop browser for best results pls
the consensus from this post seems to be to keep the sky portion which is fine with me, but last call if you want to make your opinion known! next question:
Tumblr media Tumblr media
ok it's not super obvious when the pics are tumblr-sized, but any thoughts on if should I have the shield overlay not visible (left) or visible (right) on the shield-weaver? or both since there will be two images? no overlay with no headgear/visible with headgear maybe?
also I'd still love to find someone knowledgeable in current CSS/javascript/tumblr theme making (my CSS is many years out of date, I don't know js, and while I'm sure I could make a theme I simply don't have the spare brainpower to do it right now). the dropdown menus work on desktop but are iffy at best on mobile, and while I tried to make the theme* responsive to screen size changes, I'm sure it could be done better.
From what I understand of javascript (admittedly very little), a js dropdown menu would work much better on touchscreens - but if there's some sophisticated CSS that would also do the job I'd love to hear about it!
so if anyone wants to help me out in this area, I (and probably anyone who uses the armor gallery) would greatly appreciate it 🙏
*the theme I modified is like... ancient... and doesn't support NPF. which is not exactly a problem because before the old post editor went the way of the dinosaurs, I created *checks blog* 316 drafts in the old format. lol. lmao, even. I may not be good at planning but I AM good at hoarding! still, a theme that's up to current tumblr (and HTML/CSS) standards would be nice.
18 notes · View notes
ne0nwithazero · 19 days ago
Note
How did you learn to code your website on neocities? You have one of the most amazing and unique sites I've ever seen, it's such a wonderful personalized corner of the internet!
Thank you :)
W3Schools is an amazing resource for coding and finding HTML, CSS and JS scripts!
You can pretty much just google "How to make a navigation bar" or how to make a dropdown menu or anything you want and there's usually a w3schools link that can help you with it!
Another tip I can offer is to learn how to use your browser's Inspect Tool option (Usually accessed by pressing F12)
Studying how websites are made or trying to see how someone coded a specific thing
It also allows you to test CSS directly if you want to see how something is going to look right away
Overall my biggest tip is to make it fun for yourself! There is a bit of learning curve at the beginning, but once you get past it, it gets really fun!
8 notes · View notes
redlerred7 · 9 days ago
Text
Over an hour ago, I opened Ao3 on my phone to relax before sleeping
Found a fic that seemed promising, but it had justify-aligned text that looked atrocious on mobile
But it's no big deal. I'll just scroll up and disable the author's work-skin
There is no disable work-skin button
Went to update my site skin to force left-aligned text. Just one line of CSS. Should be easy
I reload the fic?
Still justified
Spend a few minutes searching Firefox Android's pitifully neutered dropdown and settings menus for its equivalent of the desktop "show page source" option when right-clicking on a website
There is no show page source option
I google how to show a page's html source on Firefox Android and learn that you do it by going to the start of the address bar and typing "view-source:[and then your URL]"
I meticulously type it on my phone's touch keyboard to view the source of the Ao3 fic in question
The text is justify-aligned using HTML, which means no amount of site-skin CSS tinkering will allow me to change it to left-aligned
FUCK
I google how to force-align text on Ao3 to the left
The results?
"Disable author's work skin" "Use a site-skin" "Use this Google Chrome extension" "Use a Firefox addon that only works on desktop" "Change some settings in your about:config, the advanced settings menu that Firefox Android doesn't get access to" "Use this OTHER Google Chrome extention"
After sifting through completely useless advice, I eventually find an actual working solution:
create a bookmarklet that uses javascript that loops through all the text in the page that's justify-aligned and have it instead display left-aligned text
It has been ten years since I last touched javascript, back when I was learning it in high school, but I'm sure some cursory google searches should derust me enough to do some basic code.
I got out of bed and booted my PC.
Reading some basics and primers did not derust me to do some basic code. Not from scratch.
But it did jog my memory enough that I could steal some existing code that did something similar to what I needed and just change the right parts to make it do what I want
Anyway, just tested it and it works! Triumph!
Unfortunately, now I'm wide awake, exhausted, and have no desire to continue reading this fic
BIG, RESIGNED SIGH...
Goodnight, everyone...
btw, here's the code if you need it
javascript:(function(){ const elements = document.querySelectorAll('[align="justify"]'); elements.forEach(el => el.style.textAlign = 'left'); })();
create a new bookmark and put this code in the bookmark's URL. Clicking it will force all text that's justify-aligned using HTML to be left-aligned. Every website nowadays uses CSS to align their text so you're likely only gonna use this for Ao3 fics.
5 notes · View notes
memorizingthedigitsofpi · 9 months ago
Note
pi!!! please reupload the full css for your dark and glowy ao3 site skin i beg! i saw it and immediately was like that's the prettiest thing ever :0
code under the cut
#header {   background-image: url("https://cdn.pixabay.com/photo/2022/10/19/16/56/fireflies-7533056_1280.jpg");   background-repeat: no-repeat;   background-size: cover;   background-position: center center;   background-color: #152623; }
#header .heading {   height: 15em; }
#header .primary {   background: #0d1d1f;   box-shadow: 0px 0px 15px #f9f6ce; }
#header .logo, #header .heading sup {   visibility: hidden; }
#header .heading a {   color: #152623;   text-shadow: 0px 0px 15px #f9f6ce; }
.event .userstuff {   background: #425e50;   border: 1px solid #f9f6ce; }
#outer.wrapper {   background: #0d1d1f;   color: #f9f6ce; }
#main a {   color: #8c9b76; }
#greeting a.dropdown-toggle, #header .actions a {   color: #f9f6ce !important;   text-shadow: 0px 0px 3px #152623; }
#greeting .menu, #header .dropdown .menu, #header .dropdown:hover a {   background: #0d1d1f;   box-shadow: 0px 0px 15px #f9f6ce; }
span.submit.actions input.button {   display: none; }
#greeting img.icon {   display: none; }
#header #search .text, .search [role="tooltip"] {   background: #0d1d1f;   box-shadow: 0px 0px 15px #f9f6ce;   color: #f9f6ce !important;   border: 1px solid #0d1d1f; }
form.search input[type=text], form.search input[type=submit], .autocomplete div.dropdown ul {   background: #0d1d1f !important;   border: none;   box-shadow: 0px 0px 15px #f9f6ce;   color: #f9f6ce;   display: block; }
#header #search .text {   width: 7em; }
.notice, .comment_notice, .kudos_notice, ul.notes, .caution, .error, .comment_error, .kudos_error, .alert.flash {   background: #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce !important;   color: #0d1d1f;   border: none; }
.notice a, .comment_notice a, .kudos_notice a, ul.notes a, .caution a, .error a, .comment_error a, .kudos_error a, .alert.flash a {   color: #506957;   font-weight: bold; }
.splash .module h3 {   color: #f9f6ce;   border-bottom: 2px solid #f9f6ce; }
.splash .favorite li:nth-of-type(2n+1) a {   background: #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce;   color: #0d1d1f;   font-weight: bold;   font-variant: small-caps; }
.splash .favorite li:nth-of-type(2n+2) a {   color: #f9f6ce;   font-weight: bold;   font-variant: small-caps;   font-size: 110%; }
.splash .favorite li:nth-of-type(2n+1) a:hover, .splash .favorite li:nth-of-type(2n+2) a:hover {   color: #f9f6ce;   font-weight: bold;   font-variant: small-caps;   background: #425e50; }
#footer {   background: #425e50;   color: #f9f6ce;   border-top: 3px solid #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
#footer a, #footer .heading {   color: #f9f6ce; }
.actions a, .actions a:focus, .actions input:focus, .action:focus, .actions li input, .actions li input[type="submit"], input[type="submit"], .actions li label, ul.navigation.actions li a, .action:link, .actions a:link {   background: #425e50;   border: 1px solid #f9f6ce;   color: #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce;   border-radius: 5px; }
.current, #dashboard .current {   background: #f9f6ce !important;   color: #0d1d1f !important;   box-shadow: 0px 0px 15px #f9f6ce !important;   border-radius: 5px; }
#dashboard.own {   border-top: 5px solid #f9f6ce;   border-bottom: 5px solid #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
#dashboard a:hover {   background: #0d1d1f;   box-shadow: 0px 0px 15px #f9f6ce; }
#dashboard a {   color: #f9f6ce; }
dl.meta {   border: 1px solid #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
.listbox .index {   background: #0d1d1f; }
.listbox, fieldset fieldset.listbox {   background: #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
form dl, fieldset, fieldset fieldset, fieldset fieldset fieldset, fieldset fieldset dl dl, dd.hideme, form blockquote.userstuff, input, select, select:focus, textarea, span.symbol.question, .own {   background: #0d1d1f !important;   color: #f9f6ce !important;   border: 1px solid #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
.autocomplete li.added, .post .meta dd ul li.added, label, label.required {   color: #f9f6ce; }
span.delete {   background: #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
span.delete a {   color: #0d1d1f !important;   font-weight: bold; }
.ui-sortable li, .dynamic form, div.dynamic {   background: #0d1d1f;   border: 1px solid #f9f6ce; }
.dropdown {   background: #0d1d1f; }
form.verbose legend, .verbose form legend {   background: #f9f6ce;   color: #0d1d1f;   box-shadow: 0px 0px 15px #f9f6ce; }
li.blurb {   border: 1px solid #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
.draft {   background: #0d1d1f;   color: #f9f6ce;   border: 2px dashed #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
.draft .wrapper {   background: #0d1d1f;   border: 1px solid #f9f6ce; }
#header h2 {   background: #f9f6ce !important;   color: #0d1d1f;   box-shadow: 0px 0px 15px #f9f6ce; }
#stat_chart svg rect:first-of-type {   opacity: 60%; }
#stat_chart g[clip-path^=url] > g:nth-of-type(2) rect, #stat_chart svg g:nth-of-type(2) > g rect:last-of-type, #stat_chart g[clip-path^=url] > g:nth-of-type(2) rect:first-of-type {   filter: hue-rotate(140deg);   opacity: 80% !important; }
.statistics .index li:nth-of-type(2n) {   background: #0d1d1f;   border: 1px solid #f9f6ce; }
.reading h4.viewed, dl.index dd, table, th, dt.child {   background: #0d1d1f; }
#modal, span.replied {   background: #0d1d1f;   color: #f9f6ce;   border: 2px solid #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
h4.heading.byline {   background: #f9f6ce;   color: #0d1d1f; }
li.comment {   border: 1px solid #f9f6ce; }
.comment div.icon {   border-bottom: 5px solid #f9f6ce;   box-shadow: 0px 0px 15px #f9f6ce; }
.thread .even {   background: #425e50; }
.unread {   background: #0d1d1f;   border: 5px dashed #f9f6ce !important; }
span.unread {   background: #f9f6ce;   color: #0d1d1f; }
span.indicator::before {   box-shadow: 0px 0px 15px #f9f6ce; }
.warnings .tag, .work .warning a.tag, dd.warning.tags a {   border: 1px solid #f9f6ce;   border-radius: 5px;   background: #f9f6ce;   padding-left: 2px;   padding-right: 2px;   box-shadow: 0px 0px 10px #f9f6ce; }
.relationships .tag, .work .relationships a.tag, dd.relationship.tags a {   background: none;   color: #f9f6ce !important;   font-weight: bold;   text-shadow: 0px 0px 15px #f9f6ce; }
.filters .expander {   background: url("https://64.media.tumblr.com/3c89981f933f9f57157d6dcec6fd85a7/94c6737c6db9ad60-e5/s1280x1920/f7557e617a5439c506721bd326580a0cb4c1f8d8.png") left center no-repeat;   color: #f9f6ce !important;   font-weight: bold; }
.filters .expanded .expander {   background: url("https://64.media.tumblr.com/dab095a2fd9387bc1e0c57747ba6b13f/94c6737c6db9ad60-ad/s1280x1920/c1a4e14e0565cdcac5d3e20bebac3ab440f2d607.png") left center no-repeat; }
8 notes · View notes
divinector · 3 months ago
Text
Tumblr media
Dropdown Menu on Hover
3 notes · View notes
codingflicks · 2 years ago
Text
Tumblr media
CSS Dropdown Menu Our Telegram Channel
6 notes · View notes
codenewbies · 2 years ago
Text
Tumblr media
CSS Dropdown Menu
1 note · View note
idrellegames · 9 months ago
Note
hi so i was playing around with my codes and the link color does not work ? the hover , active , and visited does but the actual link itself will not change the color or text decoration. also wayfarer works pretty well on mobile nested nicely on screen. what code did you use because the code i am using makes it all squished thanks !
The CSS for the hover is separate from the CSS for the link.
Here's the CSS from the default Sugarcube UI. The element a (anchor, which creates links) controls your link styling. a:hover controls the styling for when the cursor hovers over it. a[disabled] controls a disabled/visited link. You can see how they have different colours and text decorations.
a { cursor: pointer; color: #68d; text-decoration: none; transition-duration: 200ms; } a:hover { color: #8af; text-decoration: underline; }
a[disabled], span.link-disabled { color: #aaa; cursor: not-allowed !important; text-decoration: none; }
Making your game responsive isn't a one-size fits all scenario. It depends on the dimensions of your UI and a number of other unique factors. You can use media queries to change what your game looks like on different viewport sizes.
If you open your game in a browser, right click and hit Inspect, you can test what it looks like with different resolutions. Switch it to mobile mode and there will be a dropdown menu with the dimensions for different common phones and tablets.
Tumblr media
You can switch through them to see how your media queries are working with each size; usually you will have to fiddle with things to get it to fit right.
10 notes · View notes
punkasshunter · 2 years ago
Text
After much, much, much experimentation and back-and-forth, here it finally is! This is the Left 4 Dead-themed Ao3 site skin I've been working on for the past couple months! So far as I can tell, no one has posted anything like this, which obviously I had to change.
This is my first time making an Ao3 skin, so there will likely be areas that I've missed that will turn up broken or clumsy, and if so I will keep a running "change log". With that in mind, I'd strongly request feedback so that I can make these fixes and update the CSS with them!
This is to be followed in the near (likely within a few days) future by a similar work skin, allowing for a similar look within just a posted work, and giving the ability to use subtitle-colored character text like the tags in this!
This is not a lightweight skin; it themes virtually every area of Ao3 in some way. With that in mind, here are some major features!
"Saferoom graffiti"-style comments and inbox mail and health bar UIs for comment and inbox icons
A fun new site header! Just wait and see.
Campaign poster-style blurbs for works!
Campaign menu selection border title blocks and image borders.
Canon character tags in the color of their ingame subtitles, for both the survivors and special infected!
Detailed instructions are in the Ao3 work linked in this post, but I'll include them here as well under the cut.
Instructions to create and use the skin
This is important! If you will be using this skin for mobile at all, you must go through the steps to add the mobile parent skin, or else a lot will be broken and borderline unusable on small screens. If you will be using for desktop solely you can feel free to use only the main skin.
Creating the parent skin:
The first thing that needs to be done is to create a site skin with the mobile fix CSS. Go to your dashboard, and select the button on your side menu that says "Skins". From there, you will want to click "Create Skin". For skin type, select "site skin". Title the skin something recognizable, such as "L4D site skin mobile fixes". Then copy all of the code found here into the body. On "Advanced Options" hit "Show". The only setting here you need to worry about is Media, where you will check the box for "only screen and (max-width: 42em)". It should look like this.
Tumblr media
Hit "Submit" and step 1 should be done!
The main skin:
Step two is to create the main portion of the skin and add the mobile fixes as the parent skin! Return to "Skins" on your dashboard, and create a second site skin. Title this something recognizable as well, such as "L4D site skin". Once again, you'll be selecting "Site skin" in the dropdown. Copy all of the code found here into the body. If you won't be on mobile at all, hit submit now and the skin will be good to go. Otherwise, show "Advanced Options" again. This time, the category you want is "Parent Skins". In the selection box, begin to type and then select whatever you titled your mobile fix skin, and then press "Add Parent". This should look something like this.
Tumblr media
Hit submit again, and the skin creation is done!
The theme fonts:
Note that this skin was designed to use two text fonts from the Left 4 Dead games, Future Rot and Stubble Bold, to look exactly as intended, and one more open text font, Moinho, for the headings of the graffiti-styled comments and inbox. Those can be found in this folder, but are optional, and the skin will function fine without them. To use them, simply download, and then once they are downloaded, click on them and press “Install” in the window that appears with the example text.
Using the skin:
You're almost done! The last step is simply to go to the "Skins" tab of your dashboard again, where you should see the blurbs for your mobile fix skin and the main skin. Click "Use" on the main skin, and that will select the skin to use!
Here are, without spoiling a couple of the fun easter eggs, some preview images of the skin on desktop!
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
...And on mobile!
Tumblr media Tumblr media Tumblr media Tumblr media
49 notes · View notes
secretsanguinala · 2 years ago
Text
AO3 tagset life hack
As we get more characters and ships added to the Sanguinala tagset, it's getting pretty unwieldy to read! However, there's a pretty straightforward way to change the display from this
Tumblr media
to this:
Tumblr media
If you already use a custom site skin on AO3, you can edit that skin to add the following CSS at the end:
.tagset .fandom.listbox .tags.index.group li { display: block; margin-top: 0.4em; line-height: 1; } .tagset .fandom.listbox .tags.index.group li::after { content: none; }
If you don't already use a custom site skin, you can make one with just this code. Go to your AO3 dashboard, choose "Skins" from the menu on the left, then hit the "Create Site Skin" button. Leave the dropdown set to "Site Skin," give it a title, and paste the code above into the CSS box. Hit "Submit" to save your skin and it will now appear as an entry on your Skins page. Click "Use" to turn it on.
This code will add line breaks between the characters/ships in any tagset you view while logged in. It doesn't change any other pages on the site.
Happy tagset browsing!
21 notes · View notes